Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unicode Type not Convertible

Former Member
0 Likes
346

Hi

I am upgrading 4.7 to 6.0

I am getting error

Dbname and wa are not convertible for following statement

select (obj-name) into work

where.....

I have already tried declaring work as same data type as obj-name, then it gives error like 'work area too small'

both 'work' and obj-name are of type c

size of work is 3000

size of obj-name is 30

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
326

Hello Surbhi

OBJ-NAME contains the name of a DB table. Thus, WORK must be defined accordingly, e.g.:


DATA: ldo_data    TYPE REF TO data.

FIELD-SYMBOLS:
  <ls_struc>         TYPE any.


" Example: obj-name = 'KNB1'.

CREATE DATA ldo_data TYPE (obj-name).
ASSIGN ldo_data->* to <ls_struc>.

select (obj-name) into <ls_struc>
where.....

Regards

Uwe

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
327

Hello Surbhi

OBJ-NAME contains the name of a DB table. Thus, WORK must be defined accordingly, e.g.:


DATA: ldo_data    TYPE REF TO data.

FIELD-SYMBOLS:
  <ls_struc>         TYPE any.


" Example: obj-name = 'KNB1'.

CREATE DATA ldo_data TYPE (obj-name).
ASSIGN ldo_data->* to <ls_struc>.

select (obj-name) into <ls_struc>
where.....

Regards

Uwe