Idoc stuck in status '30' with MASTER_IDOC_DISTRIBUTE
I used FM MASTER_IDOC_DISTRIBUTE to create outbound idocs to a partner (whose partner profile is defined to 'Transfer idoc Immediately' ). But the the idoc is stuck at status 30. I had to manually run RSEOUT00 or BD87 to push it to Status 03.
I don't want to use these external programs as getting to status 03 within my program is important for me.
Somebody suggested to use COMMIT WORK and FM - 'EDI_DOCUMENT_DEQUEUE_LATER'
But even then it is still creating idocs in status 03.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' EXPORTING MASTER_IDOC_CONTROL = T_EDIDC TABLES COMMUNICATION_IDOC_CONTROL = T_RETURN_IDOC MASTER_IDOC_DATA = T_EDIDD EXCEPTIONS ERROR_IN_IDOC_CONTROL = 01 ERROR_WRITING_IDOC_STATUS = 02 ERROR_IN_IDOC_DATA = 03 SENDING_LOGICAL_SYSTEM_UNKNOWN = 04. COMMIT WORK. CALL FUNCTION 'EDI_DOCUMENT_DEQUEUE_LATER' EXPORTING DOCNUM = T_RETURN_IDOC-DOCNUM * SYNCHRON = ' ' EXCEPTIONS IDOC_IS_NOT_TO_DEQUEUE = 1 OTHERS = 2 .
Edited by: Shareen Hegde on Feb 25, 2011 11:19 PM