Skip to Content
avatar image
Former Member

ARTMAS IDOC Message mapping in CPI

Hi,

I have to map two segments E1BPE1MARART, E1BPE1MARMRT from ARTMAS(IDOC) to a target structure which is same as the structure like E1BPE1MARMRT(unit of measure) but only extra field Base_UnitOfMeasure. I am able to map all the field from E1BPE1MARMRT to my target structure. The issue is How can I get the BASE_UOM from first segment E1BPE1MARART for matching MATERIAL in from segment E1BPE1MARMRT?

The relation between E1BPE1MARART, E1BPE1MARMRT.

1st segment E1BPE1MARART contain distinct MATERIAL value 2nd segment E1BPE1MARMRT can contain same MATERIAL with different ALT_UNIT.

My target segment match with 2nd segment but only BASE_UOM need to populate which exist in 1st segment.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 08 at 03:24 PM

    Hello Gerome,

    Could you please send an sample source and expected target message so that we can try replicating the same scenario.

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 08 at 09:40 PM

    Hi Praveen,

    Thanks for replying, I am attaching following sample files

    source XSD: artmas09-sample.txt

    Target XSD: target.txt

    Sample Input XML: artmasdata-sample.txt

    Sample Mapping: mapping.png

    I am having issue with mapping "/ARTMAS09/IDOC/E1BPE1MARART/BASE_UOM" to "/root/element/baseUOM", because I have to find BASE_UOM from 1st segment E1BPE1MARART that match with each material in 2nd segment E1BPE1MARMRT.


    Thanks,

    Gerome

    Add comment
    10|10000 characters needed characters exceeded