Skip to Content
0
Former Member
Aug 14, 2013 at 08:28 AM

Problem with Event data_changed and multiple ALVs

368 Views

Dear Developers,

i am facing a problem with the event data_changed on a screen that uses multiple editable ALVs.

The user is able to switch through the editable fields of each ALV and enter values. If he presses the TAB-Key my event-handler is processed and the cursor jumps to the next field.

The problem is: If the user entered something into the last editable field of the actual ALV and presses TAB, the ALV loses focus without raising data_changed event.

I know, that i can force the data_changed by calling method check_changed_data of CL_GUI_ALV_GRID, but as no event is triggered by losing focus, i cant do that. Regular PAI is too late to react on the data entered. And pressing enter in a screen where you want to enter many data right away is not acceptable.

Is there any other way to react on filling the last editable field?

I use CL_GUI_ALV_GRID for ALVs and edit-event CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.

Thanks in advance!