10-07-2009 4:04 PM
Hi Gurus,
In my ALV output,
I have used subtotals.
i.e i have sorted PO Number.
and with respect to that i am calculating sub total to Amount field
Now the code works perfectly and subtotal of the amount displayed for each PO Number.
But along with that a GRAND TOTAL is displayed at the end of the ALV List.
I dont want the grand total and need to remove it.
How to remove the grand total.
Kindly help on this.
Thanks
deepan M
10-07-2009 4:22 PM
Hi,
<li>Define layout structure
<li>Set this one
DATA:wa_layout TYPE slis_layout_alv.
<li>Pass this one through REUSE_ALV_LIST_DISPLAY function module.
wa_layout-no_totalline = 'X'.
Thanks
Venkat.Ois_layout = wa_layout
10-07-2009 4:22 PM
Hi,
<li>Define layout structure
<li>Set this one
DATA:wa_layout TYPE slis_layout_alv.
<li>Pass this one through REUSE_ALV_LIST_DISPLAY function module.
wa_layout-no_totalline = 'X'.
Thanks
Venkat.Ois_layout = wa_layout
10-07-2009 5:29 PM
Hi deepan adhi ,
Do not check the option DO_SUM in the catalog.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
*Amount
CLEAR LS_FIELDCAT.
LS_FIELDCAT-TABNAME = 'IT_DATA'.
LS_FIELDCAT-FIELDNAME = 'BETRH'.
LS_FIELDCAT-SELTEXT_L = 'Amount.
LS_FIELDCAT-JUST = 'R'.
LS_FIELDCAT-DO_SUM = 'X'.*
APPEND LS_FIELDCAT TO LT_FIELDCAT.
Hope this information is help to you.
Regards,
José