Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function MASTER_IDOC_DISTRIBUTE

Former Member
0 Likes
1,587

Hi Experts,

I have generated an IDOC with the function MASTER_IDOC_DISTRIBUTE without errors. But when I check the SAP transaction WE02, there is no new IDOC. Could anybody tell me, where I will find my new IDOC?

Thanks.

Best Regards

Lukas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,252

HI Lukas,

Are you sure there are no error? check the sy-subrc?

and do you 'COMMIT WORK.' at the end?

regards,

Archer

3 REPLIES 3
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,252

Hello Lukas,

  1. Set a break point after FM MASTER_IDOC_DISTRIBUTE
  2. Please check the table IT_COMM_CTRL, it will contain the Idoc number

CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
     IN UPDATE TASK
     EXPORTING
       MASTER_IDOC_CONTROL            = ST_EDIDC
     TABLES
       COMMUNICATION_IDOC_CONTROL     = IT_COMM_CTRL
       MASTER_IDOC_DATA               = IT_EDIDD
   

Thanks.

Read only

Former Member
0 Likes
1,253

HI Lukas,

Are you sure there are no error? check the sy-subrc?

and do you 'COMMIT WORK.' at the end?

regards,

Archer

Read only

former_member215575
Active Participant
0 Likes
1,252

Database commit might be missing.

Do 'COMMIT WORK' after calling Function module 'MASTER_IDOC_DISTRIBUTE'.