cancel
Showing results for 
Search instead for 
Did you mean: 

one to many mapping..

Former Member
0 Kudos

Hi,

I have a requirement where one source field can be mapped to 3 fields.

If the values in the one field is say for eg. A, it should map to field 1 in target.

If it is 2 than it should map to Field2

if it is 3 should map to Field3

Else to nothing.

Is that can done using standard function or i have to used UDF.

Regards,

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Make 3 seperate mappings.

1. use if then else function
    srcfld------------|
                         \--------->equalsS----->if then--->map srcfld to field1
    constant[A] --|                                 else--->map empty constant

Repeat the above step for field2 and field3 only changing the constants.

Edited by: malini balasubramaniam on Sep 19, 2008 7:30 AM

Former Member
0 Kudos

hi,

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3343] [original link is broken] [original link is broken] [original link is broken];

the above thread wll help to solve ur issues.

Regards.

Siddhesh Naik

Former Member
0 Kudos

Hi,

Do the following Mapping.

Use If without Else.

on Target1 :

if source equals(1)

then map.

on Target2 :

if source equals(2)

then map.

on Target3 :

if source equals(3)

then map.

Regards,

Akshay.

dharamveer_gaur2
Active Contributor
0 Kudos

use Node function IfCreate.

see use of

it:http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a6d6d4bb-0601-0010-5f92-e5b8bdc7...

Edited by: Dharamveer Gaur on Sep 19, 2008 5:36 AM

VijayKonam
Active Contributor
0 Kudos

Use equals functions in graphical mapping. If needed exists function also..!!

VJ

Former Member
0 Kudos

Hi XI_Fan,

You don't need UDF. For each target field, do a comparison with your source field, and map to it if result is true.

Best regards,

Pedro Pereira