cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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).

vijay_b4
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi,

Its seems to be value mapping the follwing link should be useful.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1...

Reward points if needful.

Former Member
0 Kudos

can i know it is with or without BPM ,if with BPM u can use fork step

regards

chandra

Former Member
0 Kudos

Hi.....

I am doing the scenario without BPM.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

I think ur doing this scenario with out BPM. I thought its not possible.

Regards,

Sateesh