When using SAP Integration Suite, there is a confusing topic that often arises during message flow: Header, Property, and Exchange. Although these three concepts appear similar, if not used correctly, they can lead to unexpected errors or data loss in iFlows. In this blog, we will discuss the differences between these concepts, their areas of use, and the most common mistakes.
Table of Contents
Header:
Example: HTTP headers, SOAP headers, etc.
Property:
Exchange:
Scenarios
Common Mistakes
// Incorrect usage
def value = message.getProperty(“HTTP_Header_Name”) // Not a header, but a property
o A local property is only valid in the scope where it is created. Trying to access it in a subflow returns null.
o The exchange encompasses the message and metadata. Changing only the message may not affect the header or property.
o Values from the adapter → Header
o Calculations or flags within the iFlow → Local Property
o Data sharing between subflows → Global Property
Know the difference between message.getHeaders()and message.getProperties()
message.getHeaders()
message.getProperties()
.
// In Parent iFlow def message = exchange.getMessage() message.setProperty(“CustomerID”, “12345”, true) // true = global property exchange.setMessage(message) // In the Subflow def subMessage = exchange.getMessage() def customerId = subMessage.getProperty(“CustomerID”) println(“Customer ID: ” + customerId) // 12345
This example shows the safest way to pass data to a subflow using a global property.
Understanding the differences between Header, Property, and Exchange in SAP Integration Suite prevents data loss in your iFlows and facilitates debugging.
In summary:
SAP PI/PO Consultant
The Way to Customise Your Products with SAP Variant Configuration
Today, customers want to customise products according to their preferences. For example, when purchasing a computer, they may want to choose the...
EWM – MES Direct Integration for Receiving HUs in EWM
SAP MES (Manufacturing Execution System) is a software solution that helps manufacturers plan, execute and monitor their production activities in...
What You Need to Know About Developing Fiori Applications
What is SAP Fiori? SAP Fiori is a user experience solution from SAP that provides a modern, simple user experience for enterprise applications. It is...
What Is SAP Business Technology Platform (SAP BTP)?
We live in the age of data. There’s an abundance of applications and analytic technologies that allow organizations to collect extensive data on...
What is Application Portfolio Management Software?
Companies buy various software to solve their urgent problems but in the long run, they realize that this software is not compatible and they do not...
Labor Management in SAP EWM
I would like to talk about one of warehouse management's rarest and most important features. By adequately allocating resources in handling...
Understanding IDoc in SAP: Overview, Structure, and Types
SAP’s robust enterprise resource planning (ERP) solutions streamline business operations across various industries. At the heart of SAP’s data...
SAP PO 7.5 Migration
“To migrate or not to migrate, that is the question.” Migration to SAP PO 7.5 should be a key activity on every IT infrastructure roadmap. One of...
The Evolution of Fiori
What is SAP Fiori? SAP Fiori is a new user interface for standard SAP applications. It encompasses hundreds of standard applications...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.