cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC Exceptions from ECC to email

former_member183909
Active Participant
0 Kudos

Hi

I've been reading the SAP help on IDOC exception handling as I want all EDI IDOC errors in SAP ECC to be sent to a "user" as an email.    (I know this is not exacly an SAP PI question but thought I ask).

Any step by step guides out there ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jonny,

also check replies from Ibrahim Ansari in the below blog

Message was edited by: mastan vali

former_member183909
Active Participant
0 Kudos

thanks - not sure if he has left out things or assumed that emailing was already set up.  not sure why he was creating a custom task.  I should be able to use the standard task  TS00008068.  I'm not doing anything special here.

I notice that even though I have my userid against the partner profiles, I do not get the status "51" (application document not posted) errors.  (I can only see my original error about not having a partner profile - so at least something is in my sap workflow inbox).  Transaction SWEL says that IDOCAPPL INPUTERROROCCURRED 27.02.2014 16:40:51  @AI@ No receiver entered.

I think if I can get that into my sap workflow inbox I could configure SCOT to sent it out to email.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

You can try the same by writing a function module.

The function module will reads the error message from ECC and then sends the email by calling another function module

the sample function module for email sending will look like this

CALL FUNCTION 'ZTEST_SEND_EMAIL'

      EXPORTING

        extcheck            = ''

        subject_long        = subject

        priority            = '5'

        bin_attachment_name = 'Failed error message'

        bin_attachment_type = 'BIN'

      TABLES

        it_content          = it_content

        it_bin_attachment   = it_attachx

        it_recipients       = it_recips.

The recipient needs to be crated using TCODE   SO23.

former_member183909
Active Participant
0 Kudos

Hi Indrajit - fairly sure I won't need to write any ABAP code to do this.  I just want standard IDOC errors to be sent to my sap workflow inbox and then out via an email. (at moment I can't even get the sap workflow inbox to work).

ankit_srivastava3
Participant
0 Kudos

Hello John,

You can find troubleshooting content at (PI) IDoc Adapter (AAE) - Technology Troubleshooting Guide - SCN Wiki

Regards,

Ankit

Former Member
0 Kudos

Hi Jonny,

Refer below blog it might help you

Configure workflow notifications for IDocs in error status