Application Development 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: 

Checkbox problem in ALV toolbar

Former Member
0 Kudos

Hello all,

I hv added a checkbox in my alv toolbar using classes.

i.e. MOVE 'NO_DEFECTS' TO ls_toolbar-function.

MOVE 'No Defects' TO ls_toolbar-quickinfo.

MOVE 'No Defects' TO ls_toolbar-text.

MOVE 5 TO ls_toolbar-butn_type.

MOVE ' ' TO ls_toolbar-disabled.

APPEND ls_toolbar TO e_object->mt_toolbar.

Alv is displaying in one subscreen.

My problem is my checkbox is displaying as a button instead of a check box and also i want to know how can i check whether my checkbox is active or not.

I want to disable some buttons in the alv toolbar based on this checkbox.

Thanks in advance.

regards,

Lokesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

To disable the buttons in the toolbar, In the ALV events exclude the fcodes of the buttons you want to disable and pass it to the

to the program like the below statement

set pf-status 'STDPOPBX_FULLSCREEN' excluding lt_extab

of program 'SAPLKKBL'.

To use the check box pass the ls_toolbar-ICON as ICON_WD_CHECK_BOX.

Regards,

Kranthi

2 REPLIES 2

Former Member
0 Kudos

Hi,

To disable the buttons in the toolbar, In the ALV events exclude the fcodes of the buttons you want to disable and pass it to the

to the program like the below statement

set pf-status 'STDPOPBX_FULLSCREEN' excluding lt_extab

of program 'SAPLKKBL'.

To use the check box pass the ls_toolbar-ICON as ICON_WD_CHECK_BOX.

Regards,

Kranthi

Former Member
0 Kudos

ok