‎2012 Oct 10 10:23 AM
I want to create dynamic selection-screen. Just like table selection-screen where we can hide the fields and select the fields which ever we want.
I Searched here for long but not succesfull please provide any some light on this. All replies are appreciated.
I need to display 100 fields on the selection-screen where user can select any field what he wants to input on the fields.
Basically the functionality I am expecting is there a pop-up window where I can select the fields what I want to display on selection-screen.
Regards
Satish.v
‎2012 Oct 10 10:31 AM
Hi,
We have done a similar dynamic screen generation to execute any of the BW queries. Here we had the BW variables stored in a table along with size type etc, so we selected the variables and displayed the screen along with frame groupings ( picked from cube dimension ). In you case it is a selection screen, to which I do not have much idea. Please check if a module dynpro is alright to proceed , so that I can help you.
Other than this you can use the technique used in program DD_ADD_FORM_INPUT. Just execute and check it. Another example is the SE16N ALV input.
‎2012 Oct 10 12:10 PM
I have a very unique experience here while trying to generate dynamic fields. SE16 uses the FM RS_TABLE_REPORT_GENERATE to generate the screen (pop up) where user can select the fields to be displayed with checkboxes. While doing my research I just used this FM and guess what, this FM actually generated a report and did overwrite my original program , just as the name of the FM suggests. It just came to my mind when I read the original question posted here!!!
Regards,
Kumud
‎2012 Oct 10 1:41 PM
Hi Kumud,
Did not know abut the FM RS_TABLE_REPORT_GENERATE, first of all thanks for sharing. Let me look into it once.
‎2012 Oct 10 10:37 AM
Hi,
The easiest way is to go with FM from function group SSEL, such like FREE_SELECTION_DIALOG...
Cheers,
Manu.
‎2012 Oct 10 10:44 AM
Hi Manu,
I think so it can be only used with the dictionary table fields.
‎2012 Oct 10 10:55 AM
Hi Kesav,
Yes indeed, won't this fit this requirement?
@Satish,
The fields you are talking about are defined in the dictionnary?
If those are only known within your Z program, I would indeed go with Kesav suggestion and use DD objects...
Kr,
Manu.
‎2012 Oct 10 11:26 AM
Infact I would need to take a ZTABLE and in report I need to show case the same.
That means I will declare internal table type ZTABLE and all those fields need to display as anticipated.
so I guess what you are suggesting should work right? I am checking that,.
Regards
Satish.v
‎2012 Oct 10 11:41 AM
Yep it will work. You can take your field list from table DD03L, create a empty dynpro, leave to list processing and simply write the list of fields along with checkboxes. Then call FMs FREE_SELECTION_WHERE_2_EX, FREE_SELECTION_INIT and FREE_SELECTION_DIALOG...
You should find plenty of standard programs using this technique.
Kr,
Manu.
‎2012 Oct 10 1:40 PM
Hi Manu,
Still there are some limitations like, all the inputs will have select options, not possible to assign obligatory parameters etc etc. But considering the development feasibility, then the 3 functions will be very easy . We used the statement GENERATE DYNPRO which had search helps, buttons, check box , frames etc and the input fields will be of any number and were not predefined. The GENERATE statement is an internal command though. The permission was granted to do it . It was a nice experience. I was planning to post it as a wiki content some time later.
‎2012 Oct 10 1:59 PM
Hi Kesav,
Well, not sure this kind of limitation is problematic if the idea behind is having a screen like SE16 to process table entries. However if I well remembered, those functions can only process a maximum of 70 fields at the same time... So there can be an issue there indeed...even if I don't see the point of having more then 70 fields just to query on a table!
I did use this technique to develop a full dynamic transaction that allow any table maintenance...
For the popup screen, i just used a list processing dynpro where I wrote all the requested fields along with checkboxes, so there no limitation at all, you can output ten thousand fields to the popup, but only 70 are "selectable".
Never used the GENERATE DYNPRO statement, I'll have a look, thanks for the tip!
‎2012 Oct 26 7:21 AM
Hi Satish,
Hope Doing good.....
Use ------>
Pass tabs,fields,efields to free_selections_init function module and import the selid....
Again use free_selections_dialog function module ----displays the dynamic selection screen...
Regards,
Anil
‎2012 Oct 26 10:12 AM
Hi Satish,
Please refer below link for dynamic selection screen as you expected.
Give the poor if you think is is helpful.
- Santosh