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

Adding select all button for check box column in Table control in Module pool

Former Member
0 Likes
1,961

Hi All,

I have a requirement where in I have a Table control with a check box column. Now a button needs to be added to the screen which upon clicking has to select all the check boxes in the table control.

Please suggest me how to proceed with this requirement.

Thanks in advance.

Regards,

SriLalitha.

Hi All,

I have a requirement where in I have a Table control with a check box column. Now a button needs to be added to the screen which upon clicking has to select all the check boxes in the table control.

Please suggest me how to proceed with this requirement.

Thanks in advance.

Regards,

SriLalitha.

2 REPLIES 2
Read only

Former Member
0 Likes
1,268

Hi,

  add a button in the screen and maintain the fct code for that button.

under PAI with Moudle user_command. wirte the code like

for Example : FCT CODE for the Button is 'SELECTALL'

module user_command.

if sy-ucomm = 'SELECTALL'.

loop  at itab into wa

wa-checkbox = 'X'

modify itab from wa transporting checkbox.

endloop.

endif.

endmodule.

Regards,

Kartik

Read only

SwadhinGhatuary
Active Contributor
0 Likes
1,268

Hi,

Put a button on screen with Fcode  'SELALL'..

In User Command Subroutine of PAI.

if OK_CODE = 'SELALL'.

Loop at Internal table (populated in Tab cntrl).

  table-<check box column> = 'X'.

modify table.

endloop

endif.