Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Grand total in ALV

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

venkat_o
Active Contributor
0 Kudos

Hi, <li>Define layout structure

DATA:wa_layout TYPE slis_layout_alv.
<li>Set this one
wa_layout-no_totalline = 'X'.
<li>Pass this one through REUSE_ALV_LIST_DISPLAY function module.
is_layout = wa_layout
Thanks Venkat.O

2 REPLIES 2

venkat_o
Active Contributor
0 Kudos

Hi, <li>Define layout structure

DATA:wa_layout TYPE slis_layout_alv.
<li>Set this one
wa_layout-no_totalline = 'X'.
<li>Pass this one through REUSE_ALV_LIST_DISPLAY function module.
is_layout = wa_layout
Thanks Venkat.O

Former Member
0 Kudos

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é