Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

About events of class cl_gui_alv_grid second Q

Hi I tried to paste one screen shot over here, but I cant.

How I can do this,

Ok the question is

In the alv list I have created one container and set resp handlers.

In the handle tool bar methode I created some button in toolbar by using folling code.

CLEAR wa_toolbar.

MOVE 2 TO wa_toolbar-butn_type.

MOVE 'MORE' TO wa_toolbar-function.

MOVE icon_display_text TO wa_toolbar-icon.

MOVE 'For more information' TO wa_toolbar-quickinfo.

MOVE 'More Info' TO wa_toolbar-text.

MOVE ' ' TO wa_toolbar-disabled.

APPEND wa_toolbar TO i_object->mt_toolbar.

CLEAR wa_toolbar.

MOVE 0 TO wa_toolbar-butn_type.

MOVE 'ORG' TO wa_toolbar-function.

MOVE icon_display_text TO wa_toolbar-icon.

MOVE 'Organisational' TO wa_toolbar-quickinfo.

MOVE 'Org' TO wa_toolbar-text.

MOVE ' ' TO wa_toolbar-disabled.

APPEND wa_toolbar TO i_object->mt_toolbar.

CLEAR wa_toolbar.

MOVE 0 TO wa_toolbar-butn_type.

MOVE 'DTE' TO wa_toolbar-function.

MOVE icon_display_text TO wa_toolbar-icon.

MOVE 'About Dates' TO wa_toolbar-quickinfo.

MOVE 'Dates' TO wa_toolbar-text.

MOVE ' ' TO wa_toolbar-disabled.

APPEND wa_toolbar TO i_object->mt_toolbar.

CLEAR wa_toolbar.

MOVE 0 TO wa_toolbar-butn_type.

MOVE 'ALL' TO wa_toolbar-function.

MOVE icon_display_text TO wa_toolbar-icon.

MOVE 'Show All' TO wa_toolbar-quickinfo.

MOVE 'All' TO wa_toolbar-text.

MOVE ' ' TO wa_toolbar-disabled.

APPEND wa_toolbar TO i_object->mt_toolbar.

The first button " more info " is menu button as I want.

and right now reamening button are normal buttons.

Question : Now I want last three button to be displayed in the dropdown box for frist menu button.

Means when user clicks first button i.e. menu button.

a listbox/dropdown box should appear conatining reamening three buttons.

How can I do this,

Please help me out.

Not what you were looking for? View more on this topic or Ask a question