cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Issue

Former Member
0 Kudos

Hi Experts,

    I have one message mapping on customer master interface. we have source element called "Address_AddrType" and Target node as "AddressSoldto"

    Logic here is:

   

    If source element Address_AddrType is “SOLD_TO” then we should show “AddressSoldto” node and its values in Output XML

    ELSE

    If source element Address_AddrType is “SHIP_TO” then we should NOT SHOW this “AddressSoldto” node at all NOR Space in Output XML.

    Please help me in this issue. Thanks in advance.

Regards

Rupa

Accepted Solutions (0)

Answers (4)

Answers (4)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Rupa,

                 Difficult to comment without the complete source and target message structure.

Still you can try to insert a removeContext between Address_AddrType and the Equals function.

Regards

Anupam

former_member190624
Active Contributor
0 Kudos

Hi Rupa,

It seems Parent element of  is not populated AddressSoldto . Check the conditions of the Parent nodes .

Eg: /NodeA/NodeB/AddressSoldto  ,So check the mapping logic for NodeA and NodeB.

Thanks

Hari.

ambrish_mishra
Active Contributor
0 Kudos

Hi Rupa,

Your screenshots don't show the source structure, specifically the parent node of field Address_AdrType

Your answer lies in the occurrence of the parent node of Address_AdrType

If it is more than 1, then put the context of Address_AdrType to message type level and try to check the result.

Hope it helps!

Ambrish

Harish
Active Contributor
0 Kudos

Hi Rupa,

it seems your target structure having the mand field AddressSoldto under the segment and mapping is failing as there is no input for this field.

try to modify your condition mapping as

If without else

AddressSoldTo  == SOLT_TO

pass true else nothing.

Regards,

Harish