Skip to Content
0
Aug 07, 2023 at 05:35 PM

target element not generated

61 Views Last edit Aug 07, 2023 at 05:39 PM 5 rev

I tried assigning a constant to a target element in message mapping.

when I try simulating or testing in runtime but no element in created on the target side

Source Data:

<DEBMAS07>

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>test</TABNAM>

</EDI_DC40>

<E1KNA1M SEGMENT="1">

<MSGFN>004</MSGFN>

<E1KNA11 SEGMENT="1">

<KNURL>/</KNURL>

<STCD6/>

</E1KNA11>

</E1KNA1M>

</IDOC>

</DEBMAS07>

------------------------------------------------------------------------------------------------------------

Actual:

<DEBMAS07>

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>test</TABNAM>

</EDI_DC40>

<E1KNA1M SEGMENT="1">

<MSGFN>004</MSGFN>

<E1KNA11 SEGMENT="1">

<KNURL>/</KNURL>

</E1KNA11>

<E1KNVVM SEGMENT="1">

<MSGFN>004</MSGFN>

</E1KNVVM>

</E1KNA1M>

</IDOC>

</DEBMAS07>

------------------------------------------------------------------------------------------------------------


Expected:

<DEBMAS07>

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>test</TABNAM>

</EDI_DC40>

<E1KNA1M SEGMENT="1">

<MSGFN>004</MSGFN>

<E1KNA11 SEGMENT="1">

<KNURL>/</KNURL>

<STCD6/>

</E1KNA11>

<E1KNVVM>

<E1KNVIM>

<TAXKD>Constant Assigned</TAXKD> (This element is expected) </E1KNVIM>

</E1KNVVM>

</E1KNA1M>

</IDOC>

</DEBMAS07>

TAXKD element never comes in the output. How do I generate the TAXKD element by assigning a constant?