09-19-2008 9:13 AM
Hello Experts,
After following many examples and making sure that my sort table is populated,
my subtotal text is still not being displayed. Below is the code:
*&--------------------------------------------------------------------*
*& Form subtotal_text
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->IM_OUTPUT_FIN text
* -->IM_SUBTOTAL_TEXT text
*----------------------------------------------------------------------*
FORM subtotal_text USING im_output_fin TYPE any
im_subtotal_text TYPE slis_subtot_text.
IF im_subtotal_text-criteria = 'TAB_COUNTER'.
im_subtotal_text-display_text_for_subtotal = 'Subtotal'.
ENDIF.
ENDFORM. "subtotal_text
The im_subtotal_text has no values whatsoever.
09-19-2008 9:17 AM
hi
There are two internal table that needs to be passed to the ALV FM / Method
a) Sort table
b) Field Catalog
For showing the sub totals and grand totals do the following
In the Field Catalog set the field DO_SUM to 'X'. In your case field MENGE
In the sort table set the field SUBTOT to 'X'. In your case the field LIFNR.
Sample report
09-19-2008 9:17 AM
hi
There are two internal table that needs to be passed to the ALV FM / Method
a) Sort table
b) Field Catalog
For showing the sub totals and grand totals do the following
In the Field Catalog set the field DO_SUM to 'X'. In your case field MENGE
In the sort table set the field SUBTOT to 'X'. In your case the field LIFNR.
Sample report