on 10-30-2013 5:14 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.