cancel
Showing results for 
Search instead for 
Did you mean: 

ALV event HANDLE_DATA_CHANGED_FINISHED

0 Kudos

I'm using the event handle_data_changed for the alv-grid to check the data with a certain logic. This works fine.

There is also an event handle_data_changed_finished. What does this do? Does anyone use this en could you give me an example.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

As far as my experience goes, the event HANDLE_DATA_CHANGED_FINISHED will be invoked when all the checks (also those programmed in the event HANDLE_DATA_CHANGED) have passed. That means, as you probably know, you can call the pop-up error protocol from within the handler method for the HANDLE_DATA_CHANGED, in which case the event HANDLE_DATA_CHANGED_FINISHED will not be reached if any error messages are in that protocol.

The other good thing about the event HANDLE_DATA_CHANGED_FINISHED is that by this time the internal table with ALV data will be updated.

Hope this helps. Regards.

Former Member
0 Kudos

off course, this two event is different.

HANDLE_DATA_CHANGED will trigger, when a change done on the ALV, and the inputted is finished.

You can get the date user inputted in the ALV, before the ALV do the validation check.(it is the critical point)

HANDLE_DATA_CHANGED_FINISHED

It will trigger when the change finished, it means the ALV has done its validation. The error inputted will be remove, you can't get the error inputted from this event. You can only get the valid inputted. So if all of the inputted is error, in this event, ALV will deal with it as no change!

That's all I know about this two event difference.

Hope it will useful, thanks a lot

athavanraja
Active Contributor
0 Kudos

check out this document

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf

Regards

Raja

Is there any special reason for unchecking "<b>Mark this topic as a question</b>" option when you created this post.