06-21-2010 8:49 AM
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,
Pradeep.
06-21-2010 8:56 AM
Hi,
If you are generating IDOC through the Z program, use COMMIT WORK after triggering the IDOC.
Regards
Vinod
06-21-2010 8:56 AM
Hi,
If you are generating IDOC through the Z program, use COMMIT WORK after triggering the IDOC.
Regards
Vinod
06-21-2010 12:05 PM
Thank you for your reply.
I have used 'COMMIT WORK' keyward after calling the FM 'MASTER_IDOC_DISTRIBUTE' in my Program. But it is giving the Status as 30
06-21-2010 12:17 PM
Hi
Have you created the distribution model for the Message type (BD64)?
Regards
Vinod
06-21-2010 1:06 PM
Hi Vinod,
I made all the configarations, whenever I execute the OUTBOUND program, it is giving the status as 30, when I process that IDoc by using transaction WE19 , it is distributing the data to partner system & updating the partner system.
Every thing is working fine, but problem is every time I need to process it. I want to avoid it.Please help me.
Configarations :
1)definined Logical Systems
2)assigned the Logical Systems to the corresponding clients
3)Maintained RFC destinations.
4)created Port
5)Defined Disribution Model
6)Defined Partner Profile , where I choose the option 'Transfer IDoc Immediately,
OUTBOUND Program :
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
MASTER_IDOC_CONTROL = W_CTRL
OBJ_TYPE = ''
CHNUM = ''
TABLES
COMMUNICATION_IDOC_CONTROL = T_COMM
MASTER_IDOC_DATA = T_DATA
COMMIT WORK.
Please help me on this.
Regards,
Pradeep.
06-22-2010 5:55 AM
Hi,
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.
Regards
Vinod
06-22-2010 8:45 AM
Hi Vinod,
Thank you so much, now it is working fine.
Thanks & Regards,
Pradeep.