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

list header for alv grid using abap objects

Former Member
0 Likes
666

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.

4 REPLIES 4
Read only

Former Member
0 Likes
612

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

Read only

0 Likes
612

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.

Read only

matt
Active Contributor
0 Likes
612

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

Read only

0 Likes
612

thank you