Skip to Content
0
Former Member
Nov 13, 2007 at 09:47 AM

Mapping Test OK, Mapping real data = not working

9 Views

Hi, i am doing a mapping which depends on one key value SPRAS, so when it occurs ("D") the next fields should be concatenated in one target field.

Scenario is IDoc2File.

Mapping is:

<i>/MT_PRVO/PRVORecordSet/PRVODetStruct/PRVO_TXT/PVTXTD=concat([delimeter= ]concat([delimeter= ]concat([delimeter= ]concat([delimeter= ]concat([delimeter= ]concat([delimeter= ]concat([delimeter= ]concat([delimeter= ]concat([delimeter= ]ifWithoutElse([keepss=false]stringEquals(/ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/SPRAS=, const([value=D])),/ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT1=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT2=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT3=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT4=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT5=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT6=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT7=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT8=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT9=), /ZBC13_PRVO/IDOC/ZBC13_PRVO/ZBC13_PRVO_TXT/TEXT10=)</i>

...so when i test in IB R and i give the SPRAS manually, the mapping works correctly. When i use the payload from XI and import the XML into Test mapping the mapping runs but fails to show me the segment PRVO_TXT.

What is wrong with this solution?!

br