Reg. reading database tables.
I have stored some database table names in a custom table. In my custom report, I have to read those database tables depending on certain criteria.
For ex: I have the table names 'MARA' , 'MARC' stored in my custom table ztables.
In my report, if a flag is set to 'X', I have to read MARA otherwise MARC...(these entries in ztables can change in future..so i can not read directly from MARA or MARC)..How to achieve this? Once the table names are stored in a variable, how to read data from this table name? if i say 'read' it will try to read this variable and not the table.
Thanks in advance for your input.