Skip to Content
avatar image
Former Member

SAFT-PT : PT_USER_EXIT_DART - Sales Invoice Document Type

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.

SAFTPT_1_01.xml (39.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 28, 2013 at 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

    Add comment
    10|10000 characters needed characters exceeded