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

Application document created by IDoc

Former Member
0 Likes
435

Guys,

Is there a function module that would give me the Application document that got created by posting a given IDoc? In other words, if I know the Idoc number, is there an easy way to get the application document number, once the Idoc posted succesfully?

All this from an ABAP program is what I mean.

Your help is appreciated.

Thanks a lot,

Viktor

2 REPLIES 2
Read only

Former Member
0 Likes
390

Dear Viktor,

hope this will help you.

Regards,

Flavya

Read only

Former Member
0 Likes
390

these are some of the functions which you can use for the application document

EXPORTING

VALUE(MASTER_IDOC_CONTROL) LIKE EDIDC STRUCTURE EDIDC

VALUE(OBJ_TYPE) LIKE SERIAL-OBJ_TYPE DEFAULT ''

VALUE(CHNUM) LIKE SERIAL-CHNUM DEFAULT ''

TABLES

COMMUNICATION_IDOC_CONTROL STRUCTURE EDIDC

MASTER_IDOC_DATA STRUCTURE EDIDD

EXCEPTIONS

ERROR_IN_IDOC_CONTROL

ERROR_WRITING_IDOC_STATUS

ERROR_IN_IDOC_DATA

SENDING_LOGICAL_SYSTEM_UNKNOWN

Hope this might help you