Skip to Content
author's profile photo Former Member
Former Member

Error with char type

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 09:40 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2009 at 09:40 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 09:40 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 09:43 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 09:44 AM

    Hi,

    your check with code ,

    DATA: l_node_text TYPE lvc_value.

    l_node_text = 'Tools'.

    working fine,

    Regards,

    Ansari.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 09:45 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 09:46 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.