Inbound Processing: Technical Background

...

       1.      The IDocs are received by various function modules or reports, depending on the inbound port. The table below provides an overview and shows the interface (reference fields or structures, import parameters). Table parameters (call by reference) are marked separately.

       2.      The function module IDOC_INBOUND_WRITE_TO_DB is responsible for saving the data to the database. The function module also uses the process code to determine whether processing by ALE services is to take place.

       3.      The IDocs are then transferred to the application function module by IDOC_START_INBOUND. In all cases, except those in which the IDocs are transferred using the tRFC port, an Event is triggered which, in turn, starts task TS30200090.

       4.      IDOC_START_INBOUND starts a workflow or a function module. This decision is also controlled using the inbound process code.

Table: Inbound function modules depending on port type

Port type:

Function module/ report

Formal parameters: Import,

export (e), int. table (iT)

Reference field/structure

Structure

Remarks

File:

EDI_DATA_INCOMING

pathname

port

EDI_PATH-PTHNAM

EDIPO-PORT

tRFC:

INBOUND_IDOC_PROCESS

idoc_control (iT)

idoc_data (iT)

EDI_DC

EDI_DD

Function module for short names (before Release 4.0)

tRFC:

IDOC_INBOUND_ASYNCHRONOUS

idoc_control_rec_40

idoc_data_rec_40

EDI_DC40

EDI_DD40

Function module, Rel. 4.0 (long names)

CPI-C (R/2 System):

RSEINB10

p_myport (Port in SAP system)

EDIIO-PORT

Report to be scheduled as job

Synchronous RFC:

IDOC_INBOUND_SYNCHRONOUS

int_edidc

online

docnum

error_before_call_application

int_edidd (iT)

EDI_DC

EDI_HELP-ONL_OPTION

EDIDC-DOCNUM

EDI_HELP-ERROR_FLAG

EDI_DD

Function module for short names (before Release 4.0)

IDOC_INBOUND_SINGLE

pi_idoc_control_rec_40

pi_do_commit

pe_idoc_number (e)

pe_error_prior_to_application

pt_idoc_data_records_40 (iT)

EDI_DC40

EDI_HELP-DO_COMMIT

EDIDC-DOCNUM

EDI_HELP-ERROR_FLAG

EDI_DD40

Function module for Release 4.0 (long names)