Application Development and Automation 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: 
Read only

Urgent

Former Member
0 Likes
444

How to provide select all deselect all and select block fxnality in table control

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
417

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

2 REPLIES 2
Read only

Former Member
0 Likes
418

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

Read only

Former Member
0 Likes
417

Hi,

check out the code of SAP example in transaction BIBS, menu Elements->TabControl - >Multiple Sel.

See also example transaction DWDM, TabControl

Regards,