2015 Jun 12 4:37 AM
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.
2015 Jun 12 5:39 AM
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
2015 Jun 12 5:42 AM
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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |