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

ALV Grid

Former Member
0 Likes
305

Hi,

I am using LDB PNP to display the list of employees by cost center. I need to display it in an ALV Grid group by cost center. I know how to display it in ALV grid, but how do i do grouping in ALV?. I also want to know how to display some footer message after the ALV grid is displayed. Please let me know.

Thanks,

Sandeep

1 REPLY 1
Read only

Former Member
0 Likes
273

Hi Sandeep,

You can give a SORT CONDITION to the ALV list. Thus the list will be grouped by the Fields specified in the Sort Condition.

The List display method/ Function Module, contains a table named IT_SORT, populate this table with the sequence of the fields required for your purpose.

for example if you want to group by COST CENTER...

IT_SORT-FIELDname = <COSTCENTER>

IT_SORT-UP = 'X'. " X for Ascending

To write a Footer message use the END-OF-PAGE event in the ALV List. Populate the IT_EVENTS Table in the list display function module/mehtod.

Regards,

Vara

Regards,

Vara