on 2011 Oct 26 8:10 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
BPM , would be a better and simple approach .
Regards
Prabhat Sharma.
9958643337
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.