Skip to Content
author's profile photo Former Member
Former Member

context mapping solution

Hi All,

I am looking for a solution for the mapping requirement below:

Source Structure : Multiple Delivery Records with their line items and batch number .... Row ( 1...unbounded)

Del# Item# Batch# Material Serial# 123 10 1 ABC Blank 123 20 1 DEF Blank 124 10 89 ABC Blank 124 10 90 ABC Blank 124 20 91 DEF Blank 125 10 1 XYZ 78 125 10 1 XYZ 79 125 10 1 DEF 80 125 20 1 ABC 81

xml data:

<MT_Delivery>

<Row>

<Del>123</Del>

<Item>10</Item>

<Batch>1</Batch>

<Material>ABC</Material>

<Serial></Serial>

</Row>

<Row>

...

..</Row>

</MT_Delivery>

I need to map the above source structure to Target Idoc Segment E1EDL24 ( 0.... unbounded) in Delivery Idoc

The requirement is :

1. Multiple E1EDL24 segments should be created for the same delivery Idoc one per line item number

2.If the same line item contains more than one Batch number , then create one E1EDL24 segment for each batch number. for Ex:If a line item has 2 batch numbers then create 2 segments

How do I put both the requirements above when mapping to E1EDL24 segment

Any help greatly appreciated..

CollinsV

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 25, 2012 at 06:30 AM

    Hello,

    Since your input is dependent on three fields namely: Del, Item and Batch, you can do the mapping below:

    The logic above will create 7 E1EDL24 segments based on the example you provided.

    As for the fields under E1EDL24, you can use the logic below, e.g for POSNR (Item Number)

    You can reuse the logic for all of the fields by just replacing the Item (connected to the removeContext) and the POSNR (target) with the respective fields.

    Hope this helps,

    Mark


    Test.JPG (18.0 kB)
    Test.JPG (23.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2012 at 04:01 AM

    Victor,

    Have you considered using XSLT mappings in your PI Operation Mapping objects. i.e Message Source -> XSLT Conversion -> Output message. You will need to save your XSLT mappings into an Imported Archive file then import into PI.

    Try this link as a starting point - http://scn.sap.com/docs/DOC-3824.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.