Skip to Content
avatar image
Former Member

Message Mapping

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 11, 2006 at 06:35 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 11, 2006 at 06:46 PM

    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-adb5e89a6638

    Regards,

    Moorthy

    Add comment
    10|10000 characters needed characters exceeded