Integration Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
3,099

Content Modifier

Content Modifier is a tool used in integration processes to adjust incoming messages by modifying headers, properties, or the message body to meet specific requirements.

VarunSai_Perecharla_16-1749037908818.png

Content Modifier has 4 types:

  1. General.
  2. Message Header.
  3. Exchange Property.
  4. Message Body.

General:

VarunSai_Perecharla_1-1749037071642.png

In General We can change the Content Modifier Name as you want.

 

Message Header:

These carry metadata about the message, such as content type or routing information.

Note: Metadata refers to information about the message itself, not the content of the message.

VarunSai_Perecharla_17-1749037997562.png

 

Exchange Property:

VarunSai_Perecharla_3-1749037071650.png

Exchange Property is a key/value pair used to store data temporarily during message processing. It's a powerful and flexible way to pass information between steps in an integration flow. 

 

Message Body:

VarunSai_Perecharla_4-1749037071652.png

In message body there are:

  1. Type – In type there are two types Constant - for fixed body & Expression - for Custom/Expression Language body.
  2. Body – We can call the headers & Properties which were created in the before fields and we can enter the custom body.

 

In Content Modifier, we can define values with source types according to requirement:

Constant:

  • To set a fixed value, Best for static data that doesn't change.
  • Example: Country = India

Expression:

  • Dynamic values, Allows you to use simple Expression Language.
  • Syntax: ${header.<name>}, ${property.<name>}

Global Variable:

  • Refers to values defined as Global Variables in the CPI runtime.
  • Used in more complex scenarios and reusable scripts.
  • When you define global settings used across many flows.

Header:

  • Gets the value from an existing message header.
  • Example: You may copy a header like Authorization into a new one.
  • When values are already present in headers and you want to reuse or forward them.

Local Variable:

  • Used for values created temporarily during the flow (like in scripts).
  • Best for temporary or calculated values.

Number Range:

  • Auto-generates a number from a configured number range.
  • Can be used to generate sequential IDs.

Property:

  • Gets the value from a message property (set in Content Modifier or other steps).
  • Example: Set city as a property earlier, then reuse it here.
  • Properties are used for temporary storage during flow execution.

XPath: Extracts data from the XML message body using an XPath expression.

  • Example: /root/customer/city

 

 

Content Modifier Example:

  • In Message Header - City Name added with value of Guntur with Constant type.

VarunSai_Perecharla_13-1749037614916.png

  • In Exchange Property – timestamp as Name with Expression Source type & Source Value is ${date:now:yyyy-MM-dd HH:mm:ss}

VarunSai_Perecharla_14-1749037657755.png

  • In Message body we called the names added in Header & Property.

VarunSai_Perecharla_15-1749037673193.png

Output:

VarunSai_Perecharla_8-1749037071663.png

Time & Address are printed in the output body as shown in above image.

 

 

SAP Integration Suite  #Content Modifier #Message Header #Exchange Property

1 Comment