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 via the tRFC port, a workflow event is triggered which, in turn, triggers standard task TS30200090.
  4. IDOC_START_INBOUND starts a workflow or a function module. This decision is also controlled via 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

Comments

File:

EDI_DATA_INCOMING

path name

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 R/3 Sys.)

EDIIO-PORT

Report to be scheduled as job

Internet:

SX_OBJECT_RECEIVE (SAPconnect)

receive_info

document_data

system_data

receivers (iT)

packing_list (iT)

object_header (iT)

contents_bin (iT)

contents_txt (iT)

object_para (iT)

object_parb (iT)

SXRECINFI1

SXDOCCHGI1

SXSYSDATI1

SXEXTRECI1

SXPCKLSTI1

SOLISTI1

SXLISTI1

SOLISTI1

SOPARAI1

SOPARBI2

Info about sender

Document properties

 

Recipient

Info about data tables

Special header

Binary document content

ASCII document content

(Set/get parameters)

(Fields, values for processing)

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)