cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - Hide the TOATALs with SALV approach?

former_member194142
Participant
0 Kudos

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

former_member194142
Participant
0 Kudos

Thank you, but I need answer for SALV approach, I'm not using GRID_DISPLAY functions, I'm using SALV factory class

Accepted Solutions (0)

Answers (3)

Answers (3)

Sandra_Rossi
Active Contributor

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.

former_member194142
Participant
0 Kudos

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>
Sandra_Rossi
Active Contributor
0 Kudos

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

mmcisme1
Active Contributor
0 Kudos

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

Thank you,

Michelle

former_member194142
Participant
0 Kudos

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

former_member194142
Participant
0 Kudos

Any help pl.?