‎2008 Dec 09 2:09 PM
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
‎2008 Dec 09 2:13 PM
‎2008 Dec 09 2:17 PM
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