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

Pushbutton in ALV

Hi ,

how can i add a pushbutton in the menu of ALV.

Regards

Arun

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2005 at 09:33 AM

    Hi Arun,

    Check the following code:

    CLASS lcl_events DEFINITION.

    PUBLIC SECTION.

    METHODS:

    handle_toolbar

    FOR EVENT toolbar OF cl_gui_alv_grid

    IMPORTING e_object e_interactive.

    PRIVATE SECTION.

    ENDCLASS.

    CLASS lcl_events IMPLEMENTATION.

    METHOD handle_toolbar.

    DATA:

    zzl_toolbar TYPE stb_button.

    *---Append an icon for "Check prices"

    CLEAR:

    zzl_toolbar.

    zzl_toolbar-function = 'CHECK_PRICE'.

    zzl_toolbar-icon = icon_check.

    zzl_toolbar-quickinfo = text-fq6.

    zzl_toolbar-text = text-fi6.

    APPEND zzl_toolbar

    TO e_object->mt_toolbar.

    ENDMETHOD.

    ENDCLASS.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 17, 2005 at 09:38 AM

    look at program

    <b>BCALV_TEST_USER_COMMANDS</b>

    User defined button called "Change Data" is added.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 17, 2005 at 08:46 PM

    Hi Arun

    You can also make use of the tutorial "An" target="_blank">www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf">"An Easy Reference For ALV Grid Control".

    Kind Regards...

    *--Serdar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 12:58 PM

    Hi Arun ,

    Just refer to this document.Hope it will do...

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/abap code sample for data browser using alv grid.doc

    Regards ,

    Immanuel.

    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.