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

module pool: taking checkbox in tab control

Former Member
0 Likes
766

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-

4 REPLIES 4
Read only

Former Member
0 Likes
608

Hi,

Refer to this link..

Read only

Former Member
0 Likes
608

Hi

Check the Function Code for the SELECTALL & DESELECTALL buttons

is properly defined in the PF-STATUS (SE41-Menu Pianter) of the program .

Regards

Read only

Former Member
0 Likes
608

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

Read only

Former Member
0 Likes
608

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.