Skip to Content
author's profile photo Former Member
Former Member

Complex Mapping

I have a scenario RFC to Soap. I'm with issues in Message Mapping.

RFC structure:

T_ORDER[] 1..N

T_REG[] 1..N

The relationship between tables is Order Id. For wich T_ORDER.Order_ID I can have lot of T_REG.

Example:

T_ORDER.ORDER_ID = 1

T_ORDER.ORDER_ID = 2

T_REG.ORDER_ID = 1

T_REG.REGCODE = 1

T_REG.ORDER_ID = 1

T_REG.REGCODE = 2

T_REG.ORDER_ID = 2

T_REG.REGCODE = 1

T_REG.ORDER_ID = 2

T_REG.REGCODE = 2

And in my expected Soap Receiver Structure is:

Soap Structure:

- Order 1

- Order ID 1

- REGCODE 1

- REGCODE 2

- Fields

- Order 2

- Order ID 2

- REGCODE 1

- REGCODE 2

- Fields

How can I do this mapping T_REG to the respective Order ID?

Thanks

Maicon.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 03, 2011 at 02:18 AM

    Hello,

    This mapping is based on the assumption that the ORDERID for TREG is already sorted (as was provided in your example). Otherwise, additional logic should be implemented by using sort and sortByKey.

    For Order

    ORDER_ID(T_ORDER) -> removeContext -> Order
    

    For REGCODE

                                REGCODE -> removeContext -> formatByExample -> REGCODE
    ORDER_ID(T_REG) -> removeContext -> splitByValue:ValueChanged -> /
    

    Hope this helps,

    mark

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2011 at 12:12 AM

    HI Mark,

    Thanks a lot. You solved my problem.

    Now, I am with another issue in the same Interface.

    The issue is:

    In the RFC structure I have a fields

    T_ORDER.ORDER_ID = 1

    *T_ORDER.CODETEXT1*

    *T_ORDER.TEXT1*

    *T_ORDER.CODETEXT2*

    *T_ORDER.TEXT2*

    *T_ORDER.CODETEXT3*

    *T_ORDER.TEXT3.*

    An in the Soap Receiver is:

    - Order

    -- Order ID

    -- REGCODE 1

    -- REGCODE 2

    *-- Texts 0..N*

    ---Text

    --- CodeText

    I need to transfer the Field CODETEXT and TEXT to the deep structure in the Soap Structure.

    Example:

    T_ORDER.ORDER_ID = 1

    *T_ORDER.CODETEXT1 = codetext1*

    *T_ORDER.TEXT1 = text1*

    *T_ORDER.CODETEXT2 = codetext2*

    *T_ORDER.TEXT2 = text2*

    *T_ORDER.CODETEXT3 = codetext3*

    *T_ORDER.TEXT3 = text3*

    An in the Soap Receiver is:

    - Order

    -- Order ID = 1

    -- REGCODE 1 = 1

    -- REGCODE 2 = 2

    -- Texts 0..N

    --- Text = text1

    --- CodeText = codetext1

    -- Texts 0..N

    --- Text = text2

    --- CodeText = codetext2

    -- Texts 0..N

    --- Text = text3

    --- CodeText = codetext3

    Any idea to solve this?

    Thanks a lot.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.