cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handler onEnter in ALV

Former Member
0 Kudos

I am working on a requirement where user will enter value in new reading column and i need to calculate difference between new reading and old reading and display value in Difference column.

I am not sure which event handler method i need to use in this case.. is there any event handler for ONENTER...like users enter value and i write logic difference calculation?

thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I activated SET_CELL_ACTION_EVENT_ENABLED method and using ON_CELL_ACTION method to achieve this.. However if I am entering new readings in multiple records and enter.. only Last record is updated with Difference...

If there any other method that I can use for my requirement.

Thanks,

Former Member
0 Kudos

This is because ON_CELL_ACTION event handler is called only when round trip is triggered like you press enter key. I am not sure if there is any simple way from alv to realize your requirement.

There is a another option you might look into .

Context_change_log. See this pdf [https://cw.sdn.sap.com/cw/docs/DOC-22640.pdf|https://cw.sdn.sap.com/cw/docs/DOC-22640.pdf]

Answers (0)