cancel
Showing results for 
Search instead for 
Did you mean: 

Merge values from multiple flat files into one file

Former Member
0 Kudos

Hi,

Is it possible in PI to automatically extract particular values from multiple flat files generated from different interfaces and bundle them into one flat file?

Accepted Solutions (1)

Accepted Solutions (1)

PeterJonker
Active Contributor
0 Kudos

I think you will need a ccBPM for that (if you are on double stack PI).

You can collect the files in the BPM do a mergemapping once you've received all and send out the merged file.

You need to know when the last file has arrived, either by a timer or as a flag in the file which indicates that it is the last file send.

Answers (2)

Answers (2)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

cheers

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

To solver your issue you need to use a ccBPM, that is for PI to know how many files should spect before create a single file.

For collecting several messages and merging them into one message, SAP provides three patterns:

• Payload dependent (pattern: BpmPatternCollectPayload)

• Time dependent (pattern: BpmPatternCollectTime)

• When receiving a certain message (pattern: BpmPatternCollectMessage)

also you have

BpmPatternCollectMultiIf Collecting messages from different interfaces

you can find them under SWC SAP_BASIS

Regards

Rodrigo

Message was edited by: Rodrigo Alejandro Pertierra