Closed wellys3 closed 2 years ago
Hi @wellys3
use falv->set_editable ( true or false) - to control how ALV should react to change data.
falv->set_editable ( True ) event cl_gui_alv_grid=>mc_evt_modified is registered To make ALV react to data change automatically when the user moves the cursor without any need to hit on ENTER.
falv->set_editable ( False ) event cl_gui_alv_grid=>mc_evt_enter is registered To make ALV react to data change with the user has to hit enter.
Run program ZDEMO_FALV08 with falv->set_editable ( True ) or false. Enter invalid data on the currency column. when falv->set_editable true alv show error immediately and when falv->set_editable false validation happens when the user hit enter.
we can use the following three options to make ALV editable.
set whole grid editable falv->layout->set_edit( abap_false ).
set column editable falv->column( 'SEATSMAX' )->set_edit( abap_true ).
set cell editable falv->layout->set_stylefname( 'STYLES' ). falv->set_cell_enabled(
Thank you.
Hi @vidyadharg,
I think, i can change view like picture below, with syntax: falv->set_editable( abap_false ).
But, it can't
Btw, thank you very much for your help.
Hi @fidley,
In demo ZDEMO_FALV11, set_editable ABAP_FALSE still can editable.
Here the code:
The ALV still can editable, can you explain it?
Thank you