This is an example to merge 2 files into 1 file using SAP PI ccBPM. Some points to considers:
- The contents from 2 files will be merged into 1 file, based on same ID.
- File part A might be available first while file part B not yet available and come later, and vice versa.
- SAP PI BPM have to wait both file part A and part B with same ID available, then only merged together.
- There can be many different ID, example W,X,Y,Z,..K,L,M,N..
- There can be different file (either A or B) from different ID available at the same time.
Example:
In Message Type view:
List of ESR objects required:
List of ID objects required:
When all above ESR and ID objects play together during run-time, below are the flows:
Blue line are the keys, Red line are determined object :
ESR Objects
Data Type (create as normally)
Message Type (create as normally)
Service Interface (2 outbound SI and 1 inbound SI) + ( 3 Abstract SI for BPM)
Message Mapping
Operation Mapping
Integration Process
Integration Process: Setup Container
Integration Process: Setup Correlation
Integration Process: Setup Graphical Definition
ID Objects
Sender Communication Channel
Receiver Communication Channel
Sender Agreement
Receiver Agreement
Receiver Determination
Interface Determination
Basically is referenced below 2 links and did above example:
http://scn.sap.com/community/bpm/blog/2014/01/30/simple-bpm-scenario
http://www.saptechnical.com/Tutorials/XI/BPM/Fork1.htm
Keep on learning!
Hey Yeeloon,
Which msg type had u used in source side for MM .. coz i dont see any in ur screenshot
At source side, both MT_TEST_A and MT_TEST_B, is in the screenshot.
i have done everything as mentioned above, n=both of sender files are being read fine but problem lies with receiver file. I have exhausted a ton of ways to make it work but it is stuck in communication channel. Even though i am following required content conversion parameters but still those are not recognized in communication channel test. i am getting “: Parameter ‘row.fieldFixedLengths’ or ‘row.fieldSeparator’ is missing”. i tried giving both/either in content conversion parameter but it is not helping. Can anybody tell, what am I missing?
Hi Azb,
some hint:Possible typo error? try compare carefully “row.fieldSeparator” or copy-paste directly at your receiver channel.
no there are no typos. i have double checked each it.
Hello, is this going to work if i wanted to just merge/collect different structure XMLs? I’m not using any IDs.