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

FM to get IDOC number of the created IDOC

Former Member
0 Kudos
774

I am creating the idoc using FM -- >MASTER_IDOC_DISTRIBUTE

If Idoc is created successfully I get sy-subrc = 0.

If sy-subrc is 0 .... I need to fetch the Idoc number...

I need a FM that will return the appropriate idoc number...

thanks

Warm regards,

Karen

3 REPLIES 3
Read only

Former Member
0 Kudos
295

Hello,

try this FM "IDOC_INBOUND_SINGLE", this returns the IDoc number.

Regards,

Sachinkumar Mehta

Read only

0 Kudos
295

Hi,

Check COMMUNICATION_IDOC_CONTROL table with docnum in MASTER_IDOC_DISTRIBUTE.

I guess it will return the Idoc Number.

KR Jaideep,

Read only

Former Member
0 Kudos
295

I think COMMUNICAL_IDOC_CONTROL table will have status and IDOC number.