Skip to Content
0
Former Member
Mar 31, 2009 at 04:57 PM

Problem with context on an WMMBID02 idoc

59 Views

Hello

I am mapping a flat file of PO receipts to a WMMBID02 idoc

The input file consists of

PO, GRN, Item, Qty, and the data looks something like this:

A1, B1, Fred, 1

A1, B1, Harry, 1

A2, B2, Fred, 1

A2, B2, Harry,1

So, with data like that I want to create 2 idocs , one for each PO/GRN , and each with 2 E1MXBYI segments for the items. This is my problem. I am getting the 2 idocs, but I'm only getting one E1MXBYI segment created for the first product within each PO/GRN

E1MXBYI occurs 1..9999 and is a segment below E1MXBYH which occurs 1..1 The data in E1MXBYH is good.

I have tried various combinations of mapping, playing with context and value changes, but I can't get it to work, even though when I display the queue, everything looks o.k.

(I did get all the item lines appearing against the first idoc when I simply did item>removecontext>E1MXBYI , but when I try to re-introduce any kind of context changing into the mapping , it reverts to a single segment again)

Regards

Robert