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: 

how to refer the data element directly

Bharath84
Participant
0 Kudos

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

4 REPLIES 4

former_member1716
Active Contributor
0 Kudos

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


naveen_inuganti2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

you can refer to SYCHAR30 as well

former_member289261
Active Contributor
0 Kudos

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