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: 

code for select_all and deselect_all in modulepool

Former Member
0 Kudos
111

hi experts,

i want code for push buttons 'selectall ' and 'deselect all' for tablecontrol

in modulepool program. when i select all push button entire records of table control should be selected and when i again press display button those records shoild be in display mode. when i deselect they should be in they should be in normal mode

1 REPLY 1

former_member223537
Active Contributor
0 Kudos
74

Hi,

Goto the layout of Table COntrol & open its attributes.

Tick the checkbox W/Selcolumn & mention values as CHECK in the ip/op box.

Activate it.

In the PAI, Handle OKCODE of select all & deselect all.

For select all.

Loop at tc.

tc-check = 'X'.

modify tc.

endloop.

For deselect all.

loop at tc.

tc-check = ' '.

modify tc.

endloop.

Best regards,

Prashant