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

Regarding ALV display

Hi All,

I have a requirement as given below.

Out put of a report is to be displayed using ALV grid. I have done the display part as well as totaling part.

I have a check box in the selection screen.

If checkbox = 'X'.

display totals only.

else.

display entire details.

endif.

can I do the above requirement using same internal table?

Is there any option in field catalog or display setting of the ALV to hide the list body and display only the totals?

Thanks in advance.

Jaison Joseph.

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 Oct 22, 2006 at 01:04 PM

    Hi

    U should have managed the total/subtotal by sort criteria: parameter IT_SORT.

    This parameter is like SLIS_T_SORTINFO_ALV where the field EXPA should do what you need, this is the help:

    expa

    Prerequisite:

    IT_SORT-SUBTOT = 'X', i.e. sort criterion is also subtotal criterion

    If the first list output is only to be expanded to total level n,

    and can then be further expanded interactively by the user, the flag

    should be set at the total level criterion for level n.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Jaison,

      the easiest way to achive this, is to do the subtotaling with or without detailed lines by changing the ALV variant when in display.

      When you save the ALV layout(variant), in the popup you have a "Save with" tab. There is "Breakdwn to totals lvl:" entry. You ca select the level of sum displayed.

      After saving layout variant, you can pass it depending on users input in structured parameter IS_VARIANT. Yo need to fill report field with report name and variant with layout name.

      Best is, to have a layout selection parameter. In Initialization, fill it using FM REUSE_ALV_VARIANT_DEFAULT_GET, AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_layout, use REUSE_ALV_VARIANT_F4.

      This makes your report far more flexible.

      Regards,

      Clemens

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.