Skip to Content

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

how to pass the feild names of a select query dynamically?

Hi

How can we pass the feilds names in select query dynamically?

For example in my selection screen i wil be giving the table name, and feilds in that table.....

those feilds should be taken in my select query...

instead of

PARAMETERS : tab_name TYPE ddobjname .

SELECT *

FROM (tab_name)

INTO TABLE <newtab>

UP TO 25 ROWS.

parametrs : feild1 like-------

feild2----

i need select feild1 feild2 feild3 FROM (tab_name)

INTO TABLE <newtab>

UP TO 25 ROWS.

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