Ansicht
Dokumentation

EXIT_SAPLIEDI_004 - FI-EDI: Invoice Receipt - Determine Segment Text

EXIT_SAPLIEDI_004 - FI-EDI: Invoice Receipt - Determine Segment Text

Vendor Master (General Section)   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

The EXIT_SAPLIEDI_004 customer exit is used for determining the segment text in EDI incoming invoices. The customer exit is called up once for each invoice item. If you do not use the customer exit, then the segment text for the postings of goods and services is determined from the E1EDPT2 segment, TDLINE field. The condition text KOTXT from segment E1EDP05 or E1EDK05 is used for surcharges or reductions. These texts cannot be changed in the EXIT_SAPLIEDI_004 customer exit. This field must be filled with the data element (to be entered in the segment text) by the EDI subsystem (converter).

Note

Before you program the EXIT_SAPLIEDI_004, you need to check to see whether adapting the assignment to the FTEXT field in the converter is sufficient for your requirements.

Parameter Description:

Import Parameters

The vendor number and the company code of the invoicing party are transferred. The system also provides a table with data for the invoice line that is transferred by EDI. :

NAME - Field name

VALUE - Current value

The following are used as field names:

MATNR - Material number or service number

EANNR - EAN number

IDLEM - ID for additional account assignment from the E1EDP02 segment

(Qualifier 021)

All information on the document line currently being processed is transferred also. The system always transfers the batch input name as the field name (for example, BSEG-WRBTR for the amount in the document currency).

Export Parameters:

The system should display the segment text number. If it is not possible to determine a segment text from the current data, then you need to set the NOT_FOUND error (RAISE statement). For your own error messages, you need to fill the MSGID, MSGNO and MSGV1-MSGV4 parameters, and enter the error message in the T100 table.





Parameters

COMPANY_CODE
EDI_FIELDS
MSGID
MSGNO
MSGV1
MSGV2
MSGV3
MSGV4
SEGMENT_TEXT
VENDOR

Exceptions

NOT_FOUND

Function Group

XF06

PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2367 Date: 20240523 Time: 083110     sap01-206 ( 54 ms )