Skip to Content
0

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

May 17, 2017 at 03:47 AM

78

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sandra Rossi May 17, 2017 at 06:25 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Sandra,

Thank you for the reply

0
Raymond Giuseppi
May 17, 2017 at 06:21 AM
0

Perform some search on classes CL_GUI_TOOLBAR and CL_CTMENU.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Raymond,

Thank you for the reply

0
Richard Harper May 17, 2017 at 06:51 AM
0

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....

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Richard,

Thank you for the reply.

0