How to display sub totals and some calculated values in ALV grid.
Say company wise Employee details..
For Each Company display employee count = total number of employees.
Company salary = total employee salary for the company.
company Due = company salary * 0.00025/12.
Employee 1 2000.00
Company count = 2
Company salary = 3000.00.
company Due = 0.625
Employee count = 1
Company salary = 2000.00.
company Due = 0.0416
grand count = 3
grand salary = 5000.00
grand due = 0.1
Edited by: Gautam Totekar on Oct 8, 2008 9:26 PM
Edited by: Gautam Totekar on Oct 8, 2008 9:27 PM
check the transaction FBL5n if the similar look you want debug it.
if not using the SORT options based on company code and pass it to ALV function.
in the sort mention the subtotal = 'X' at company code level.