Externalized Parameters in SAP CPI

This blog will explain externalized parameters in SAP CPI and then how to use it in other configurations like a groovy script, content modifiers, etc.

SAP PI has provided the configuration parameters that are part of channel configuration or process steps, but apart from those parameters CPI also has externalized additional parameters to use during the message processing.

In this example, we are going to use the Content Modifier

Content Modifier to the message pipeline. Add a new header and property as follows:

External Parameter in SAP CPI

This screen above is taken from eclipse but CPI web GUI also has this same feature

WebGUI it will look like below

In the above example, the header fromExternalizedParameter_1 takes its value from an external parameter Parameter_1. In the second screenshot, the property fromExternalizedParameter_2 takes its value from external parameter Parameter_2.

The external parameters do not exist before this step, but when the system sees that the header and property take their values from these external parameters, it automatically creates 2 entries in the list of externalized parameters.

Go to the Externalized Parameters view and click on Sync with Editor:

Web Gui

You will see Parameter_1 and Parameter_2 are added as externalized parameters to the integration flow.

They will also be added to the configure page of the integration flow.

Now you can use the value of header fromExternalizedParameter_1 and property fromExternalizedParameter_2 in your integration flow. The value entered by the user to the externalized parameters Parameter_1 and Parameter_2 will be assigned to the corresponding header and property.

More CPI Blogs

How to Zip-UnZip in SAP CPI

SOAP To Mail Scenario in SAP CPI

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.