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

Adding grid title to ALV grid toolbar

Former Member
0 Likes
4,825

Hi Experts,

I just want to know if there is any possibility to add the Title of an ALV grid to the Grid toolbar. I have three grids in a single screen and the title of each grid takes so much of space. So we want to move the title to the toolbar by adding a custom buttom. Is there any other way to do this.

Thanks in advance

Hi Experts,

I just want to know if there is any possibility to add the Title of an ALV grid to the Grid toolbar. I have three grids in a single screen and the title of each grid takes so much of space. So we want to move the title to the toolbar by adding a custom buttom. Is there any other way to do this.

Thanks in advance

2 REPLIES 2
Read only

Kanagaraja_L
Active Contributor
0 Likes
1,353
Data:gs_layout   TYPE lvc_s_layo.

          
          gs_layout-grid_title = 'Title'.

    CALL METHOD grid1->set_table_for_first_display
         EXPORTING i_structure_name = ' ''
                             is_layout        = gs_layout
         CHANGING  it_outtab        = <>.

Check the Program BCALV_GRID_05

Edited by: Kanagaraja Lokanathan on Jan 8, 2010 7:45 AM

Read only

Former Member
0 Likes
1,353

Hi,

Refer Link: [ALV GRID COMPLETE EXAMPLE WITH TOOLBAR BUTTONS|http://wiki.sdn.sap.com/wiki/display/Snippets/ALVGRIDCOMPLETEEXAMPLEWITHTOOLBARBUTTONSUSINGCLASS.]

Also refer the program BCALV_GRID_05 -> Demonstrate the creation of an own toolbar button.