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: 

table control multiple selection restriction

Former Member
0 Kudos

Hi,

how to restrict the table control for selecting not more than two rows of table control.

i used a loop , if the user selects the 3 rows and says enter. it popups a message to select only 2 rows.

and now i don't want to allow the user to select 3rd rows. the user must be able to select 2 rows only and no 3rd row selection and also no popup message.

thankyou.

kat

4 REPLIES 4

Former Member
0 Kudos

Hi,

restict the selection mode of your table control to single selection

Former Member
0 Kudos

during pai

in between

Loop

endloop.

use counter for say

if itab-sel = 'X'.

counter = counter + 1.

if counter = '3'.

clear counter.

messag e(00) with 'Only 2 rows allowed'.

endif.

endif.

Regards ,

Alpesh

0 Kudos

hi alpesh,

i used the same logic now. i need no information or error messages.

after selecting the two rows all other fields should diable. so no 3rd selection is made.

thanks,

Former Member
0 Kudos

query solved