cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping

Former Member
0 Kudos

Hi Guys,

I have a mapping scenario,

<b>Source</b> <b>Target</b>

Name >>> Name1

First >>> First1

Last >>> Last1

Address >>> Address1

Now is it possible that if i don't pass any value to a particular element say 'Last' in source then 'Last1' should not be present in the resulted mapping. I.e the result of the mapping should have only Name1, First1 and Address1. and if 'Last' is passed some value then all the four should appear in the result.

Cheers,

Ashish

Accepted Solutions (1)

Accepted Solutions (1)

former_member206604
Active Contributor
0 Kudos

Hi,

Yes it is simple...

First make sure the ocurance of the Last1 is 0..1

Last
              
               Equals-->Not-->IfWithoutElse -->Last1
              /                    /
Constant("")                    Last

Thanks,

Prakash

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi,

Yes, it is possible.

, check with EXISTS built in node function to findout if you have input field value, with If node Exists then Map SOurce to target (if without else)

Or createIf node function.

good guide to know-

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb...

Regards,

Moorthy