Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAFT-PT : PT_USER_EXIT_DART - Sales Invoice Document Type

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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