You are on page 1of 4

SAP PI 7.1 Integration Process Exception Handl...

https://elnetweaver.wordpress.com/2011/11/29/sa...

EL Netweaver
SAP NetWeaver Consulting

SAP PI 7.1 Integration Process Exception Handling and Alert definition


Posted on November 29, 2011

SAP PI Integration Process (ccBPM) provides workflow, sync-async Bridge and other vital capabilities. To ensure smooth processing of BPM tasks at runtime, exception handling and alerts are important components to be defined in processes, in order to avoid chaos in productive environments. Exception handling in BPM is a parallel branch to main flow. In case of system error or any exception in process which hinders main flow from completion, alternate exception branch is used by BPM. Exception branch causes main flow to stop and raise respective alerts to notify administrator about occurred problem. In this post, Ill explain how to achieve exception handling and alerting approach technically in SAP PI. I obtained these mentioned screen shots from SAP PI 7.1 environment. Alert Category Definition Define Alert Category in IR. Define Alert Container element as shown in below image. E.g. AlertMessage of type String Use this Alert Container element in Long Text to send message as a part of alert. To add container elements use Ctrl + Space for Input Help. Save and Activate. Activation will create new Alert Category in SAP PI system which can be verified using T-Code: ALRTCATDEF (explained in last section)

1 di 6

24/04/2014 14:44

SAP PI 7.1 Integration Process Exception Handl...

https://elnetweaver.wordpress.com/2011/11/29/sa...

Integration Process Definition Define an Integration Process in IR. Add Receiver step as initiator of integration process. Add a new Block. E.g. Manage Material Block Right click on Block -> Insert -> Exception Branch. This will add an Exception Branch to Integration Process as shown below. Click on Exception Branch and Define Exception handler name. E.g. HandleManageMaterialExceptions Add a new control step inside exception branch. (This object is used to raise Alerts from BPM) E.g. ExceptionControl 1. Choose Action as Throw Alert 2. Source as Enterprise Service Builder 3. Select Alert Category from F4 help which is defined in previous step. 4. Define Alert message which you want to send when alert is triggered. This message is handled by Alert container defined in Alert Category. Assign exception to regular steps of process like Transformation Step, Sync Send Step etc. This will raise alert for System errors, Web Service exceptions which cause BPM failure.
Follow

2 di 6

24/04/2014 14:44

SAP PI 7.1 Integration Process Exception Handl...

https://elnetweaver.wordpress.com/2011/11/29/sa...

Save and Activate your Integration Process.

Alert Definition Verification Go to transaction ALRTCATDEF in SAP PI system. Select Classification /XI/ Select your Alert Category from right side pane of window. Check Container, Long and Short Tabs. This will show objects defined in IR Assign desired user as Fixed Recipient to receive alerts.

Follow

3 di 6

24/04/2014 14:44

SAP PI 7.1 Integration Process Exception Handl...

https://elnetweaver.wordpress.com/2011/11/29/sa...

Alert in Runtime Workbench You can find alert message in Alert Inbox of runtime workbench as well as your local email client once alert is raised by integration process.

Let us know for no obligation consulting assistance. Leave your comments for feedback or discussion.

SHAR E THIS:

Facebook

LinkedIn Tumblr

Twitter

Google

Email

Digg

Reddit
Follow

StumbleUpon

4 di 6

24/04/2014 14:44

You might also like