Application Development 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: 

cannot be converted to a character-type field.

sudhakara_reddy4
Participant
0 Kudos

After enable the unicode check box , now i am getting an error message.

modify current line line value from itab. at this point i am getting error now

"ITAB" cannot be converted to a character-type field.

my internal table is

data: begin of itab occurs 100,

ebeln like ekko-ebeln,

ebelp like ekpo-ebelp,

txz01 like ekpo-txz01,

lifnr like ekko-lifnr,

name1 like lfa1-name1,

land1 like lfa1-land1,

stawn like eipo-stawn,

herkl like eipo-herkl,

verld like eipo-verld,

coimp like eipo-coimp,

kbetr like konp-kbetr,

exnum like ekko-exnum,

knumv like ekko-knumv,

kz , ky ,

end of itab.

before unicode conversion,

that is warning message, now it will become error message. can anybody please help me to solve.

Edited by: sudhakara reddy on Jan 28, 2008 8:23 AM

3 REPLIES 3

Former Member
0 Kudos

Hi,

Declare internal table without occurs clause,

eg

Types: begin of ty_itab,

f1,

f2,

end of ty_itab.

data: it_itab type table of ty_itab, "internal table

wa_itab type ty_itab. "workarea.

regards,

Santosh Thorat

Former Member
0 Kudos

Hi,

i get no error with this coding.

How do you fill this internal table??

Nicole

Former Member
0 Kudos

Hi Sudhakar

In Unicode enabled systems, while using fields of type currency or quantity see you that you explicitly move them with the field name instead of passing directly.


Eg:
"considering your Internal table as example and <wa> as your work area
data: text as string.

text = <wa>. " This may not result as error in Non-Unicode system but an error in Unicode system

"To handle these cases, we need to explicitly move the fields like...
text(10) = <wa>-fld1.
text+10(15) = <wa>-fld2.

Hope this helps.

Regards

Eswar