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

code for select_all and deselect_all in modulepool

Former Member
0 Likes
438

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
Read only

Former Member
0 Likes
401

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