cancel
Showing results for 
Search instead for 
Did you mean: 

JCO_ERROR_CONVERSION

former_member192766
Participant
0 Kudos

Dear All,

I am having an issues with a standard SAP BAPI in combination with Web Dynpro for Java.

I am getting the following error message when executing the BAPI:

com.sap.conn.jco.ConversionException: (122) JCO_ERROR_CONVERSION: Cannot convert a value from type java.lang.Object to CHAR at field COMPLETE

Field COMPLETE is of Type Char 1, Domain is also Char 1 (Yes/No field).

The corresponding field in Java Web Dynpro is boolean.

Converting the element to String does not help.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member192434
Active Contributor
0 Kudos

It seems the problem is on BAPI side, ask ABAP programmer fix it out...

Answers (3)

Answers (3)

former_member192766
Participant
0 Kudos

Hi,

Thanks a lot but can you please tell me what the ABAP'er need to do to fix this problem.

The BAPI is a standard SAP BAPI, I am using Adaptive RFC 2 Model, NW CE 7.1 EhP1.

Regards,

Ridouan

Former Member
0 Kudos

hi

for the attribute which is has data type CHAR1 has domain type as CHAR1 with YES/NO

just changing the domain type to CHAR will not help you , you need to ask your abaper to even remove the

YES/NO option in the DOMAIN ,

for the standard if its not possible to remove or edit the options , you can make copy of the standard BAPI

and then use the that where you can make the changes there.

ravindra_bollapalli2
Active Contributor
0 Kudos

hi,

in response to the murali krishna,

u can refer this thread to get the more idea what is the char filed and what is the domain filed

check the messages of teja so that u will get clear idea when we are converting the char from abap to webdynpro java environment by bapi

let me know u need any further information

ravindr a

ravindra_bollapalli2
Active Contributor
0 Kudos

> Field COMPLETE is of Type Char 1, Domain is also Char 1 (Yes/No field).

> The corresponding field in Java Web Dynpro is boolean.

>

> Converting the element to String does not help.

this is problem with abap code ,,

as system given message the can't covert char to boolean ask abaper to check the thatone

let me know any further issue

ravindra

Former Member
0 Kudos

hi

Field COMPLETE is of Type Char 1, Domain is also Char 1 (Yes/No field).

ask your abaper to remove the YES/NO option for the domain type , you problem will get solved ,