Skip to Content
0
Former Member
Oct 23, 2006 at 01:18 PM

Graph mapping with context not in pair

19 Views

Hi,

In an IDOC ORDERS05 to whatever scenario I found the following situation. I have to evaluate the value of the field NAME4 when the partner function (PARVW) is WE. The issue comes with the fact that the NAME4 tag only appears when is not empty, so the XML should look like this.

<E1EDKA1 SEGMENT="1">
   <PARVW>AG</PARVW>
   <PARTN>0000103905</PARTN>
</E1EDKA1>
<E1EDKA1 SEGMENT="1">
   <PARVW>RE</PARVW>
   <PARTN>0000103905</PARTN>
</E1EDKA1>
<E1EDKA1 SEGMENT="1">
   <PARVW>RG</PARVW>
   <PARTN>0000103905</PARTN>
</E1EDKA1>
<E1EDKA1 SEGMENT="1">
   <PARVW>WE</PARVW>
   <PARTN>0000103905</PARTN>
   <NAME4>S</NAME4>
</E1EDKA1>

The issue is that the NAME queue will have only one value (or even 0) while the PARVW queue will have 4.

The question: How can I pair both queues again (i.e: inserting blanks to the NAME4 queue wherever is empty)?

thanks in advance for help,

David R.