Skip to Content

How to have a button to get context menu on application toolbar in module pool?

Hi All,

As a part of development requirement, need to have a button on application toolbar in module pool something like gos button, so that there is a context menu to execute some actions. Is there a way to do this?. Does SAP permit to have some custom buttons which could bring context menus on application toolbar?. Not using the standard SAP class to create a toolbar.Could suggest some ideas and tips to achieve the above.

Thanking in advance,

Regards,

Ramesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 17, 2017 at 06:25 AM

    It's not possible to have such a button in the "application toolbar".

    But you could hide the application toolbar (there's an option in dynpro's attributes), and display your own toolbar control (cl_gui_control, which allows this kind of button) at the top of the dynpro.

    Add comment
    10|10000 characters needed characters exceeded

  • May 17, 2017 at 06:21 AM

    Perform some search on classes CL_GUI_TOOLBAR and CL_CTMENU.

    Add comment
    10|10000 characters needed characters exceeded

  • May 17, 2017 at 06:51 AM

    And to aid you a bit further, the buttons on a tool bar can have different types and behaviours from normal buttons to menu buttons....

    Add comment
    10|10000 characters needed characters exceeded