on 05-19-2008 1:17 PM
Hi...
I am doing file to file scenario. In that i am giving 2 input files and output should be one input file.
The below is the input file.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_SenderFile1 xmlns:ns1="http://FileToFile_Multimapping">
<Name>tommy</Name>
<Id>12345</Id>
</ns1:MT_SenderFile1>
</ns0:Message1>
<ns0:Message2>
<ns1:MT_SenderFile2 xmlns:ns1="http://FileToFile_Multimapping">
<Place>blore</Place>
<Company>satyam</Company>
</ns1:MT_SenderFile2>
</ns0:Message2>
</ns0:Messages>
The below is the output file.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1><ns1:MT_ReceiverFile xmlns:ns1="http://FileToFile_Multimapping"><Name>tommy</Name><Id>49390</Id><Place>blore</Place><Company>satyam</Company></ns1:MT_ReceiverFile></ns0:Message1></ns0:Messages>
Please tell how to map the fields in message mapping.Here we can map one one maessage to target message. How to map the two input messages to target message.
Source. Target
-
-
Messages Messages
Message1 Message1
Name Name
Id Id
Mesagge2 Place
Place Company
Company
Please suggest me how to do?
Hi,
Here we should use the correlation in BPM. Take the unique variables in the both messages and apply the correlation to that variables.
To define the co relation goto view menu of the process --> select correlation editor --> In the correlation
list define the correlation name --> In the correlation container define the element on which correlation is
to be implemented. (name : <field_name>, type : String) --> Select the involved messages and choose the field
name at properties(this process repeat for every involved messages).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leelaratnam,
You would need a BPM with correlation and multiple receive steps inside a FORK.
BPM.
FORK with "N" branches to receive the N files. Each fork will contain a RECEIVE STEP with correlation.
Then you will have n:1 mapping where you will cominbe the N files into single file and send step to send the data to the target file.
http://help.sap.com/saphelp_nw04/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm
Reward points if this helps
Regards,
Vani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Its seems to be value mapping the follwing link should be useful.
Reward points if needful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can i know it is with or without BPM ,if with BPM u can use fork step
regards
chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will have to implement BPM as it is N:1 scenario.
BPM design
use Fork to receive 2 files. At each branch of Fork apply Receive step to receive 2 files.
Then a Transformation ---> Send (to send single file) ---> Stop
In transformation specify IM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think ur doing this scenario with out BPM. I thought its not possible.
Regards,
Sateesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.