SAP Cloud Platform Integration - Splitter

 

This example will show you how to use General Splitter to divide a big XML message into several small messages.


The main process we need to focus on is the local integration process, "Split XML", which has a General Splitter inside and ends with Gather to combine a result of each split message (after the process) together.

# General Splitter


1. Expression Type: I use XPath because the results from the SuccessFactor are an XML.

2. XPath Expression: XPath of the node that marks each split the message (Including root node)

3. Grouping: The number of records in the 1 split message

4. Streaming: Enable this if you want to start splitting before the entire big message is loaded into memory. The system will first divide the message into chunks and starts splitting the chunks into split messages. This is only relevant if the splitter is the first step after the step that fetches data – otherwise, the content would have already loaded in memory.


# Gather

After you process each split message, you need to merge all of them into a single message you have to use Gather. The detail of Gather please visit: https://help.sap.com/docs/CLOUD_INTEGRATION/368c481cd6954bdfa5d0435479fd4eaf/94ef1f283e624ebdae747dbad67b38dc.html

Gather Example (XML)



Gather Example (Plain Text)



# Reference :

1. SAP Cloud Platform Integration – Splitter, Meghna Shishodiya. Visit

2.  Define Gather and Join, SAP Help Portal. Visit


Popular posts from this blog

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

Setting IntelliJ IDEA to run Groovy Script

C# - BASE64 to Image