Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Calling a R/3 Database Table from a local variable

Hey experts,

I cannot call a r/3 table out of a local variable.

DATA:      lv_test LIKE smoftables-r3tabname.

SELECT r3tabname FROM smoftables INTO lv_test WHERE objname = 'DNL_CUST_BASIS'.
  WRITE /. Write /. Write /. Write lv_test.
ENDSELECT.

So I loop the r/3 table name into lv_test, but here comes my problem : I'd like to display the content of the original database table whose name was saved in lv_test. Is there any way to do so?

Thanks in advance!

Former Member
Not what you were looking for? View more on this topic or Ask a question