After the master_idoc_distribute has been called, you must specify a COMMIT WORK; the standard Database Commit at the end of the transaction is not sufficient. The COMMIT WORK does not have to directly follow the call; it can be specified at higher call levels or after multiple calls of MASTER_IDOC_DISTRIBUTE.
Note that the IDocs created remain locked until the called transaction has been completed. If you want to unlock them earlier, you can call one of the following function modules:
· DEQUEUE_ALL releases all locked objects
· EDI_DOCUMENT_DEQUEUE_LATER as a parameter releases the transferred IDocs
If the application document is created via the update program, the call of master_idoc_distribute must also be performed in update task (if an update call has not already been performed at a higher level).
See also:
· Exceptions and Export Parameters of MASTER_IDOC_DISTRIBUTE