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: 

How verify if IDoc runs correctly through program Z

alejandro_lpez
Contributor
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.