Skip to Content
0
Former Member
Jul 12, 2005 at 05:36 AM

variable table name in the select statment ?

29 Views

*************************************************

data: h_itab like hier_out occurs 0 with header line,

table_name(30) type C.

  • here i declare h_itab as the variable for the table name

itab_name = input_name

  • input_name is imported

select * from table_name

into table h_itab

where OBJVERS = 'A'.

*********************************************

it does not allow me to use table_name in the select statement i get the error 'table_name is not defined i the abap dictionary as a table, projection view or database view'.

Any suggestions are highly appreciated.

Thanks in advance,

BWer