‎2009 Sep 02 10:00 AM
Hai all,
I have displayed alv grid in container control using abap objects i.e. using method set_table_for_first_display.
now i need to display list header for this alv grid.
please help me how to create with a sample coding.
Thanks and regards,
Prabu S.
‎2009 Sep 02 11:07 AM
Hi,
For reference of ALV grid object you can go through the program BCALV_TEST_GRID.
what do you mean exactly by list header? Can you provide more details?
Regards,
Ankur Parab
‎2009 Sep 03 6:04 AM
Hai Ankur Parab,
List header in alv grid is that to display header on top of list. For eg. i need to display report name and client address on top of the list. This i need to display using abap objects.
‎2009 Sep 03 12:22 PM
Create a splitter using CL_GUI_EASY_SPLITTER_CONTAINER with a top and bottom half. Put the alv grid in the bottom half. Use cl_dd_document (documented in help.sap.com ) to build the header in the top half. Use events on CL_GUI_ALV_GRID to handle the top-of-list printing.
Or, if available, use CL_SALV_TABLE, and read the documentation on that. When I needed a header for my report, that's what I did. There's plenty of good documentation about if you'll search for it.
matt
‎2009 Sep 10 5:31 AM