SAP Function /SPE/RET_DIST_DELVRY_IDOC - ALE interface function module for sending delivery idocs

Parameter Reference Type Length Default Optional Text
IP_CHNUM SERIAL-CHNUM N 4 '' X ALE channel number
IP_MASTER_IDOC_CONTROL EDIDC u 542 Control record of master IDoc
IP_OBJ_TYPE SERIAL-OBJ_TYPE C 10 '' X Object Type
IP_SYNCHRON SYNCHRON C 1 '' X Perform synchronous update
IT_BOR_OBJECT /SPE/BOR_OBJECT_LINKS_T h 122 X Link IDOC to BOR object for Document Relationship Browser
IT_MASTER_IDOC_DATA EDIDD_TT h 1062

Parameter Reference Type Length Default Optional Text
CT_COMMUNICATION_IDOC_CONTROL EDIDC_TT h 542 Table Type for EDIDC (IDoc Control Record)

Exception Text
ERROR_IN_IDOC_CONTROL Incorrect entry in IDoc control record
ERROR_IN_IDOC_DATA Incorrect entry in IDoc data records
ERROR_WRITING_IDOC_STATUS Error when writing IDoc status records
SENDING_LOGICAL_SYSTEM_UNKNOWN Own logical system unknown

Functionality
This function module is the interface from the application to the ALElayer on the outbound side. The application can pass an IDoc, theso-called master IDoc, as an internal table using the parametersMASTER_IDOC_CONTROL and MASTER_IDOC_DATA.
This IDoc is then converted into one or communcation IDocs and storedin the ALE layer. IDocs for which no errors occurred are passed todispatch control.
In the table parameter COMMUNICATION_IDOC_CONTROL the header recordsfor the communication IDocs created are retturned. You can tell whetherprocessing was successful from the field STATUS.
A COMMIT WORK must be dispatched in the calling program, otherwise theIDocs may not be dispatched.

Further information
For further information about using MASTER_IDOC_DISTRIBUTE refer to theALE Programming guide in online help.