Application Development 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: 

Dynamic selection screen

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

Sandra_Rossi
Active Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

> 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.

0 Kudos

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

Former Member
0 Kudos

Hi,

Check this demo program 'BCALV_EDIT_05', Hope it may solve your requirement.

Thanks & Regards,

Jayanth.Y