Expand&Collapse Not Working In ALV Container


If you have any editable field in alv container , subtotal icons (expand,collapse) not works.

You should switch it ;


module pai input.
  save_ok ok_code.
  clear ok_code.
  case save_ok.
    when 'EXIT'.
      perform exit_program.
    when 'SWITCH'.
      perform switch_edit_mode.
    when others.
*     do nothing
  endcase.
endmodule.

form switch_edit_mode.

  if g_grid->is_ready_for_inputeq 0.
* set edit enabled cells ready for input
    call method g_grid->set_ready_for_input
                     exporting i_ready_for_input 1.

  else.
* lock edit enabled cells against input
    call method g_grid->set_ready_for_input
                    exporting i_ready_for_input 0.
  endif.
endform.                               " SWITCH_EDIT_MODE

1 yorum:

  1. This is amazing. I have been working for hours to solve my problem. Thank you for the tip.

    YanıtlaSil