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: 

IDOC Status

Former Member
0 Kudos

Hi,

I am generating the IDOC using function module IDOC_INBOUND_SINGLE in my program I want to check the status of the generated IDOC in my program after the above function module so can you please tell me what logic I can apply in this location. Please help me and one more doubt is I am in selection screen and if I press back button I need to go to sap easy access screen. For this already I created pf status and I am using following logic but after pressing back button twice it is going to sap easy access. But I want after pressing back button only once.

Case sy-ucomm.

When ‘ BACK’.

Leave to screen 0.

Please help me.

Thanks a lot.

2 REPLIES 2

former_member404244
Active Contributor
0 Kudos

Hi,

when u execute the FM "IDOC_INBOUND_SINGLE ",U WILL get the idoc number as output.Now take the idoc number and then go to EDIDS TABLE...to get the status..

SELECT STATUS FROM EDIDS INTO V_EDIDS WHERE DOCNUM = <IDOC NUMBER U GOT FROM THE FUNCTION MODULE>.

Reward points if u find useful..

Regards,

Nagaraj

Former Member
0 Kudos

Hi,

The FM "IDOC_INBOUND_SINGLE" will returns you the IDOC number into PE_IDOC_NUMBER.

By using this IDOC no read the data from the status table EDIDS.

Thanks

Eswar