Skip to Content
author's profile photo Former Member
Former Member

ALV Sub total texts. displayed in list not in grid.

Hi,

I am displaying data using alv and sub-totals on a particular column.

i am getting the sub-totals but i am not getting the sub-total texts when i am displaying data in a grid.

'REUSE_ALV_GRID_DISPLAY'.

i am getting subtotals and subtotal texts when i am diSplAying in list.

'REUSE_ALV_LIST_DISPLAY'.

but i want to get subtotal texts using alv grid, is it possible, if so please send me the code.

Any help in this regard is highly appreciated.

Thanks in advance for your help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2004 at 07:53 AM

    In the Layout structure(<b>IS_LAYOUT</b>), you can set <b>subtotals_text</b> = 'My Subtotals' and totals_text = 'My Totals'.

    Also refer https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an easy reference for alv grid control.pdf

    Regards,

    Subramanian V.

    Message was edited by: Subramanian Venkateswaran

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Actually i have wriitten the same code, in the alv. I am using Function modules. for the same code the sub-total and total text is appearing in the list output. but not in the grid output.

      code.

      -


      wa_layout-zebra = 'X'.

      wa_layout-subtotals_text = 'Total'.

      wa_layout-totals_text = 'Sum of Marks'.

      alv statement.

      -


      is_layout = wa_layout

      Declaration.

      -


      DATA : wa_layout type slis_layout_alv.

      for the same declarations (Above) list is showing the texts but not the grid.

      Any help in this regard is highly appreciated.

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.