Skip to Content

My subtotal text criteria(slis_subtot_text) is not getting populated...

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'.
ENDFORM.                    "subtotal_text

The im_subtotal_text has no values whatsoever. 
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 08:17 AM


    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



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.