Skip to Content
-1

ALV - Hide the TOATALs with SALV approach?

Jan 23 at 04:57 AM

90

avatar image
Former Member

Hello,

I'm achieving SUB-TOTALS in my ALV by suing SALV approach, well, but we don't want to have the TOTALS, we want only sub-totals, pl. let us know how can we supress / hide the TOTALS on ALV, as shown in the below pic in red box

alv.jpg (28.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sandra Rossi Jan 24 at 04:57 PM
1

There isn't such a feature with SALV, but it exists with CL_GUI_ALV_GRID (NO_TOTLINE = 'X' in parameter IS_LAYOUT). So, if you use SALV with the Grid adapter, get the grid control (there are some posts about it), and change the layout via the methods GET_FRONTEND_LAYOUT and SET_FRONTEND_LAYOUT of the grid control. You could do it after SALV->DISPLAY for instance.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you, but my code is as below

 
    TRY.

        cl_salv_table=>factory(

          IMPORTING

            r_salv_table   = go_salv_table    " Basis Class Simple ALV Tables

          CHANGING

            t_table        = gt_po_orders

            ).

      CATCH cx_salv_msg.    " ALV: General Error Class with Message

        RETURN.

    ENDTRY.<br>
0

Yes I know, you already told us. SALV is an Object wrapper of the old technologies. As I said, you can get a direct access to the grid control.

Power of ABAP Objects: Overcome the Restrictions of SALV Model, by Naimesh Patel, on 2008/11/24

SALV and PEPPER : Editing individual columns in the SALV, by Paul Hardy, on 2015/08/07

0
avatar image
Former Member Jan 23 at 02:33 PM
-1

Any help pl.?

Share
10 |10000 characters needed characters left characters exceeded
Michelle Crapo Jan 23 at 08:26 PM
-1

Are you using CL_GUI_ALV_GRID? If you added some of your code, it would help with a better answer.

Thank you,

Michelle

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you, no, I'm not sing CL_GUI_ALV_GRID, I'm using SALV approach

0