IDoc with Status 30(Ready for Dispatch)
while executing the outbound program it is giving the status as 30(Ready for Dispatch).
In the Partner profile I choose the option 'Transfer IDoc Immediately.
When I process that idoc using WE19 , then it is working fine(status 03).
Can you please explain me that how to get the status as '03' without processing the Idoc by 'WE19'.
Thanks & Regards,
Vinod Kumar replied
After calling MASTER_IDOC_DISTRIBUTE, add following code.
data: begin of int_edidd occurs 0. include structure edidd. data: end of int_edidd. call function 'EDI_OUTPUT_NEW' exporting onl_option = 'O' "Online" tables i_edidc = <COMMUNICATION_IDOC_CONTROL(EDIDC) from output of MASTER_IDOC_DISTRIBUTE> i_edidd = int_edidd exceptions others = 1. commit work. call function 'DEQUEUE_ALL' * EXPORTING * _SYNCHRON = ' ' exceptions others = 1.