Skip to Content

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

dynamic SQL query


can anyone tell me if it's possible to run a query that change during execution? For example if radiobutton1 is selected i want to select from table1 otherwise from table2;

A large piece of code fits with both queryies ... so i don't want to use twice that part of code.

Thank you.

Former Member
Former Member replied


data: g_tabnam type string.

g_tabnam = 'csks'.

select * from (g_tabnam). " do not remove brackets

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question