Hi,
I have the following XML from the IDOC (input message)
- <E1WPA04 SEGMENT="1">
<KONDART>ZKA2</KONDART>
.
.
- <E1WPA05 SEGMENT="1">
<KONDSATZ>5</KONDSATZ>
</E1WPA05>
</E1WPA04>
- <E1WPA04 SEGMENT="1">
<KONDART>VKP0</KONDART>
.
.
- <E1WPA05 SEGMENT="1">
<KONDWERT>19</KONDWERT>
<CURRENCY>INR</CURRENCY>
</E1WPA05>
</E1WPA04>
In the output I have only one filed called Retail Price which will be filled with E1WPA05->KONDWERT if E1WPA04->KONDART is "VKP0".
Now E1WPA04->KONDART can come multiple times (as in the xml shown above) and for each E1WPA04 there will be one E1WPA05. E1WPA05->KONDWERT is an amount (absolute value) and E1WPA05->KONDSATZ is in percentage. Depending upon E1WPA04->KONDART, we can either have abosulte value (KONDWERT) or percent (KONDSATZ) but not both.
For the about xml, the QUEUE for E1WPA04->KONDART looks like :
SUPPRESS
[ZKA2]
[ZKA2]
[VKP0]
[VKP0]
the QUEUE for E1WPA05->KONDWERT looks like:
SUPPRESS
SUPPRESS
[19]
[19]
Please help how can this mapping be done? Its really urgent.
Thanks a ton in advance,
Yash