‎2007 Sep 28 7:32 AM
HOW CAN ALL THE CHECKBOXES IN MY ALV BE MARKED WHEN I CLICK ON A BUTTON?
‎2007 Sep 28 7:37 AM
hi rico.... u can set the value of your all check boxes to 'X', when u push the button...
reward points if useful..
‎2007 Sep 28 7:37 AM
hi rico.... u can set the value of your all check boxes to 'X', when u push the button...
reward points if useful..
‎2007 Sep 28 7:38 AM
I think you are referring to clicking on pushbutton..and when u click, all the checkboxes need to be checked..
try this..
create a routine User_command and write your code there..
if <Function code of PB>.
loop the table.
all checkboxes = 'X'.
endloop.
then display it again using grid_display..
endif.
pass the above routine to I_CALLBACK_USER_COMMAND in main grid_display Funcion module..
Hoep this helps..
‎2007 Sep 28 7:39 AM
Hi Rico,
Select / De-select all is the option your are looking for...
Loop at your internal table and move 'X' to the checkbox field & modify your internal table endloop.
If the hint is useful Say thanks by reward .
Regards,
Prabhu Rajesh
‎2007 Sep 28 7:46 AM
HI,
check this code.
TABLES:SSCRFIELDS.
PARAMETERS:c1 AS checkBOX,c2 AS checkBOX,
c3 AS checkBOX,c4 AS checkBOX.
SELECTION-SCREEN PUSHBUTTON /10(5) BUTTON1 USER-COMMAND ABCD1.
SELECTION-SCREEN PUSHBUTTON 20(7) BUTTON2 USER-COMMAND ABCD2.
INITIALIZATION.
BUTTON1 = 'Check'.
BUTTON2 = 'Uncheck'.
AT SELECTION-SCREEN.
case SSCRFIELDS-UCOMM.
when 'ABCD1'.
c1 = 'X'.
c2 = 'X'.
c3 = 'X'.
c4 = 'X'.
when 'ABCD2'.
c1 = ' '.
c2 = ' '.
c3 = ' '.
c4 = ' '.
ENDcase.
rgds,
bharat.