Show TOC

Exceptions and Export Parameters of MASTER_IDOC_DISTRIBUTELocate this document in the navigation structure

Procedure

The module uses table parameter COMMUNICATION_IDOC_CONTROL to return the control records of the IDocs that were created in the database. You can use the docnum and status fields to determine the IDoc number and the current status, for example. In general, this table is not relevant to the calling application.

If the IDoc receiver was passed in the control record when MASTER_IDOC_DISTRIBUTE was called, but the distribution model does not allow the receiver to receive this IDoc, exception ERROR_IN_IDOC_CONTROL is output with a corresponding error message.

If a receiver was not passed in the control record and ALE does not find a receiver in the distribution model, an exception is not issued. If you want to react in this situation, you must query the return table COMMUNICATION_IDOC_CONTROL. If this table is empty, no IDoc was created.

This different behavior for the initial and non-initial receiver has historical reasons. The initial receiver is the standard case for master data replication, although it is of no further interest whether an IDoc was actually created. Presetting the receiver is the standard for dispatching transaction data: if an IDoc is not created, this is interpreted as an error.

Exception

Occurrence

error_in_idoc_control

Incorrect or no message type specified.

Incorrect or no IDoc type specified.

No IDoc created, although receiver was preset by application.

error_in_idoc_data

No data records passed.

error_writing_idoc_status

Technical problems when writing status records.

sending_logical_system_unknown

Own logical system could not be determined.