Symptom
Reversed documents are not included in the SAF-T reports.
Environment
SAP S/4HANA Cloud Public Edition.
Reproducing the Issue
- Run Statutory Reports app
- Select SAF-T report (PT_SAFT_BILLING, PT_SAFT_EFATURA, PT_SAFT_INTEGRATED, PT_SAFT_SELFBILLING)
- Observe that the reversal document are not included in the SAF-T report.
Resolution
Reversal documents of FI and SD invoices are internal documents, not representing a commercial transaction. They are therefore excluded from the SAFT file. Only the reversed document is shown in the file with the respective invoice status ('A').
By reversing an invoice that invoice will be canceled. By Portuguese law, an invoice can only be canceled if it hasn't been delivered to the customer yet. So, for example, if a mistake is detected in the invoice before giving it to the customer it can be canceled. Also, due to the nature of SAFT reporting, an invoice cannot be canceled after the month it was created has ended, as that invoice has been reported as normal in the SAFT file of that month and will be considered delivered to the customer. So after delivering an invoice to the customer the only way to rectify it is to create a new document, either a credit note or a debit note.
Considering this, the reversal document is not given to the customer (nor should the original canceled invoice). But, due to the digital signature and the sequentially of invoice numbering, Portuguese law requires the canceled invoice to be reported in the SAFT file. The report would otherwise give an error if an invoice was missing from the number range. For that, there is a field in this report (InvoiceStatus) that indicates if this document was canceled or not (InvoiceStatus will be A if the document is canceled). These canceled documents won't be taken into account in the totals of the SAFT report. So while the canceled invoice is reported, the reversal document that originated from canceling this invoice should not be reported as it is simply an internal document created by canceling the invoice.
See Also
Keywords
PT_SAFT_BILLING, PT_SAFT_EFATURA, PT_SAFT_INTEGRATED, PT_SAFT_SELFBILLING, SAF-T, Portugal, PT, reversed documents, canceled, SAFT. , KBA , FI-LOC-SAF-PT , Portugal , Problem
SAP Knowledge Base Article - Public