Skip to Content

how to refer the data element directly

Hi All,

Below is my code in ECC 6.0version.

types : begin of d_tvarvc,

name type rvari_vnam ,

low type tvarv_val,

end of d_tvarvc.

I am copying the same in 4.0B version It is giving me the below error:

"The type "RVARI_VNAM" is unknown."

I changed the above code to:

types : begin of d_tvarvc,

name like TVARV-rvari_vnam ,

low like TVARV-tvarv_val,

end of d_tvarvc.

then giving me the error "No component exists with the name "RVARI_VNAM"."

How can we declare internal table by referring data element directly?

Thanks,

PH

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Sep 30, 2014 at 08:19 AM

    when do something like, "TVARV-rvari_vnam" then second part should be field name from table. You need not to refer data element with table name.


    Code snippet from your ECC6.0 should work (as per the declaration code) there is no issue in it. However, check if data element exists in target system.

    Regards,

    Naveen

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2014 at 08:12 AM

    Hi Haritha,

    Your first set of code should work, i just tried in my system.

    regarding your second error stating as " "No component exists with the name "RVARI_VNAM"

    That is beacuse the table is a transparent table and not a database table, so you will get that error.

    Please get back for further issues.

    regards,

    Satish


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2014 at 09:13 AM

    Is there any specific reason why you want to refer to the tvarv table...

    you can refer to SYCHAR30 as well

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2014 at 10:04 AM

    Are you sure that data element RVARI_VNAM exists in the system ? Please check.

    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.