08-24-2006 2:35 PM
Hi,
I have a Z* program to generate the IDOc SHP_OBDLV_CONFIRM_DECENTRAL01 and execute it with standard program H00RSMUPLOAD. Now i need to know if the IDoc runs correctly or not, through program Z*, but not in dialog transaction WE02.
How can i verify the correctly Idoc execution?
Thanks in advance,
Alejandro
08-24-2006 2:38 PM
Hello tehre,
YOu can check the idoc status in WE02/WE05.
Here you can check the data if the required data has come or sent.
In ste status field, you can check the status.
Same could be done on the receiver end as well.
08-24-2006 2:41 PM
If you need to capture the result programmatically, looking at the code, I would suggest copying the relevant code from H00RSMUPLOAD into your custom program because function IDOC_INBOUND_SINGLE appears to return the number of the IDoc posted. You can then use the IDoc number to retrieve the current status from EDIDC-STATUS.
You'll likely still have trouble with the timing without a reasonable wait built into the program between IDoc creation and posting to the application.