cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Why cl_gui_alv_grid with subtotals doesn't show the collapse/expand icon on subtotals?

Sandra_Rossi
Active Contributor
0 Kudos
469

The collapse/expand button Sandra_Rossi_2-1729870079731.png is not shown by the program:

Sandra_Rossi_0-1729869641745.png

Expected:

Sandra_Rossi_1-1729869891067.png

What are the possible causes?

NB: in case you ask, all amounts are zero in the screenshot but there are lines above with non-zero amounts.

 

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

Here are the possible causes concerning CL_GUI_ALV_GRID:

  1. IS_LAYOUT-NO_TOTEXP = 'X' (parameter of method SET_TABLE_FOR_FIRST_DISPLAY)
  2. The ALV Grid is generally set to editable (IS_LAYOUT-EDIT = 'X' or method SET_READY_FOR_INPUT( 1 )). See here for more information: https://community.sap.com/t5/application-development-discussions/alv-grid-control-subtotal-collapse/.... Note that the general editable flag of the grid may be set while the ALV grid doesn't seem to contain any editable field (all columns with IT_FIELDCATALOG-EDIT = ' ' or the style field (field of type LVC_T_STYL in the ALV table, whose name is to be passed to IS_LAYOUT-STYLEFNAME) contains MC_STYLE_DISABLED).

If there are other possibilities, please add your answer. Thank you!

Answers (0)