2008 Oct 16 11:05 AM
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
2008 Oct 16 11:11 AM
Hi,
restict the selection mode of your table control to single selection
2008 Oct 16 11:12 AM
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
2008 Oct 16 11:18 AM
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,
2008 Oct 18 12:38 PM