cancel
Showing results for 
Search instead for 
Did you mean: 

Not Equals Function is not working in Mapping

Former Member
0 Kudos

Hi All,

i have to do mappig based on the Not Equals & And conditions

If the Material Group starts with "F"

And Material Type Not Equals to "ZPRO" means

then send "FG" Else "FC"

Here Not Equals & And Functions are not giving success, Error throwing like

Cannot cast ZPRO to boolean] in class com.sap.aii.mappingtool.flib3.Bool method not[ZPRO

Please help in this

Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
i have to do mappig based on the Not Equals & And conditions
If the Material Group starts with "F" 
And Material Type Not Equals to "ZPRO" means
then send "FG" Else "FC"
Here Not Equals & And Functions are not giving success, Error throwing like 
Cannot cast ZPRO to boolean] in class com.sap.aii.mappingtool.flib3.Bool method not[ZPRO

the logic applied is incorrect

NotEquals is a boolean function meaning it will accept only boolean values as input....

To check if the Material Number is ZPRO or not use the below logic

MaterialNumber                                            Then(FG)
                      ------equalS(TextFunction) ---- not -----ifWithElse ------------------ Target
Constant (ZPRO)                                                   Else(FC)

Regards,

Abhishek.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Use below mapping.

Material Groupstartswith(constant F)


andIfthen(constant FG)--else(constant

FC)----


Target.

Material TypeEquals(Constant ZPRO)Not(BooleanFunction)

Regards,

Prakasu.M

former_member200962
Active Contributor
0 Kudos

to check if material group starts with F

MaterialGroup --- startsWith(text function) ----
                                                               equalS ------ And -----if -----then ---target 
                                        Constant (F)  -----

The other input to And function will come from the Not function which I have mentioned in the above logic

Former Member
0 Kudos

Hi Vamsi ,

Can u please with the alternate option for example:

if material group starts with "F" -> Material Type Equals to "ZPRO" ->not -> AND ->and use if then else.

Instead of using not else use the not function after equals.

Thanks & Regards,

Lavanya.

sunilchandra007
Active Contributor
0 Kudos

Hi,

Please check that the AND function you have used.

Make sure that it gets boolean input.

Regards,

Chandra

Former Member
sunilchandra007
Active Contributor
0 Kudos

Hi,

Please check that the AND function you have used.

Make sure that it gets boolean input.

*Material Group -- Substring(0..1)--*

----


Equals

Constant("F")----


|

----


And ---If (Constant("FG"),Constant("FC") -
Target Variable

Material Type----


|

----


notEquals

Constant("ZPRO")----


Regards,

Chandra

Edited by: sunil chandra on May 22, 2009 3:04 AM

former_member200962
Active Contributor
0 Kudos

the Equals and NotEquals function are boolean....they expect boolean inputs .....so this will also give error....did you get a chance to check the logic??