Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

About events of class cl_gui_alv_grid second Q

Former Member
0 Kudos

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.

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Amit

Have a look at transaction SE83 (Reuse Library) and check the sample report SAPTOOLBAR_DEMO1 (folder Toolbar Control). This control (CL_GUI_TOOLBAR) is the same as the ALV grid toolbar. Here you should find enough ideas how to create dropdown toolbar buttons.

Regards

Uwe

0 Kudos

Sorry but the server on which I work does not contain any documentaion in SE83 I have checked that before I post the question.

Please give me some other solutions.