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: 

Sub total in blocked alv

Former Member
0 Kudos

hi experts,

i have tried to subtotal in blocked alv. i used the coding for sorting in grid display. its working in FM reuse_alv_grid_display.

but its not working in blocked alv, i.e., in FM reuse_alv_block_list_append .

so what to do ?

kind regards,

debendra

5 REPLIES 5

former_member632729
Contributor
0 Kudos

Hi dude,

In Field Catlog we have a parameter called do_sum .. pass the value 'X' to this parameter for which you want to print the subtotals column..

0 Kudos

hi,

before posting my question , i have tried for parameters do_sum in fieldcatalog.

i have told in FM reuse_alv_grid_display its working . but in blocked alv i.e., FM : reuse_alv_block_append its not working.

so what next ?

kind regards,

0 Kudos

hi all,

yes my question has been answered.

as per below.

have to maintain this line : WA_SORT-TABNAME = 'IT_MUSTER'

where IT_MUSTER is the table name.

FORM APPEND USING FTAB TYPE C FDATA TYPE STANDARD TABLE.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

IS_LAYOUT = layout

IT_FIELDCAT = it_fcat

I_TABNAME = FTAB

IT_EVENTS = it_event

IT_SORT = IT_SORT

TABLES

T_OUTTAB = FDATA.

ENDFORM.

Form sort.

WA_SORT-TABNAME = 'IT_MUSTER'.

wa_sort-fieldname = 'MON'.

wa_sort-SUBTOT = 'X'.

append wa_sort to it_sort.

clear wa_sort.

Endform.

ragards,

debendra

Former Member
0 Kudos

Hi,

Check the below Link

Hope this helps you.

Regards,

Anki Reddy

Former Member
0 Kudos

This message was moderated.