Dynamic Table selection
Please help me to resolve this Issue.
Internal table - IT which has table name like
KOTH603 , All these table has field KNUMH.
Loop at IT into WA. ( which has table name in it )
select * from (WA-TABNAME) into (New_WA)
where KNUMH = '100010'.
write:/ New_WA - NAME.
Here issue is table name is dynamic and depending upon this New_WA will change. How can I give both table name and work-area dynamic. ( I do not wish to define 4 new work-area, one for each to handle this situation as number of tables will increase going further ).
Thanks in advance,