Reply from japag3 on Jun 25 at 1:25 AM Hi, You create an internal table of type LVC_T_SORT, put the value 'PERNR' under FIELDNAME field and assign 'X' to fieldname SUBTOT. Then, in your field catalog internal table, the one with table type LVC_T_FCAT, you should mark the field DO_SUM with 'X', make the marking during append of the value 'PAIDVAL'. For complete steps please follow this link >>> http://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTAL +in+ALV Regards, Onin
| | | ---------------Original Message--------------- From: gongotar Sent: Sunday, June 24, 2012 9:04 AM Subject: Calculate Sum in ALV Grid Hi experts, what I have in my abap program is an alv grid with some fields including personnal number (PERNR) and paid value (PAIDVAL). for each person (PERNR) there are several PAIDVALs, also for each person we have several rows in the alv grid, what I want to do is that I can group personnal by PERNR and then for each person calculate the sum of the PAIDVALs in the alv grid, something like the following example: PERNR NAME TEL DATE PAIDVAL 1000 John 2134 03.21 120000 1000 John 2134 04.11 145000 1000 John 2134 04.18 90000 1000 John 2134 05.03 110000 465000 1021 Peter 2165 03.21 160000 1021 Peter 2165 04.11 110000 1021 Peter 2165 04.18 167000 437000 ... How can I do that? Thanks in advance | | Reply to this email to post your response. __.____._ | _.____.__ |
No comments:
Post a Comment