2023 Jan 12 4:40 PM
Hello,
I have displayed an ALV grid having three columns: LIFNR, NAME and ADRESS.
I want to add a row or update an existing row and the modification should be done also for the database.
does anyone know how to update the database through alv report using handle data changed and handle data changed finished events?
Thank you,
2023 Jan 12 6:26 PM
You'd better have a user experience the same as for any other SAP screen so that the user is comfortable with your application, i.e. better have a SAVE button to save the changes to the database. Consequently, you don't need DATA_CHANGED for saving to the database.
NB: I guess you know how to update the database with UPDATE, INSERT, MODIFY, DELETE, COMMIT WORK, ROLLBACK WORK (which is not related to ALV).
2023 Jan 12 6:41 PM
Thank you Sandra for your answer, Yes I know how to update database with update,...
But I am trying to get used with events and I want to know how it can be done with Handle_data_changed and Handle_data_changed_finished.
2023 Jan 12 8:36 PM
I guess you want to know how the events DATA_CHANGED and DATA_CHANGED_FINISHED work.
It's not related to updating the database of course, so I won't answer anything about that.
About these events:
There are lots of questions, answers, blog posts about them. What did you try, what did you not understand?
Good luck!