‎2006 Jul 24 10:46 PM
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
‎2006 Jul 24 10:55 PM
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