Application Development 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: 

FM to get IDOC number of the created IDOC

former_member1110335
Participant
0 Kudos
583

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

Former Member
0 Kudos
104

Hello,

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

Regards,

Sachinkumar Mehta

0 Kudos
104

Hi,

Check COMMUNICATION_IDOC_CONTROL table with docnum in MASTER_IDOC_DISTRIBUTE.

I guess it will return the Idoc Number.

KR Jaideep,

Former Member
0 Kudos
104

I think COMMUNICAL_IDOC_CONTROL table will have status and IDOC number.