cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping help

Former Member
0 Kudos

Hi all,

Please help me in going through this mapping

I have a field called CLPort in the message body and whenever I have a record with this CLPort value as R.Y then I need to ignore this while creating the idoc data segment.

My source is

Root

MessageHeader

-


Messagebody 1 to 1

VesselVoyage 0 to unbounded

under this I get the field CLPort (0 to 1)

So I will be getting this Vesselvoyage node multiple times and CLPort as well.

Now when ever i get R.Y in CLPort I need to ignore that record while generationg the target node.

Please advice

Regards,

Kumar

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

the issue is resolved..

thanks to all....

Points awarded...

Former Member
0 Kudos

Hi Kumar,

In you mapping, just validate the parent node (<b>VesselVoyage</b>) of surce before mapping to the node of target.

Use IF without Else function

<b>CLPort -


> EQUALS ---> R.Y ---> NOT -


> IF, THEN ---> VesselVoyage ---> TARGET NODE (where other values will be mapped coming from VesselVoyage)</b>

By doing this, it will pass only those records which will not be having a value <b>R.Y</b> in CLPort field.

Regards,

Sarvesh

Message was edited by:

Sarvesh Singh

Former Member
0 Kudos

Hi

Do following mappings

Source Target

CLPort ---> IfThen (condition NOT CLPort=R.Y) --> VesselVoyag

CLPort --> VesselVoyag/CLPort

The VesselVoyag will only be created in the destination if CLPort is not R.Y. Do take care of context setting.

Good Luck

Vijendra

nisarkhan_n
Active Contributor
0 Kudos

you can take care by putting the condition when you are mapping to the node of that segement...just use the IF--then and check the condition you have mention....

CLPort == R.Y ( if ) Then map the recordsetstrucutre with the segment