cancel
Showing results for 
Search instead for 
Did you mean: 

Merge multiple text files in SAP CPI

vinodkidambi
Explorer
0 Kudos
434

Hi,

Please suggest me on how to merge/concatenate the content of multiple text files in to one text file in SAP Integration Suite  CPI iflow.

Distinct_Sky
Explorer
0 Kudos
Pick up the first file, then use Poll Enrich step for each of the files you want to pick.
View Entire Topic
vinodkidambi
Explorer
0 Kudos

Thankyou @Distinct_Sky .Poll enrich works when there is both https and SFTP. But I have one SFTP Connection from which multiple files have to be pulled in single run and concatenate to one file.

Distinct_Sky
Explorer
Poll Enrich does not need HTTP. It will work in your case. I have built an integration similar to yours in CPI. Sender SFTP adapter picks the first file, after that use multiple Poll Enrich in sequence, each picking individual files. Use "Concatenate" as the aggregation algorithm.
vinodkidambi
Explorer
0 Kudos
Can you please share further details on the iflow process. It would be a great help.
Distinct_Sky
Explorer
0 Kudos
I am unable to add image in my response, however, below is how it would work.