Skip to Content
author's profile photo Former Member
Former Member

Checkbox problem in ALV toolbar

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2010 at 05:16 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2011 at 08:28 AM

    ok

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.