Hello All,
Scenario is like this....
Source:
E1EDK03
IDDAT 011
Datum 20090331
E1EDK03
IDDAT 017
Datum 20100401
<PAYHEADM>
<payHead>
<docType>testing mapping</docType>
<docRef>54948989</docRef>
<docDate>20090331</idocDate>
<paymDate>99999999</paymDate>
</payHead>
</PAYHEADM>
Based on the Qualifier 011 and 017, target fields document creation date and payment date are to be mapped. I tried using removecontext on both the source fields dint work also tried changing the context to IDOC instead of E1EDK03. Nothing works, my maps looks something like below:
/ns0:MT_PAYHEAD/PAYHEADM/payHead/idocDate=iF(removeContexts(/PEXR2002/IDOC/E1EDK03/DATUM), equalsA(removeContexts(/PEXR2002/IDOC/E1EDK03/IDDAT), const(value=011)), const(value=99999999))
/ns0:MT_PAYHEAD/PAYHEADM/payHead/paymDate=iF(removeContexts(/PEXR2002/IDOC/E1EDK03/DATUM), equalsA(removeContexts(/PEXR2002/IDOC/E1EDK03/IDDAT), const(value=017)), const(value=99999999))
What I can see in the test is it keeps reading the first occurence of E1EDK03 and just maps that. Am on PI7 can anyone suggest where I am going wrong.
--Prashanth