Ansicht
Dokumentation

EDI_DATA_INCOMING - EDI: Call inbound processing for IDoc file

EDI_DATA_INCOMING - EDI: Call inbound processing for IDoc file

General Material Data   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module EDI_DATA_INCOMING executes IDoc inbound processing for transferred IDocs which were imported from a file. That is, the IDocs are stored in the IDoc database and then inbound processing is triggered for every IDoc corresponding to the control configured. The control is essentially derived from the EDI partner profile.
The transfer of IDocs is made via a file, the name of which the function module determines from the parameters transferred.

Teamwork of both parameters for the determination of a file name:
If the parameter 'PATHNAME' has been transferred, this is used as the file name. If this is not the case, the name of the file to be used is determined from the port definition of the file port transferred in parameter 'PATHNAME'. The parameter 'PATHNAME' therefore overrides the parameter 'PORT' regarding the name of the file to be used. Also, when parameter 'PATHNAME' has been transferred, a valid port must always be transferred.

Example

The function module is used in the test program for IDoc inbound processing.
Usage example:

data: complete_filename like edi_path-pthnam,
portname like edipo-port.

* Assign values to an actual parameter
complete_filename = '/usr/sap/C11/SYS/idoc/idocs.inb'.
portname = 'EDIPORT'.
* Call FM
call function 'EDI_DATA_INCOMING'
exporting
pathname = complete_filename
port = portname
exceptions
others = 1.

Notes

Further information

R/3 System handbook for IDoc interface





Parameters

PATHNAME
PORT

Exceptions

Function Group

EDIN

CL_GUI_FRONTEND_SERVICES - Frontend Services   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 2049 Date: 20240605 Time: 090136     sap01-206 ( 43 ms )