2006 Nov 30 10:19 PM
Hello friends,
I have the output in the ALV grid display.
I need to find the total only for one field and display at the end in the same column at the bottom.
How can this be done.
Shejal.
2006 Nov 30 10:21 PM
Hi,
Have DO_SUM = 'X' in the field catalog for the field that you want to total..
Thanks,
Naren
Hello friends,
I have the output in the ALV grid display.
I need to find the total only for one field and display at the end in the same column at the bottom.
How can this be done.
Shejal.
2006 Nov 30 10:21 PM
Hi,
Have DO_SUM = 'X' in the field catalog for the field that you want to total..
Thanks,
Naren
2006 Nov 30 10:24 PM
u mean jsut changes here as follows.
w_fieldcat-tabname = 'it_output'.
w_fieldcat-fieldname = 'DMBTR'.
w_fieldcat-outputlen = '10'.
w_fieldcat-col_pos = '5'.
w_fieldcat-row_pos = '1'.
w_fieldcat-seltext_l = 'Value'.
APPEND w_fieldcat TO i_fieldcat.
CLEAR w_fieldcat.
Just by adding
w_fieldcat-DO_SUM = 'X' .,
before the append statement.
athanks,
Shejal.
2006 Nov 30 10:25 PM
2006 Nov 30 10:22 PM
In the field catalogue just make the do_sum = 'X'.
Example,
ls_fieldcat-fieldname = 'NETWR'.
<b>ls_fieldcat-do_sum = 'X'.</b>
Regards
Kathirvel
2006 Nov 30 10:26 PM
2006 Nov 30 10:28 PM
2006 Nov 30 10:29 PM
Hi Shejal,
This will do,
<b>
w_fieldcat-tabname = 'IT_OUTPUT'.</b>
w_fieldcat-fieldname = 'DMBTR'.
w_fieldcat-outputlen = '10'.
w_fieldcat-col_pos = '5'.
w_fieldcat-row_pos = '1'.
w_fieldcat-seltext_l = 'Value'.
<b>w_fieldcat-DO_SUM = 'X' .</b>
APPEND w_fieldcat TO i_fieldcat.
CLEAR w_fieldcat.
Regards
Kathirvel
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |