Application Development and Automation 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: 
Read only

Not enough space for items in application toolbar...

Former Member
0 Likes
1,195

Hello Gurus,

We a ALV report where we have more then 35 items in Application toolbar. It seems that in standard application toolbar, there cannot be more then 35 items in application toolbar.

What is the option so that I can have more tehn 35 buttons in application toolbar of ALV ?

Is there a way (maysbe some object oriented way) so that I can have multiple lines of application toolbar or have more then 35 buttons in application toolbar ?

Regards,

Jainam.

Edited by: Jainam Shah on Mar 18, 2009 6:57 PM

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
1,121

You can add any number of items in the Menu. Try adding options in the menu instead of using Application toolbar

Hello Gurus,

We a ALV report where we have more then 35 items in Application toolbar. It seems that in standard application toolbar, there cannot be more then 35 items in application toolbar.

What is the option so that I can have more tehn 35 buttons in application toolbar of ALV ?

Is there a way (maysbe some object oriented way) so that I can have multiple lines of application toolbar or have more then 35 buttons in application toolbar ?

Regards,

Jainam.

Edited by: Jainam Shah on Mar 18, 2009 6:57 PM

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
1,122

You can add any number of items in the Menu. Try adding options in the menu instead of using Application toolbar

Read only

0 Likes
1,121

Yup. I am aware of adding any number of items in menu bar. But is it possible to have multiple lines for application toolbar ?

Regards,

Jainam.

Read only

0 Likes
1,121

If you are using OO for alv then you can make toolbars into GROUPS


class lcl_event_receiver_grid implementation.
  method handle_toolbar_0100.
    clear ls_toolbar.
    move 3 to ls_toolbar-butn_type.
    append ls_toolbar to e_object->mt_toolbar.
    clear ls_toolbar.
    move 'DETAIL_MENU' TO ls_toolbar-function.
    move icon_detail TO ls_toolbar-icon.
    move 'Switch to STC...'(101) to ls_toolbar-quickinfo.
    move 2 to ls_toolbar-butn_type.
    move space to ls_toolbar-disabled.
    append ls_toolbar to e_object->mt_toolbar.

  endmethod.                             " handle_toolbar_0100

  method handle_menu_button.
    if e_ucomm = 'DETAIL_MENU'.
      call method e_object->add_function
                  exporting fcode   = 'YSTC'
                            text    = text-100.
    endif.
  endmethod.

and


    set handler event_receiver_grid->handle_toolbar_0100 for grid1.
    call method grid1->set_toolbar_interactive.
    set handler event_receiver_grid->handle_menu_button for grid1.

Read only

0 Likes
1,121

Thanks for the inputs. Can you refer few more examples so that I can change my clasical function module apporach to OO ALV Approach.

Regards,

Jainam.

Read only

0 Likes
1,121

check these programs in se38

BCALV*

SALV*