01-22-2013 10:20 AM
I'm currently trying to validate SAFT-PT files with the new validator provided by the Portuguese Fiscal Authorities, and get error validating all the sales invoices.
I´m almost certain that is related to the document type that is not being mapped to the document type expected.
Example:
Sales invoice type in SAP : F2
The SAFT-PT file is expected to have " FR " in document type for all sales invoices.
I've searched and found no call of PT_USER_EXIT_DART to do the mapping of the document type for SD invoices, only for FI documents.
Has anyone had this issue ?
Attached is the XSD file with the definition of the structure for the SAFT-PT file.
01-28-2013 11:31 AM
Hello,
in PT_USER_EXIT_DART
"WHEN '3'.
SELECT SINGLE fonction
FROM Z*
INTO invoice_type
WHERE progr = 'RTXDART_PT' AND
subprog = 'INVTYPE' AND
werk2 = wa_master-fkart."
Z* is you table for you mapping your invoices Like this:
Program S-Prog WERK2 Fonction
RTXDART_PT INVTYPE L2VS FT