cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Java

Former Member
0 Kudos

Hi,

I am trying to create an webdynpro using the adaptive RFC model.

I have a single character import parameter in the RFC.I am trying to set the parameter value by declaring a field in the NWDS.

I am trying to declare it as follows.

boolean OPCL = "";

But I am getting an error as follows :

<b>"Type Mismatch : cannot convert from string to boolean"</b>

Please help.

Thanks,

Supriya Manik.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

boolean OPCL = "";

here u r trying to asign string to a boolean

give

boolean OPCL = true;

or

boolean OPCL = false;

Regards

Abhijith YS

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Supriya,

You are assigning a string value to a boolean variable and thus you are getting that error.

boolean has only 2 values either true or false

boolean OPCL = true;

boolean OPCL = false;

Regards,

Murtuza

Former Member
0 Kudos

hi supriya.........

only two values r possible in boolean (true,false)

so if u r using boolean u have to u use this two value only

e.g. OPCL=true;

and if u want to be a single charracter than declare as string .............

with regards

jayesh talreja