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.
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.
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.
Hi,
Concentrate on your context handling in graphical mapping. This looks like a very straight forward mapping. What issue are you facing.
Thanks,
Apu
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