09-28-2007 10:48 AM
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.
09-28-2007 10:54 AM
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
09-28-2007 10:57 AM
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