Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pass table name as parameter to a select statement

Former Member
0 Likes
685

SELECT *

into table it_tab

FROM parameter at selection screen

how to do this?

ignore the fact that i need to know the table structure to be able to create the internal table.

SELECT *

into table it_tab

FROM parameter at selection screen

how to do this?

ignore the fact that i need to know the table structure to be able to create the internal table.

4 REPLIES 4
Read only

venkat_o
Active Contributor
0 Likes
652

Try this way.

 REPORT ZTEST_PROGRAM .
 PARAMETERS:P_TABLE TYPE RSRD1-TBMA_VAL.
 DATA IT_TAB TYPE TABLE OF T001.
 SELECT * INTO TABLE IT_TAB FROM (P_TABLE).

Thanks

Venkat.O

Read only

Former Member
0 Likes
652

SELECT *

into table it_tab

FROM (parameter) CLIENT SPECIFIED.

i am trying this.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
652

>

> SELECT *

> into table it_tab

> FROM (parameter) CLIENT SPECIFIED.

>

> i am trying this.

So what is your problem?

Suhas

Read only

0 Likes
652

how have you defined your parameter

parameters : parameter type tabname.