12-18-2006 3:50 PM
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
12-18-2006 3:56 PM
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
12-18-2006 3:53 PM
12-18-2006 3:56 PM
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
12-18-2006 8:16 PM
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
12-19-2006 3:12 PM
Hi Rich,
My answer was solved. I am able to get the select and deselect as required.
Thanks Rich Heliman.
Regards,
chaitanya