Skip to Content
0
Former Member
Sep 29, 2008 at 08:08 AM

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

889 Views

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.