I want to know if there is any TABLE or FUNCTION MODULE to know the IDOC number of an Outbound Delivery document.
Basically my requirement is to display the IDOC data on a SMARTFORM/SAP script layout. So the print program should be able to fetch this IDOC data and display on the layout. Please let me know what would be the best solution.
Currently i'm displaying all the data whichever is possible to fetch from the tables (also used RV_DELIVERY_PRINT_VIEW) which gives most of the Delivery related information. But apart from this data, there is some data which is updated back from the Partner system. And this data is not stored anywhere else other than EDID4/EDIDD table.
I could not find the IDOC number getting geneted during the call to function module IDOC_OUTPUT_DELVRY or any of its user exit, where I can use an EXPORT ......MEMORY ID <> and export the IDOC number to a memory id and then IMPORT it into my Print program. So its confirmed that the IDOC number is not available in INT_EDIDD during the IDOC_OUTPUT_DELVRY.
What I could notice is that the IDOC number is getting generated and filling the EDIDC values only at one of the Includes in RSNASTED program used for EDI processing.
Now my question is:
Is there anyway my Print program gets the IDOC number of the Delivery??
How can I extract the IDOC segments data into my Print program for Smartforms???
Please help me in finding the solution!