2010 Aug 11 10:00 PM
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!
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.
2010 Aug 11 10:15 PM
Just have a look at this Wiki article: http://wiki.sdn.sap.com/wiki/x/Zk
2010 Aug 11 10:26 PM
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.
2010 Aug 11 10:32 PM
>
> 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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |