‎2009 Jun 01 9:10 AM
i want to take check box in tab control. when i click on button selectall--all checkbox checked and when i click deselect button -all checkbox deselected.-plz send coding for it-
‎2009 Jun 01 9:17 AM
‎2009 Jun 01 9:40 AM
Hi
Check the Function Code for the SELECTALL & DESELECTALL buttons
is properly defined in the PF-STATUS (SE41-Menu Pianter) of the program .
Regards
‎2009 Jun 01 11:03 AM
Hello Sunil,
IN PAI set your FLAG = 'X' WHEN 'SELECTALL' fcode is pressed.
IN PBO.
MODULE select_all_check_box.
LOOP AT itab WITH CONTROL tbcl.
ENDLOOP.
-
MODULE select_all_check_box.
IF FLAG = 'X'.
Modify table itab transporting sel.
endif.
ENDMODULE.
-
Where SEL is the field that you used for check box.
Hope you problem is solved.
Cheers,
Suvendu
‎2009 Jun 01 11:06 AM
In user command of pai
CASE SY-UCOMM.
WHEN 'SELECTALL'.
wa_tablecontrol-sel = 'X'. " seletion field on table control
MODIFY it_tbcontrol from wa_tablecontrol TRANSPORTING SEL WHERE SEL IS INITIAL.
refresh control 'your_tcname' from screen no 'ur_screen_no'.
WHEN 'DESELECTALL'.
wa_tablecontrol-sel = SPACE.
MODIFY it_tbcontrol from wa_tablecontrol TRANSPORTING SEL WHERE SEL = 'X'.
refresh control 'your_tcname' from screen no 'ur_screen_no'.
ENDCASE.