Skip to Content

Message Mapping for SHPORD DELVRY03 to EDI 940

Hi Friends,

I am facing issue to generate S_NTE segment for the EDI 940 message.

My sender is IDOC 1..Unbound

<IDOC>

<E1TXTH8 SEGMENT="1">

<TDOBJECT>VBBK</TDOBJECT>

<TDOBNAME></TDOBNAME>

<TDID>0012</TDID>

<TDSPRAS>E</TDSPRAS>

<LANGUA_ISO>EN</LANGUA_ISO>

<E1TXTP8 SEGMENT="1">

<TDLINE>Discription1</TDLINE>

</E1TXTP8>

<E1TXTP8 SEGMENT="1"/>

<E1TXTP8 SEGMENT="1">

<TDLINE>Discription2</TDLINE>

</E1TXTP8>

<E1TXTP8 SEGMENT="1">

<TDLINE>Discription3</TDLINE>

</E1TXTP8>

<E1TXTH8 SEGMENT="1">

</IDOC>

<IDOC>

<E1TXTH8 SEGMENT="1">

<TDOBJECT>VBBK</TDOBJECT>

<TDOBNAME></TDOBNAME>

<TDID>0012</TDID>

<TDSPRAS>E</TDSPRAS>

<LANGUA_ISO>EN</LANGUA_ISO>

<E1TXTP8 SEGMENT="1">

<TDLINE>Discription1</TDLINE>

</E1TXTP8>

<E1TXTP8 SEGMENT="1"/>

<E1TXTP8 SEGMENT="1">

<TDLINE>Discription2</TDLINE>

</E1TXTP8>

<E1TXTP8 SEGMENT="1">

<TDLINE>Discription3</TDLINE>

</E1TXTP8>

<E1TXTH8 SEGMENT="1">

</IDOC>


Here I need to Map TDLINE to S_NTE ->D_352 field if TDID is equals to "0012" or "Z003".


I can able to generate if it's one IDOC but not for multiple IDOC's , here multiple IDOC's === multiple ST segments


How can I achieve this ... Please suggest.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Aug 01, 2016 at 10:33 AM

    Split it into 2 seperate rules:

    First rule to handle the S_NTE segment:

    use the Node function creatIf and use the TDID rule without the TDLINE.

    make sure you manage to create the target node correctly.

    Then, map the fields with direct mapping.

    Should work.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 03, 2016 at 11:08 AM

    Here is a nice implementation:

    you apply the rule on the node S_NTE and just map directly the

    elements below.

    Context is set to the IDoc root.


    context.JPG (161.1 kB)
    Direct.JPG (150.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 31, 2016 at 06:44 AM

    Hi,

    Concentrate on your context handling in graphical mapping. This looks like a very straight forward mapping. What issue are you facing.

    Thanks,

    Apu

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks for ur reply,

      issue with second ST segment is not populating with second IDOC TDLINE

      <ISA> 1..1

      <GS> 1..1

      <ST> 1..Unbound

      <S_NTE> 0..Unbound

      </S_NTE>

      <ST> 1..Unbound

      <S_NTE> 0..Unbound -------- > this one is not populating

      </S_NTE>

      </ISA>

      second <S_NTE> are not populating even though there is a TDLINE in the second IDOC

      Thanks

      Babu

  • Posted on Jul 31, 2016 at 11:45 AM

    I am not sure how you are getting multiple Idocs in the same message...

    But in order to complete your requirement you need to create multiple ST\UNB segments in the Target EDI file.

    After that you can set the context of the mapping to be at the IDoc level.

    This way, you will get this rule run each time and Idoc loop take place.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Babu,

      In cases of other texts than 'Z003' you will face with this solution context shifts, so the NTE nodes will not be created.

      I suggest the following change (screenshot just an example from a different mapping other than 940):

      Set the context of the TDLINE to the TDID. If you do not forward contexts you need to arrange them with the formatByExample function. Important: Keep the suppressed values.

      Kind regards

      Konrad

      pastedImage_0.png (41.4 kB)

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.