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

Error with char type

Former Member
0 Likes
1,296

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
Read only

Former Member
0 Likes
1,240

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
Read only

former_member194416
Contributor
0 Likes
1,240

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

Read only

venkat_o
Active Contributor
0 Likes
1,240

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

Read only

Former Member
0 Likes
1,241

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.

Read only

0 Likes
1,240

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

Thank you both!

Read only

Former Member
0 Likes
1,240

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.

Read only

Former Member
0 Likes
1,240

Hi,

your check with code ,

DATA: l_node_text TYPE lvc_value.

l_node_text = 'Tools'.

working fine,

Regards,

Ansari.

Read only

Former Member
0 Likes
1,240

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.

Read only

Former Member
0 Likes
1,240

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