0% found this document useful (0 votes)
21 views5 pages

Part 5 Content Fetching Report's Data From ECC To C4C Via Mashups in C4C Integr Part 4 Know Your Tool

The document discusses the Content Modifier function in SAP Cloud Platform Integration (CPI), which allows users to modify incoming messages by changing their content, including Message Header, Message Exchange Property, and Message Body. It explains the differences between Header and Property elements, emphasizing their respective scopes within the integration flow. The document also provides examples of how to call Header and Property elements in the Message Body and mentions the use of Groovy Scripts for payload inspection.

Uploaded by

jaydata2018
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views5 pages

Part 5 Content Fetching Report's Data From ECC To C4C Via Mashups in C4C Integr Part 4 Know Your Tool

The document discusses the Content Modifier function in SAP Cloud Platform Integration (CPI), which allows users to modify incoming messages by changing their content, including Message Header, Message Exchange Property, and Message Body. It explains the differences between Header and Property elements, emphasizing their respective scopes within the integration flow. The document also provides examples of how to call Header and Property elements in the Message Body and mentions the use of Groovy Scripts for payload inspection.

Uploaded by

jaydata2018
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SAP Cloud Platform Integration (CPI) || Part 5 || Content Modifier

SAP Cloud Platform Integration (CPI) || Part 5 || ... - SAP Community

A Content Modifer is one of the most important functions provided by SAP.

A content modifier shall help you to modify the incoming message or payload,
by changing it's content that are involved in Message Processing (i.e. Message
Header, Message Exhange Property, or Message Body).

In the Message Header, and Message Exchange Property, you can declare Header
Element, and Property Elements, which can or cannot be included in the outgoing
Message to the next step, as shown in the screenshots below:

Header:

Property:

Question: What is the difference between Header, and Property?

The scope of the element declared in the Header is beyond the scope of the
IFlow,

The scope of the element decalred in the Property is only within the IFlow i.e. the
property parameters are not handed over to the receiver.

In the Message Body, you can do the following:

1. Call the Header Elements, like:


${header.elementname}

2. Call the Property Elements, like:

${property.elementname}

3. Call the body of the previous Content Modifier, like:

${in.body}

As shown in the screenshot below, I have called the Header, and body, and since,
the received expects the output in xml, the tags have been maintained like wise.

OUTPUT from this Content Modifier is:


Now, I have used one more content modifier to explain you the functionalities
even better, so, follow the series of images to see how it works.

Here, I have inserted a Groovy Script after every Content Modifier because I wanted to
see the payload after the IFlow is deployed. I shall share the script's content in the Part
7 of this series.

In the Content Modifier 2, below is the Header, Property, and Message Body:
As you can see in the screenshot above, I have used the code ${in.body} to call the
content of the previous i.e. Content Modifier 1.

Now, the output to this, after you have "Saved as version", and "Deployed" is below.
That is it about Content Modifier.

Hope you had a good read.

You might also like