2007 Jul 02 6:47 AM
i hve to get output like this...
year period qty
-
2000 10 | 1
| 2
| 3
| 6 (subtotal)
-
2000 10 | 1
| 2
| 3
| 6
12 (granttotal)
plz tell me how can i dispaly it in ALV grid.
im using oo concept
i hve to get output like this...
year period qty
-
2000 10 | 1
| 2
| 3
| 6 (subtotal)
-
2000 10 | 1
| 2
| 3
| 6
12 (granttotal)
plz tell me how can i dispaly it in ALV grid.
im using oo concept
2007 Jul 02 10:29 AM
Hi,
When calling the method SET_TABLE_FOR_FIRST_DISPLAY pass the parameter IT_SORT.
The table should contain an entry for the year fieldname, with the field UP set for ascending. A second entry for the period, with the UP field set again and the field SUBTOT set to output a subtotal at the end of each period.
The grand total can be controlled via the field catalog, set field DO_SUM for the relevant quantity column.
Cheers,
Darren
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |