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: 

Error with char type

Former Member
0 Kudos

Hello,

I have a very unpleasent problem for which I don't have any solution or ideea to solve it. It seems to be a simple problem but I can't figure out what I am doing wrong.

I have:


DATA:  l_node_text TYPE lvc_value.
l_node_text = u2018Toolsu2019.

and I get this error:

"Field "Tools" is unknown. It is neither in one of the specified tables nor defined by DATA statement. ".

Any suggestions are welcome.

Thanks in advance,

Alexandra

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Copy paste the following in your code,

DATA: l_node_text TYPE lvc_value.

l_node_text = 'Tools'.

There is some problem with your codes ( ' ' ).

Regards,

Vimal.

8 REPLIES 8

former_member194416
Contributor
0 Kudos

It means The type lvc_value is in table type. You should use a field type reference.

Edited by: Gungor Ozcelebi on Jul 21, 2009 11:40 AM

venkat_o
Active Contributor
0 Kudos

Hi,

Please check this.

<li> copy this one and paste in your code .it works.

<li>some problem with quotes

DATA:  l_node_text TYPE lvc_value.
l_node_text = 'Tools'.

Thanks

Venkat.O

Former Member
0 Kudos

Hi,

Copy paste the following in your code,

DATA: l_node_text TYPE lvc_value.

l_node_text = 'Tools'.

There is some problem with your codes ( ' ' ).

Regards,

Vimal.

0 Kudos

Vimal V and Venkat.O you both were right. That characters were the problem and now everything works.

Thank you both!

former_member333737
Active Participant
0 Kudos

hI,

Your coding is wrong,

DATA: Value TYPE lvc_value.

Value = 'TOOLS'.

you have to use field labels check lvc_value in data elements.

Rgrds,

Nikhil.

Former Member
0 Kudos

Hi,

your check with code ,

DATA: l_node_text TYPE lvc_value.

l_node_text = 'Tools'.

working fine,

Regards,

Ansari.

former_member333737
Active Participant
0 Kudos

Hi,

DATA: Value TYPE lvc_value.

Value = 'TOOLS'

.

You have to use a field label for defining it.

chk lvc_value data element in field label.

Regrds,

Nikhil.

Former Member
0 Kudos

Hii Disco Luiza,

check this ,it is syntactically correct.

REPORT  ZBASIC.
DATA:  l_node_text type lvc_value.
l_node_text = 'Tools'.
write l_node_text.

do let me know in case of querie

Regards,

Apoorv Sharma