Mapping E1EDK03 dates to flat file structure.
Scenario is like this....
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.