Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV Edit how to save changes to DB??


I tried the Editing ALV tutorial and one part is not clear for me.

When pressing the save button you want to check the edited Data in an ALV grid.

METHOD onactionsave .
  DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
* Check for changes
  l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
  l_ref_interfacecontroller->data_check( ).

The tutorial now says

"Implement an event handler method for the interface event ON_DATA_CHECK with the following functionality"

Now my problem is. which events/methods are triggered to check the data? and to save the changes to the DB?

Which methods do i have to implement??

Former Member
Former Member replied

Hi Thomas,

No need to add to your actions of view,directly go to the methods enter method name like ON_DATA_CHECK,Method type is event handler and then press F4 in Event column,select ON_DATA_CHECK from interface Controller.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question