2007 Mar 08 7:41 AM
Hi all,
I need to write out the sum of a particular column X at end of the list in ALV.
Like below,
Sum of the NETPR(column name) = ___
Could you people tell me how to do this in alv?
Thanx,
Raj
2007 Mar 08 7:45 AM
For that field X, in the field catalog you must set DO_SUM = 'X'.
fieldcat-do_sum = 'X'.
Regards,
Ravi
Hi all,
I need to write out the sum of a particular column X at end of the list in ALV.
Like below,
Sum of the NETPR(column name) = ___
Could you people tell me how to do this in alv?
Thanx,
Raj
2007 Mar 08 7:45 AM
For that field X, in the field catalog you must set DO_SUM = 'X'.
fieldcat-do_sum = 'X'.
Regards,
Ravi
2007 Mar 08 8:18 AM
Hi Ravi,
Thanks for reply.
I want to show the serial number for the records in alv.
May I know how to do the above?
Expecting reply
Thanks
Raj
2007 Mar 08 8:43 AM
for serial numbers
. Add 1 more field to ur final itab of type i
2. in fieldcatalog
CLEAR LS_FIELDCAT.
LS_FIELDCAT-COL_POS = 1.
LS_FIELDCAT-FIELDNAME = 'SLNO'.
LS_FIELDCAT-SELTEXT_M = 'Serial No'.
APPEND LS_FIELDCAT TO RT_FIELDCAT.
CLEAR LS_FIELDCAT
3. loop at itab into wa_itab.
itab-slno = var.
var = var + 1.
modify itab from wa_itab.
endloop.
2007 Mar 08 8:28 AM
Hi,
Add one more field int the int. table that is being displayed and increment starting
with1 until all the records and display as first field
Regards
2007 Mar 08 8:38 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |