cancel
Showing results for 
Search instead for 
Did you mean: 

Send email when Inbound IDOC fails

djspod
Explorer
0 Kudos
290

Does anyone know if this is possible please?

I have an variant setup In WLF_IDOC TCODE to detect error status codes 51 or 52 that can be linked to an SM36 job.

Our requirement is:

  • Run WLF_IDOC TCODE Report every 15 minutes
  • IF the report returns back any IDOC errors.
  • Then send email to the SAP team to investigate. (Body details = WLF_IDOC REPORT)
  • Else do nothing (to avoid overloading everyone's email box)

I got this to work and email out via SM36 , however this is not the logic I wanted.

I only want an email to trigger if we have an error code 51 or 52. (Not send an email every time the job runs)

Some Forums point to creating an workflow?

Is that the solution I need?

Can anyone assist a SAP novice in setting this up please, the setup steps.

Kind regards

 

View Entire Topic
helmut_skolaut3
Active Participant

If your inbound process code has a workflow setup - e.g. 

helmut_skolaut3_0-1726552317498.png

You are able to trigger SAP workflows whenever an error occurred. Per default, it picks up the receiver of the workflow from FM EDI_ROLE_FOR_PROCESSING. So you can use the user you configure in WE20

helmut_skolaut3_1-1726552515064.png

now you have a workflow in the inbox in SAP. To trigger e-mails you need to schedule report RSWUWFML2 and it will send either for each individual workitem or for the list of workitems a mail with a direct link to SAP.

Hope that helps a bit.

BR Helmut

 

 

 

 

djspod
Explorer
0 Kudos
Thanks for your answer, I will investigate more tomorrow whilst in the Q system
djspod
Explorer
0 Kudos
thanks for your help Helmut, this got me on the right track for my solution.