Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Message Mapping Problem

Hi

My File Structure is: I have Datatype with header fields and within it an Item level fields and within it a SubItem level fields.

I am getting an IDoc and want to map with the above file structure.

In message mapping I have mapped <b>Subitems>Removecontext>Datatype</b>

Also for items I have used <b>UseOneAsMany(with idoc, subitems, subitems)>SplitByValue(EachValue)>Items</b>.

Also for Subitems I have mapped <b>Subitems>SplitByValue(EachValue)>SubItems</b>.

Then I am getting my output as:

Current Output structure what we are getting from message mapping:

HEADER1,LINEITEM1,SUBITEM1

HEADER1,LINEITEM2,SUBITEM2

HEADER1,LINEITEM3,SUBITEM3

HEADER1,<blank> ,SUBITEM1

HEADER1,<blank>,SUBITEM2

HEADER1,<blank>,SUBITEM1

HEADER1,<blank>,SUBITEM2

In LineItem1 there are 3substructures and LineItem2 there are 2 substructures and 2 in third line item. I am getting fine for Subitems. But i am not getting Lineitems what i was expecting. I am gettng lineitems displayed but no values because it is already displaying. So I have to keep lineitem1 for the first 3subitems and lineitem2 for the second 2 subitems and lineitem3 for the third subitem.

Expected Output structure:

HEADER1,LINEITEM1,SUBITEM1

HEADER1,LINEITEM1,SUBITEM2

HEADER1,LINEITEM1,SUBITEM3

HEADER1,LINEITEM2,SUBITEM1

HEADER1,LINEITEM2,SUBITEM2

HEADER1,LINEITEM3,SUBITEM1

HEADER1,LINEITEM3,SUBITEM2

Any help would be greatly appreciated and regarded...

Regards,

---Satish

replied

Hi Satish,

your exact problem is described in this <a href="/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool">weblog</a>.

Please have a look at it, it should solve your problem. If you still have issues, I can guide you through the process.

Regards,

Claus

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question