2015 Apr 30 5:20 PM
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
2015 Apr 30 5:56 PM
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
2015 May 01 12:46 AM
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
2015 May 01 2:09 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |