02-23-2009 4:28 AM
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
02-23-2009 4:40 AM
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..
02-23-2009 5:06 AM
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,
04-02-2009 7:00 AM
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
02-23-2009 5:56 AM
04-09-2009 1:25 PM