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: 

Unable to Get Select/Deselect in Table Control

Former Member
0 Kudos

Hi Experts,

I am using Table Control wizard to design a table. But I am unable to get the select/deselect option for selecting the rows to delete or add..Can any one tell me where I am making mistake..

Waiting for your replies

regards,

chaithanya

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You should have a selection field defined in your internal table, call it MARK, then during the wizard, you specify that MARK is the selection field, the select all and deselect will be handle for you automatically.

If you are doing this manually, you would code something like this in the PAI.

Case ok_code.  
     
  when 'SELECT'.
   clear ok_code.
   loop at itab.
      itab-mark = 'X'.
     modify itab.
  endloop.

  when 'DESELECT'.
   clear ok_code.
   loop at itab.
      itab-mark = space.
     modify itab.
  endloop.

endcase.

REgards,

Rich Heilman

4 REPLIES 4

Former Member

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You should have a selection field defined in your internal table, call it MARK, then during the wizard, you specify that MARK is the selection field, the select all and deselect will be handle for you automatically.

If you are doing this manually, you would code something like this in the PAI.

Case ok_code.  
     
  when 'SELECT'.
   clear ok_code.
   loop at itab.
      itab-mark = 'X'.
     modify itab.
  endloop.

  when 'DESELECT'.
   clear ok_code.
   loop at itab.
      itab-mark = space.
     modify itab.
  endloop.

endcase.

REgards,

Rich Heilman

0 Kudos

Hi Rich,

I have given a field named MARK in the ITab. When I use table control

<b> The field MARK for the selection column does not exist in the table</b>

Any suggestion

regards,

chaithanya

0 Kudos

Hi Rich,

My answer was solved. I am able to get the select and deselect as required.

Thanks Rich Heliman.

Regards,

chaitanya