2006 Sep 27 4:19 PM
In ALV if you want only the subtotal to be displayed, and dont want the grand total to be displayed, how can it be done?
2006 Sep 27 4:23 PM
Hi,
IT displays both subtotal and grand total ...
Regards,
Santosh
In ALV if you want only the subtotal to be displayed, and dont want the grand total to be displayed, how can it be done?
2006 Sep 27 4:21 PM
2006 Sep 27 4:22 PM
Hi,
See the below Sample program for LIST:-
http://www.sap-basis-abap.com/sapalv.htm
See the below Sample program for Grid:
http://sap.niraj.tripod.com/id64.html
Regards
Sudheer
2006 Sep 27 4:23 PM
Hi,
IT displays both subtotal and grand total ...
Regards,
Santosh
2006 Sep 27 4:31 PM
Hi,
Use the below code.
data:LAYOUT TYPE SLIS_LAYOUT_ALV,
<b>layout-no_totalline = 'X'</b>.
and pass this to ALV function module
IS_LAYOUT = LAYOUT
2006 Sep 27 4:59 PM
2006 Sep 27 4:31 PM
Yes, it can be done. All you need to do is set a flag.
data: layout type SLIS_LAYOUT_ALV.
<b>layout-no_totalline = 'X'.</b>
* CALL ABAP LIST VIEWER (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
<b> is_layout = layout</b>
it_fieldcat = fieldcat
tables
t_outtab = imara.
Now when you subtotal, it will give only subtotals, the grand total will not show.
Regards,
Rich Heilman
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |