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.

Content Modifier has 4 types:
- General.
- Message Header.
- Exchange Property.
- Message Body.
General:

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.

Exchange Property:

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:

In message body there are:
- Type – In type there are two types Constant - for fixed body & Expression - for Custom/Expression Language body.
- 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.

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

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

Output:

Time & Address are printed in the output body as shown in above image.
SAP Integration Suite #Content Modifier #Message Header #Exchange Property