Skip to Content
0
Former Member
Feb 13, 2007 at 09:37 AM

how to display a fld in subtotal text place

15 Views

how to display vendor name along with subtotals...?

my ALV report (using function modules, choice for LIST and GRID) subtotals needs to display..

the code is :

ls_sort TYPE slis_sortinfo_alv.

*-- Level 1

CLEAR ls_sort.

ls_sort-fieldname = 'LIFNR'.

ls_sort-spos = 1.

ls_sort-up = 'X'.

ls_sort-subtot = 'X'.

APPEND ls_sort TO vt_sort.

*-- Level 2

CLEAR ls_sort.

ls_sort-fieldname = 'EBELN'.

ls_sort-spos = 2.

ls_sort-up = 'X'.

ls_sort-subtot = 'X'.

CLEAR ls_sort.

ls_sort-fieldname = 'DMBTR'.

ls_sort-spos = 3.

ls_sort-up = 'X'.

ls_sort-subtot = 'X'.

APPEND ls_sort TO vt_sort.

plz help me...

for example

for list display

ilayout-subtotals_text = 'Sub total'.

but here i want to display a vendor number instead of 'Sub total'.