cancel
Showing results for 
Search instead for 
Did you mean: 

Context Mapping Problem from IDoc to EDI

Former Member
0 Kudos

Hi,

I'm trying to map an IDoc to an EDI and I get this problem.

In my IDoc, I have segment E1ADRM1 (1:N)

My mapping condition is if E1ADRM-PARTNER_Q = OSP then copy E1ADRM-REGION into x (EDI field)

So here is my problem:

In my IDoc test, the segment E1ADRM1 is repeated 6 times and the field REGION is not populated in all iterations so the wrong

REGION is being copied to my EDI field.

If I do a display queue on E1ADRM-PARTNER_Q, the value OSP is at the 5th position

AG

SP

VE

WE

OSP ***

OSO

If I do a display queue on E1ADRM-REGION, since only 5 segment E1ADRM have the field REGION populated, I get

KS

VA

KS

ON

VA

**(E1ADRM-PARTNER_Q = SP do not have the RIGION populated so not showing in the IDoc)

So now, since E1ADRM-PARTNER_Q = OSP is at the 5th position, it is copying the 5th E1ADRM-REGION from the list but it should be the 4th.

How can I do that?

Rgds,

Yves

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For the mapping to work as you are expecting the queue should look like this(<b>CC</b> denotes context change)..

KS

<b>CC</b>

<b>CC</b>

VA

<b>CC</b>

KS

<b>CC</b>

ON

<b>CC</b>

VA

If you are not having the context changes, check at what level is field REGION at, right click on REGION in graphical mapping and choose menu item context, the 1st entry should have the tick mark(same should be for the PARTNER_Q field also).

Thanks,

Renjith.

Former Member
0 Kudos

That worked, thanks!

Yves

Answers (0)