cancel
Showing results for 
Search instead for 
Did you mean: 

mapping CopyValue depending

Former Member
0 Kudos

hello,

my scenario is FILE to RFC

source message

ORDER 1..unbound

CAB 0..1

num 0..1

LIN 0..unbound

linea 0..1

num 0..1

target message

ZORDER 1..1

pi_datos 0..1

item 0..unbounded

num 0..1

pi_lineas 0..1

item 0..unbounded

num 0..1

the source message can have one CAB and n LIN. I need to have in target message, pi_lineas, item, num the num of different CAB of ORDER (source message)

i have using the CopyValue for this, but the problem is when i receive more one CAB, in this case, the value of field num (target message, pi_lineas, item, num) is the same for all CAB of source message

thank very much

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

i'm sorry you were guest, i can't give you points..

stefan_grube
Active Contributor
0 Kudos

> i have using the CopyValue for this, but the problem is when i receive more one CAB, in this case, the value of field num (target message, pi_lineas, item, num) is the same for all CAB of source message

This is exactly how the copyValu should work. It takes the first occurrence and copies that values. The function is itended to be used with one value only.

For your purpose, you have to use the fnction UseOneAsMany.

Regards

Stefan