cancel
Showing results for 
Search instead for 
Did you mean: 

PI message mapping 1 to many

guillaume_bouzebra
Participant
0 Kudos

Hello,

Is there a way to easily perform the following mapping in ESR (graphical tool)?

Source:


<ShipFrom>CUST01</ShipFrom>

<ShipTo>CUST02</ShipTo>

Destination:


<Party>

     <RoleCode>Z1</RoleCode>

     <InternalID>CUST01</InternalID>

</Party>

<Party>

     <RoleCode>Z2</RoleCode>

     <InternalID>CUST02</InternalID>

</Party>

Party has occurence 0..unbounded.

RoleCode Z1 and Z2 are constants.

Thank you in advance for your help,

Guillaume

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Guillaume

If RoleCode Z1 and Z2 are constants, you can just duplicate subtree for target Party segment and map directly 1 to 1.

Party = blank constant

RoleCode = Z1

InternalID = ShipFrom

Duplicate another subtree for Party

Party = blank constant

RoleCode = Z2

InternalID = ShipTo

Rgds

Eng Swee

guillaume_bouzebra
Participant
0 Kudos

How do you duplicate?

In the destination message type, there is only one node "Party" with occurence 0...N

engswee
Active Contributor
0 Kudos

Right click Party node, then select "Duplicate Subtree"

guillaume_bouzebra
Participant
0 Kudos

Thank you!

Answers (0)