Skip to Content
0
Former Member
Aug 04, 2009 at 12:11 PM

Subtotal text in ALV using OO ALV

313 Views

HI All,

How to display subtotal text in ALV using OO ALV?

My output of ALV should be as follows

COL1 COL2 COL3

ABC 900 M1

PQR 100 M1

M1 Subtotal 1000

XYZ 2100 M2

M2 Subtotal 2100

I could put the subtotal, but couldnu2019t add subtotal text.

My code

TRY.

CALL METHOD cl_salv_table=>factory

IMPORTING

r_salv_table = g_alv

CHANGING

t_table = gt_report

.

CATCH cx_salv_msg .

ENDTRY.

u2026u2026

*Display the table.

g_alv->display( ).