Sap Cpi With BTP-2
Sap Cpi With BTP-2
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.
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,
MsgID: ${property.SAP_MessageProcessingLogID}
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.
Note: I intentionally ran iflow into error to check the exception subprocess status and below is
the error alert email received from the CPI