cancel
Showing results for 
Search instead for 
Did you mean: 

SAF-T Portugal: Format file error

former_member257510
Participant
0 Kudos
1,503

Hi everyone,

I am getting an error from the Portugal tax authorities When I upload a file with the last file format StandardAuditFile-Tax:PT_1.04_0. See attached.

The error says is expecting a credit line instead of a debit line, but I have checked the document number and everything looks OK.

All SAP notes are implemented, except OSS note 2499284.

saft-t-error.png

Accepted Solutions (1)

Accepted Solutions (1)

former_member257510
Participant
0 Kudos

I got it,!

Review note 1885115 - Portugal legal tax reports (SAFT, etc.) For Monthly SAFT file (e-fatura), the Tax Accounting Basis = F - Billing.

Important note to correct issues with the validation tool 2499284.

It is important configure correctly the Tax Code table with all the exempt or non subject to VAT 0% tax codes. Remember to clasiffy them correctly. I found the right codes here:

https://www.facturama.pt/ajuda/diversos/isencao_iva

Salvador

Answers (1)

Answers (1)

former_member257510
Participant
0 Kudos

error-in-record-id.jpg

Hi again,

I have found the cause of the issue but still not the solution.

In the file structure, for Movimentos contabilísticos (GeneralLedgerEntries) part, Índice do campo 3.4.3.11. "lines", the legal requirement is:

"Estrutura agregadora das linhas de movimentos, que tem que incluir,pelo menos, uma linha de débito euma linha de crédito, sem imposição em termos de ordenação".

The issue is output by the validation tool When finds two debit o credit movements within this epigraph "lines". See attached. The error log refers to the Record ID 3, because is another debit line. I have checked this with other files.

I could not find any information related to this topic in SAP note 2499284 or other sap notes. So, is this a sap error in XML output structure?