07-21-2010 5:59 PM
I have to create a dynamic selection screen based on the entries in the table.
If the table had 10 rows of data i have to display 10 check boxes on the selection screen and based on what the user has checked the related data is to be fetched. Is this possible? If yes how?
Thanks in advance
Rahul
07-21-2010 8:01 PM
Hi Rahul,
This is possible by Using Step Loop or Table maintianace View..
first sceen contains your selection screen after it fetches data and Jumps to next screen call the step loop with --
Check box and description...from here you can make selection and Process/execute.
regards,
Prabhudas
07-21-2010 10:04 PM
The following function modules allow you to create a selection screen dialog dynamically: FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. For more information, search abap documentation and forum.
07-22-2010 7:27 AM
Hi Sandra,
Using the FM's mentioned i can build a screen with parameters. But what i require is check boxes. I am not sure if can create check boxes with these FM's. Please let me know if it can be done or if there is any other way.
Thanks
Rahul
07-22-2010 10:19 PM
> I am not sure if can create check boxes with these FM's. Please let me know if it can be done or if there is any other way.
You are probably right (the principle of this dialog is based on SAPLSSEL 0100 dynpro, which is not so dynamic).
> If the table had 10 rows of data i have to display 10 check boxes
I read again your requirement. In fact, it is far more simple than what I said previously. I guess that you won't have many rows, otherwise the screen would look awful and unusable by the user. So, you should prepare 2 options: if there are less than 10 rows, then you display 10 checkboxes, you hide the unneeded ones using LOOP AT SCREEN in the PBO (see ABAPDOCU transaction for demos). If there are more than 10 rows, you display a listbox or normal input field with search help.
07-23-2010 6:56 AM
Thanks for you reply
As of now there are 20 check boxes to be displayed and there is a high possibility that they will increase to minimum of 30 in future.
Anyways i have solved the problem in a different way using FM 'RP_OPTIONS_INTO_STRING'.
Regrads,
Rahul
07-23-2010 12:36 PM
Hi,
Check this demo program 'BCALV_EDIT_05', Hope it may solve your requirement.
Thanks & Regards,
Jayanth.Y