cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping checking for two fields

Former Member
0 Kudos

Hello All,

I have to graphical mapping where I need to check the following condition.

If Srcfld1 = '30' OR '40' then do not map Srcfld2 to the target field else map Srcfld2 to target field trfld2.

Please advice.

Thanks,

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Srcfld1---
              -----------equals
Constant (30)
                         --------------------------OR-----NOT-----iFWITHOUTELSE(Srcfld2---THEN) ------TARGET
Srcfld1---
              -----------equals
Constant (40)
Former Member
0 Kudos

Hi Amit,

I am getting a boolean error.

In your mapping does NOT come after OR and then IF.... THEN ELSE ?

Thanks,

Teresa

Former Member
0 Kudos

My srcfld1 is a string of value say 10 and the constant i have defined as 40 but when i execute mapping i get following error

Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Cannot cast '10' to boolean] in class com.sap.aii.mappingtool.flib7.Bool method equalsBoolean[10, 40, com.sap.aii.mappingtool.tf7.rt.Context@70008257]

Former Member
0 Kudos

hi,

Use "equals" function under "TEXT"...

dont use Boolean "Equals" function...

>>In your mapping does NOT come after OR and then IF.... THEN ELSE ?

sequence is OR----> NOT ---> IF Without Else -


Target (u have to use IfWithoutElse under boolean)

Former Member
0 Kudos

Thank you . It worked.

Answers (0)