Skip to Content
avatar image
Former Member

Error Handling Need to validate the value in Response (Syn Scenario)

Hi Experts,

I have Synchronous scenario in response I am getting the value response code =00 in Response if any other value comes other than 00 I have raise exception we should get alert email . how can we achieve this.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 02, 2015 at 12:22 PM

    HI Abhay,

    You can check in your message for response code and when it fails.

    You can call rfc SALERT_CREATE and raise alert and send email.

    For more info plz refer link:

    Triggering XI Alerts from a User Defined Function

    Regards

    naveen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      Thanks for your reply . Can I check the condition in UDF and through the exception . and just configure the email alerts for that particular interface and receiver email id's .

  • avatar image
    Former Member
    Jan 01, 2015 at 06:11 PM

    Hi,

    Are you panning to map the response message back to ECC in form of IDoc/proxy ?

    Are you specifically looking to trigger the email using Alerts (do you want to fails the message in PI) ?

    If this is not the case you can map the response back to a Mail adapter and trigger email to the recipients.

    One of the approach could be as: In receiver Determination you can give the condition as response code \ne 0. Then you determine the receiver component/business system which triggers the mail.

    Also select "Ignore" in bottom. This would mean that in case response code = 0. No receiver will be determined and the message flow will be stopped in PI and hence no mail will be triggered.

    Thanks,

    Sudhansu

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 01, 2015 at 07:32 PM

    Abhay,

    In response message mapping, write a UDF to trigger email when response code is 00.

    Please refer this doc for details.

    Add comment
    10|10000 characters needed characters exceeded