cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on mu mapping requirement

former_member191435
Contributor
0 Kudos

Hi folks,

I have a requirement in my below scenario

I have to collect 2 files and combine into single file. for this I have maintain in signature tab source side maintain 0..unbounded and target i maintain 1.

2 files has same structure.

so how would i test my interface. how to collect 2 files.

Thanks,

Enivas.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If both the files have the same structure, You can simple use the append funcitonality in the receiver adapter.

Let it get appended automatically whenever you pick up the files.

Regards

Krish

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I have a doubt here. Why do you need to define 2 DT'/MTs when the input file structures are same. Is it like PI should process the messages only when both the messages have arrvied. If that's the case then you can use ccBPM. Follow the link below:

http://wiki.sdn.sap.com/wiki/display/ProcessCollection/BpmPatternCollectMessageExplained%28StepbyStep+Procedure%29

But if you want to process each file seperately then you can poll files even with different filenames/folders using the same DT/MT and then use the append mode in the the file receiver channel. This is explained in the links below:

http://www.saptechnical.com/Tutorials/XI/Fileadapter/page1.htm

http://help.sap.com/saphelp_nwpi71/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/frameset.htm

Former Member
0 Kudos

Hi,

BPM , would be a better and simple approach .

Regards

Prabhat Sharma.

9958643337

Former Member
0 Kudos

Hi Enivas,

your mapping is not enough, because each file will generate one xml message with the FILE adapter (so in your case you have two messages) and so for a Scenario point of view, they will be treated separately, and so your mapping will be called twice but with only one message (instead of two).

To collect your two files (so to process them together), you have to use a BPM with a Correlation. the correlation should be done with a common stuff (e.g a value in a field).

Search on SDN there are plenty of blogs, docs, forum threads, etc... on this subject: correlation in BPM.

Regards.

Mickael