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

Sending IDOC error message to respective users -Program

0 Likes
974

Greetings !

I have a requirement where I have to automate sending mail based on b2b idoc errors in status 51. I am new to IDOC. As per my understanding,

1. Create a report where b2b idocs are monitored in status 51.

2. Check for any error messages stored in EDIDS table.

3. Based on errors, use FMs like 'SO_FOLDER_HIERARCHY_READ' 'SO_OBJECT_INSERT' 'APPL_LOG_READ_DB' to capture and send mail to respective users.

4. Once done, schedule the report as a job in sm36 periodically.

Please check if my understanding is right and what inputs/details will I need to get based on IDOC additionally(as my knowledge is poor). Is there any other way/FMs to use?

Suggestions for IDOC learning tutorial links are also welcome! 🙂

Regards,

Divya N L.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
869

Just in case, I think you can do it via customizing too. Errors of inbound IDocs may be connected to an event via transaction BD67. A task or workflow may be connected to the event (SWE2). The task or workflow may send an email.