Skip to Content

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

Dynamic Table selection

Hi All,

Please help me to resolve this Issue.

Internal table - IT which has table name like

KOTH600

KOTH601

KOTH602

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.

Endloop.

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,

Regards,

Mayank Rajguru.

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