Skip to Content
avatar image
Former Member

Mapping of source message to IDOC.. What values should be assigned?

Hi guys, again 😊

I have SOAP->XI->IDoc scenario, but my IDocs arrive only with 1 segment... The IDoc is not standard, and has a lot of fields, but I want to fill only a few of them in some segments. Lets say, that I have 4 segments, with occurence 0..999999, each value has occurence 0..1 like following..

seg1-val1

-val2

-val3

seg2-val1

-val2

-val3

seg3-val1

-val2

-val3

seg4-val1

-val2

-val3

and I have source message like

<seg1>

<val1>..</val1

</seg1>

<seg1>

<val1>..</val1>

</seg1>

I think, I have to map seg1 tag to seg1 segment, and val1 tag to val1 field..

But! DO I HAVE TO MAP also seg1 tag to seg2, seg and seg4 segment? (to create logical "table"), or it is not necessary...

Next question: what value should be assignet to @SEGMENT attribute of segments? also (IDOC segment?) Should it be some constant?

Thank you guys!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 22, 2005 at 02:25 PM

    All you need to map is <b>seg1</b> source to <b>seg1</b> target and <b>val1</b> source to <b>val1</b> target . But remember that, if your source has seg2,seg3,seg4 and you want to use them then map them accordingly otherwise no need to map.

    @SEGMENT is counter for the number segments you are passing for each type of record. Use a java function to populate or just populate a constant 1.

    regards

    Shravan

    Add comment
    10|10000 characters needed characters exceeded