‎2007 Apr 16 2:39 PM
How to provide select all deselect all and select block fxnality in table control
‎2007 Apr 16 2:48 PM
in user_command, do something like this
If MARK is the field for selection.
and 'SALL' is the function code for select all button and 'DALL' for deslecte all button, then:
case sy-ucomm.
when 'SALL'.
loop at itab.
itab-mark = 'X'.
modify itab index sy-tabix.
endloop.
when 'DALL'.
loop at itab.
itab-mark = space.
modify itab index sy-tabix.
endloop.
endcase.Regards,
Ravi
‎2007 Apr 16 2:48 PM
in user_command, do something like this
If MARK is the field for selection.
and 'SALL' is the function code for select all button and 'DALL' for deslecte all button, then:
case sy-ucomm.
when 'SALL'.
loop at itab.
itab-mark = 'X'.
modify itab index sy-tabix.
endloop.
when 'DALL'.
loop at itab.
itab-mark = space.
modify itab index sy-tabix.
endloop.
endcase.Regards,
Ravi
‎2007 Apr 16 2:52 PM
Hi,
check out the code of SAP example in transaction BIBS, menu Elements->TabControl - >Multiple Sel.
See also example transaction DWDM, TabControl
Regards,