Skip to Content
avatar image
Former Member

table control multiple selection restriction

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 16, 2008 at 10:11 AM

    Hi,

    restict the selection mode of your table control to single selection

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 10: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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,

  • avatar image
    Former Member
    Oct 18, 2008 at 11:38 AM

    query solved

    Add comment
    10|10000 characters needed characters exceeded