‎2008 Apr 23 12:33 PM
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
‎2008 Apr 23 12:45 PM
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
‎2008 Apr 23 12:45 PM
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