cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Single field in Source to Multiple Fields in Target

Former Member
0 Kudos

Dear Friends,

I have Vendor id in my source structure.I need to map this field to Multiple fields in the target.

How can i do this Mapping..

Take care,

Pooja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear friends

Source Field Target Field

Vendor Id Internal ID

Buyer ID

The above Vendor id field need to be mapped Taget field.

This is my requirement

former_member200962
Active Contributor
0 Kudos
My source field Vendor id need to be mapped to *Target fields*- Internal Id & Buyer id.

you can directly map

Vendor ID --> Internal ID

Vendor ID --> Buyer ID

you don't need to apply any logic here as there seems no conversion...this is just a direct mapping

Once you have mapped the vendor ID field to the tqwo target nodes you right-click on the Vendor ID in source strcuture of your mapping and choose Where-Used option...here you will see qwhich target fields are using the Vendor ID field..

Regards,

Abhishek.

Answers (7)

Answers (7)

Former Member
0 Kudos

If Vendor Id is appering 2 times in the source message can use copyValue std function else u can map like given below



Vendor Id--------- Internal ID
Vendor Id--------- Buyer ID 

Former Member
0 Kudos

Dear friends,

My source field Vendor id need to be mapped to Target fields- Internal Id & Buyer id.

The above one is my exact requirement.

Take care,

Pooja

former_member200962
Active Contributor
0 Kudos
I have Vendor id in my source structure.I need to map this field to Multiple fields in the target.

You can directly map the source node to as many target nodes you want...

If you want the occurence of the source node (say S1 --->0..1)to be repeating for the target node (depending on occurence of some source node (say S2 ---> 0..unbounded) then you can try the UseOneAsMany function of Message Mapping:

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool

/people/william.li/blog/2006/03/21/minimize-memory-usage-during-message-mapping-when-replicating-an-element

http://help.sap.com/saphelp_nw70/helpdata/EN/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm

Regards,

Abhishek

Former Member
0 Kudos

Pooja,

As far as my knowledge goes, sending a same value to many target fields isnt a problem.

This is because when we map we map based on the target field.

so pick up the each of the target field and map the vendor id to them..

However, your source IDOC details and target structure would help us

Regards,

Venkat.

former_member581827
Participant
0 Kudos

Hi,

You can use "copy value" function if you want to map same source field to different target fields.

Can you please let us know your source and target structure.

Regards,

Chandra.

Former Member
0 Kudos

Hi Pooja,

U can use CopyValue function for that.

But still let me know what is ur source and target eg.

only one source message and multiple target message

or many message in source message and separating them into multiple target.

what it is?

Regards,

Manisha.

jagesh_lakdawala
Active Participant
0 Kudos

Hi Pooja,

Can you give some idea regarding you source and Target message structure?

In the case of simple Source to Target structure you can easily use the source field Vender id for

the multiple target fields.

Thanks & Regards

Jagesh