09-30-2014 8:55 AM
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
09-30-2014 9: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
09-30-2014 9: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
09-30-2014 10:13 AM
Is there any specific reason why you want to refer to the tvarv table...
you can refer to SYCHAR30 as well
09-30-2014 11:04 AM
Are you sure that data element RVARI_VNAM exists in the system ? Please check.