Application Development and Automation 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: 
Read only

Program to check IDOC Status

Former Member
0 Likes
2,572

Hi,

I am new to ABAP and this is my first assignment so request you to please help me with step wise details.

I have to create a program which should trigger the mail automatically to the specific set of people about the status of an IDOC as per the

Message Type,

Direction,

Message Variant,

Message Function.

Thank you

I hope this is markes as question

Hi,

I am new to ABAP and this is my first assignment so request you to please help me with step wise details.

I have to create a program which should trigger the mail automatically to the specific set of people about the status of an IDOC as per the

Message Type,

Direction,

Message Variant,

Message Function.

Thank you

I hope this is markes as question

3 REPLIES 3
Read only

Former Member
0 Likes
968

I am not a ABAPer but I will tell what we did to achieve this for Inbound IDOCs.

We had different plants across the globe and they send IDOCs into SAP and wanted to send a status email to the plant leads if the idocs posted in SAP or not.

We created a Business Workplace SBWP distribution list with plant code in the distribution list name, and included all the list of people email address in this distribution list who should receive the IDOC status email when IDOC's failed to post in SAP.

In the inbound Process Code/Function module WE42, you can also click on process code from WE20 for your inbound message type and go to the function module characteristics and in the event INPUTERROROCCURRED, my ABAP team wrote the code to look for distribution list for the plant where the IDOC is coming from based on partner profile that we setup in WE20 and send an email out.

Please also look into

thanks

Read only

Former Member
0 Likes
968

Hi Rahul,

This information is pretty vague to actually come up with a solution like if you have to create a program for regular run specific to a single iDOC or mulitple or will it be on ad-hoc basis. Also, Would you like to send mail programmatically or through some workflow. Just as a ballpark, you can read status of any IDOC from table EDIDS. This can give you the status & you can extract the info and send mail using any utility FMs in SAP.

http://wiki.scn.sap.com/wiki/display/ABAP/Send+Message+to+External+email+id+and+SAP+User+id+via+ABAP

Rgds,

Ravi

Read only

Juwin
Active Contributor
0 Likes
968

Don't create custom programs for this. This is why SAP has provided IDoc error workflow. Check: Configure workflow notifications for IDocs in error status