Skip to Content
avatar image
Former Member

Mapping Test OK, Mapping real data = not working

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 13, 2007 at 10:20 AM

    hi jens,

    try to test by giving real time data.

    Check this blog by michal for the same

    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

    regards

    Ramesh P

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 13, 2007 at 10:37 AM

    Hi Jens S,

    Check your mapping by giving the SPRAS value manuvally other than "D". And let me know the result and give your Structure of IDoc, i guess u need to play with context changes ..:)

    Cheers

    Veera

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      i already changed it manually and the result is that nothing is being mapped...

      The IDoc Structure is as follows:

      <i><?xml version="1.0" encoding="UTF-8"?>

      <ZBC13_PRVO>

      <IDOC BEGIN="">

      <EDI_DC40 SEGMENT="">

      [...]

      </EDI_DC40>

      <ZBC13_PRVO SEGMENT="">

      <PVNR/>

      <PVADAT/>

      <PVSTELL/>

      <PVNAME/>

      <PVUPM/>

      <PVNH/>

      <PVKW/>

      <PVLEER/>

      <PVDIN/>

      <TYPE/>

      <ZBC13_PRVO_TXT SEGMENT="">

      <PVNR/>

      <SPRAS/>

      <TEXT1/>

      <TEXT2/>

      <TEXT3/>

      <TEXT4/>

      <TEXT5/>

      <TEXT6/>

      <TEXT7/>

      <TEXT8/>

      <TEXT9/>

      <TEXT10/>

      </ZBC13_PRVO_TXT>

      </ZBC13_PRVO>

      </IDOC>

      </ZBC13_PRVO></i>

      So how to handle with context changes?! br Jens