Home > Default > Multiple Heading in ALV Grid

Multiple Heading in ALV Grid

October 11Hits:2
Advertisement
Hello ,
I have a requirement to display Multiple heading in ALV Grid, I am using the Class 'cl_gui_alv_grid'. please let me know if you have Any suggestions.
Ex:
|                 Divison                     |     
Sub D:1
Sub D: 2
Sub D: 3
    Like wise i have few more divisions to display and Under we need to display the Sub Division also .
Thanks in Advance..  Waiting for your suggestions.
With Best Regards
Nags

Answers

Hi,
I had attempted to do it in the object oriented way, but found no ready solution, so I settled for the below solution.
Please use the function REUSE_ALV_COMMENTARY_WRITE.
This allows you to print multiple lines in the header.
I had a requirement of showing 5 lines in the header.
So i went on like:
DATA: it_list_commentary TYPE slis_t_listheader,
           wa_list_commentary TYPE slis_listheader.
wa_list_commentary-typ = 'H'.
wa_list_commentary-info = <text>.
APPEND wa_list_commentary TO it_list_commentary.
wa_list_commentary-typ = 'S'.
wa_list_commentary-info = <text>.
APPEND wa_list_commentary TO it_list_commentary.
I fed he internal table with all 5 lines like above.
Finally I called the function.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = it_list_commentary.
Regards,
Prosenjit.
Edited by: prosenjit chaudhuri on Jan 28, 2009 6:14 AM

Read other 5 answers

Tags:

Related Articles

  • Multiple Heading in ALV GridOctober 11

    Hello , I have a requirement to display Multiple heading in ALV Grid, I am using the Class 'cl_gui_alv_grid'. please let me know if you have Any suggestions. Ex: |                 Divison                     |      Sub D:1 Sub D: 2 Sub D: 3     Like

  • Folder for multiple details in ALV GRID DISPLAYOctober 11

    Hi All, I am developing one ALV GRID DISPLAY report. Here I am displaying the material and production order details in the report. If we have the multiple production order details for one material , then in that case , we have to place one folder at

  • How to capture multiple rows of ALV grid when user selected?November 30

    Actually,It is easy to get one single line.However, my user wants select several lines of ALV grid  by condition  .  i need to process the selected lines ,so i need to put these lines into an internal table. But now, i have no idea to capture the lin

  • Selecting Multiple Rows from ALV GRID DisplayNovember 30

    Hi, I am having a ALV GRID Display. I want to select multiple rows from the Output and move them to an internal table. Please let me know how do I acheive this. Thanks in advance, Ishaq.Hi, Have a look on the following code. It displays the selected

  • Selecting multiple rows in ALV grid displayNovember 30

    Hi, I have an ALV grid display in my report. My grid contains multiple rows. I have to select multiple rows at a time, to perform some operations on the selected rows. How can it be achieved? Thanks, Sandeep.Hi , you have to use a box fieldname in th

  • Multiple Selection in ALV gridNovember 30

    HI All, I am displaying output using ALV grid method. On screen i am selecting multiple rows & based on selection i want process further. How can i determine whcih rows user has selected ? Regards, RahulHi, In IT_FIELDCAT you can pass one field with

  • Selecting multiple rows in alv gridNovember 30

    my requirement is i want to send the data from alv grid to smartforms using check boxes from report output but without using either oo framework or layout-box_fieldname.can anybody give me the solution?in fieldcatalog you have to use CHECKBOX = 'X' 

  • Multiple Input Rows In ALV Grid (Editable)November 30

    Hi, I have an editable ALV grid and need to have multiple blank rows ready for input. Something similar to what happens when you click the "New Entries" button in SM30 (Table Maintainance). There is a local function for appending lines in the AL

  • ALV Grid Column name in multiple rowsNovember 30

    Hi, When ALV Grid is display columns are displayed horizontally in a single line. Is there ne way to display the column names in 2 rows e.g : Functional Location column should be shown as      Functional        LocationHi, Actually it is not possible

  • Table Maintenance via ALV GRIDNovember 30

    Hi Experts, I have a requirement to do table maintenance for multiple tables using ALV GRID, with options to change, delete, add records and upload multiple records via copy/paste functionality. Thanks.Your welcome. RobRead other 2 answers

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 15 q. 0.812 s.