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

Dynamic selection screen

Former Member
0 Likes
513

hello,

I have a requirement to dynamically generate the selection screen of my report program.

can any one give me some pointers?

We are required to fetch data from a custom table based on the user role and generate the selection screen dynamically. There are more that 100 possible selection fields in the custom table. So, I do not want to put in a LOOP AT SCREEN logic, since it will be lengthy and the properties of the selection fields (parameters/select-options) will be maintained in the custom table via an external RFC. Also, there may be new fields added.

Most of the fields are from just 3 tables. So, I am able to build the table selection logic dynamically. But we are not able to generate the selection screen dynamically.

thank you in advance!

3 REPLIES 3
Read only

Former Member
0 Likes
469

Just have a look at this Wiki article: http://wiki.sdn.sap.com/wiki/x/Zk

Read only

0 Likes
469

Vijay,

Thank you. But would you be kind enough to explain the pivot points of the program? I reviewed the code and could not figure out which part of it I need. Is there a specific function module I should look at? Or any specific statement?

Salai.

Read only

0 Likes
469

>

> Vijay,

> Thank you. But would you be kind enough to explain the pivot points of the program? I reviewed the code and could not figure out which part of it I need. Is there a specific function module I should look at? Or any specific statement?

> Salai.

This program takes the table as input , you can choose the fields to be displayed in the selection screen and it will generate the selection screen.

You can concentrate this routine : FORM genr_scr