cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI - General Splitter / Parallel Multicast / Gather

mark_st
Explorer
0 Kudos

Hi,

I am new to CPI and learning the tool....

I have a very simple scenario. Reading a csv file from a sftp server and generate 2 output csv files.

I succeeded in creating a integration package to read the csv file, do the mapping and create one csv  output file. But when I extend this flow with a second branch for writing the second file, it fails.

Debugging shows that both gather processes aren't executed.

Basically what I did is : General Splitter > csv to xml converter > msg mapping > xml to csv converter  > Gather > sftp receiver

I extended this flow ; General Splitter > csv to xml converter > msg mapping >  Parallel Multicast

>> (branch1) xml to csv converter > Gather 1 > sftp receiver 1

>> (branch2) msg mapping > xml to csv converter > Gather 2 > sftp receiver 2 

Can somebody give me some advice to solve this ?

Thank you !

 

mark_st_0-1707662788918.png

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

AjayKumarPS
Discoverer
0 Kudos

Hi @mark_st 

No need to use gather in the flow.
you are generating two files separately in the flow and sending to target SFTP as separate files.

mark_st
Explorer
0 Kudos
Hi , thanks for your reply. I just did a test without both gather processes. The result is that for each input record 2 files are created. Each file contains only 1 record.
mark_st
Explorer
0 Kudos
Hi , thanks for your reply. I just did a test without both gather processes. The result is that for each input record 2 files are created. Each file contains only 1 record. This is not what I want to achieve. I have one input file. Let's say 100 records. After processing I need 2 files with different structure containing each 100 records. How can I achieve this ?
AjayKumarPS
Discoverer
0 Kudos

Hi @mark_st 
If there is 100 records in 1 CSV file. output file should generate with 100 records. Check the occurance in messagemapping_1 and make it to 0 to unbounded in the target xsd file. 
No need to use Splitter.