Skip to Content

ALV Menu Button

I am trying without sucess to add an icon to an ALV toolbar menu button. The button appears with text but no icon.

I have seen it work before just wondering what i am missing.

eg.

METHOD on_menu_button.

CALL METHOD e_object->add_function

EXPORTING fcode = 'ZCHANGE'

icon = icon_change

text = 'Contact'.

Cheers

JP

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 23, 2004 at 09:03 AM

    try giving the icon as '0Z' instead of icon_change

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2004 at 09:07 AM

    Check this program <b>BCALV_GRID_05</b> and I am not sure whether you are doing it correctly.

    All you need to do is :

    a) Define a class

    b) add a method for event toolbar

    c) in the method fill the internal table

    e_object->mt_toolbar

    Regards,

    Subramanian V.

    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.