cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SplitByValue: Mapping Question

Former Member
0 Likes
694

Hey experts,

I was working with a map IDoc DELVRY05 --> EDI 856, and while working with a Splitbyvalue function i got an issue since i can't transfer all the values to the splits EDI created

- Example IDoc Structure:

IDoc

E1EDL20

EA1DRM1 (partner segment)

...

...

E1EDL37 (Pack segment/Split value required for unique EXIDV)

E1EDL37 (Pack segment/Split value required for unique... )

Following this blog ( ) i did learn how to pass the values for every EDI without mixing data

for example i did create 3 EDI based on 3 unique (EXIDV) tracking numbers and for every new EDI i map the corresponding EXIDV (good news)

But i understood that logic only because the EXIDV is the field which i use the splitbyvalue, so my question is..

- How this affects other values????? how should i map them so the data that i don't need to splitcan appear in all the EDI generated? (bad news)

For example, i need to map some header data as the VBELN from E1EDL20 for every new EDI, but i can't make it to every map since it only maps the field in the first EDI and the others 2 are empty (failing the transmission if the EDI field to map is 1.1)

If i use RemoveContext it works for some fields (at header level) and others not (at item level), i only need to create new EDI (this is the reason to make the split and every EDI should had the corresponding tracking number data, and the rest of the fields are the same for every EDI: partner data, header data, etc)

So i'm not sure how to transfer the rest of the values, i'm having troubles trying to understand this,

any help?

Thanks in advance!!

View Entire Topic
Former Member
0 Likes

>>but i can't make it to every map since it only maps the field in the first EDI and the others 2 are empty

Use copyValue function here.

Use copyValue for any value which exists only once on the sender side but needs to be mapped multiple times on the Receiver side.

Thanx

Aamir

Former Member
0 Likes

Thanks Aamir! it seems to be working correctly now