2007 Feb 02 5:22 AM
hi gurus,
i have to show the summation of credit and debit balance in the alv output....cud u plz suggest me the parameter...the scenario is like this...
employee no debitamnt credit amnt
10001 42 00
10001 190 00
10001 89 00
10001 00 -56
10001 00 -67
-
-
total total
how to show the total in alv o/p......plz help me thnx in advance
hi gurus,
i have to show the summation of credit and debit balance in the alv output....cud u plz suggest me the parameter...the scenario is like this...
employee no debitamnt credit amnt
10001 42 00
10001 190 00
10001 89 00
10001 00 -56
10001 00 -67
-
-
total total
how to show the total in alv o/p......plz help me thnx in advance
2007 Feb 02 5:25 AM
for totals
in the fieldcatalog
wa_fcat-do_sum = 'X'.
for subtotals , u have to build the sort table
it_sort-fieldname = 'CREIT'.
it_sort-up = 'X'.
it_sort-subtot = 'X'.
append it_sort.
clear it_sort.
2007 Feb 02 5:26 AM
2007 Feb 02 5:27 AM
HI Ravi,
See the Below Sample code for Totals in ALV ....
http://sap.niraj.tripod.com/id64.html
Regards
Sudheer
2007 Feb 02 5:38 AM
in fieldcat of devit and credit
wfieldcat-do_sum = 'X'.
data : isort type slis_t_sortinfo_alv,
wsort type slis_sortinfo_alv.
wsortinfo-fieldname = 'KUNNR'.
wsortinfo-up = 'X'.
wsortinfo-subtot = 'X'.
wsortinfo-group = '*'.
append wsortinfo to isortinfo.
in alv grid or list display pass the isort.
regards
shiba dutta
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |