0% found this document useful (0 votes)
40 views

Sap Cpi With BTP-2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Sap Cpi With BTP-2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

SAP CPI

Exception subprocess: Mainly used to raise an alert if any error in our Iflow.

Working:

If any error occurs during message processing, Exception Sub-Process will generate an email
and will send it to the given distribution list which we will configure in the MAIL adapter.

Let's into it and see how it will work in iflow

Below is the Exception Sub Process. To create this in i-Flow go to Pallets > Process>Exception
Sub Process

Remove End Pallet and add Error End Pallet instead of that because end pallet will ends the
message, Below snapshot as reference.

Then go to Pallets > Transformation> Content Modifier and add it to the Exception Sub Process.
Content Modifier allows us to modify a message by changing the content of the data
containers that are involved in message processing

We need to write the below message in Message Body as shown below to get email when
there is any error in our iflow

Hello Team,

Message has been failed with below error:

Error detail: ${exception.message}

MsgID: ${property.SAP_MessageProcessingLogID}

Iflow Name: ${camelId}

Date: ${date:now:dd-MM-yyyy HH:mm}

Thanks & Regards,

YourTeam
Then go to Pallets > Call > External Call > Send and add it to the flow.
Here Send pallet will send the request to the receiver we configure.

Go to Pallets>Participant > Receiver add this Receiver to the flow and connect this with Send
request by using MAIL adapter.

And then we need to maintain connection details as below for EMAIL


Save and deploy your iflow.

Note: I intentionally ran iflow into error to check the exception subprocess status and below is
the error alert email received from the CPI

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy