cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Requirement: Create an Email Alert if an Inbound EDI fails to process IDOC in BD87

djspod
Explorer
0 Likes
1,829

Hi,

Our Requirement is:

If an EDI arrives into BD87, fails to process, with an error Status code of 51,52
We want SAP to trigger and Email Alert (Send a Email to a designated email group)
Ideally we would like the email body text to include a brief description of the error code status.
We only want the Email alert to trigger when an IDOC fails to create. (a very Small percentage of occasions so far)

Is this possible in SAP?
Has anyone ever setup up something similar?
So far I have got as far as using SM37 background job to trigger an email from a SQ01 query of Program BD87.
However this attempt was sending emails out every time the job ran.
I only want an email when the EDI/IDOC fails to create.

Appreciate any help or advice anyone has on this subject.

#IDOC failed to process
#BD87

Kind regards

Failed Inbound IDOC.jpg 

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Ryan-Crosby
Active Contributor

I would start here, and pay attention to the note at the bottom of "Exception Handling: Procedure" section because anything discussed for this topic is also relevant for functional exception handling - https://help.sap.com/docs/ABAP_PLATFORM_NEW/8f3819b0c24149b5959ab31070b64058/4b42b79961384cb9e100000... 

 

Regards,

Ryan Crosby

djspod
Explorer
0 Likes

Thanks for sharing that information and link.

I will investigate that in more detail.

For now the requirement/ask is an automated alert, just so we know we have had an IDOC issue, in all cases we would then log on and manually fix the issue before the issue impacts on the Warehouses in the business (inbound delivery not created etc)

For context:

Recently our 3rd party Vendor submitted an EDI into our system which had Handling Units that had already been used 6 months ago.

It appears our Vendor had recycled their HU range which inturn caysed several IDOC fails in BD87 on our side.

Plan of action for us us to archive Handling Units after a month to avoid that happening again.

 

 

 

djspod
Explorer
0 Likes
Hi Ryan,
djspod
Explorer
0 Likes
Hi Ryan, I have started my journey on learning about SAP WorkFlows, this is a new area of SAP for me that I diddnt know was possible. I have not solved my initial problem yet but thanks for pointing myself in the right direction.

Answers (0)