Skip to Content
avatar image
Former Member

Mapping Single field in Source to Multiple Fields in Target

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Best Answer
    avatar image
    Former Member
    May 03, 2009 at 06:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member
      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.

  • avatar image
    Former Member
    May 02, 2009 at 03:27 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 02, 2009 at 03:41 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 02, 2009 at 05:55 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 02, 2009 at 06:30 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 02, 2009 at 07:52 AM
    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 03, 2009 at 05:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2009 at 05:48 AM

    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 
    

    Add comment
    10|10000 characters needed characters exceeded