Skip to Content
0
Former Member
Apr 01, 2011 at 11:14 AM

Editable ALV: value transport before event handling

79 Views

Hi everybody,

I'm really going crazy over this one: I'm developing an editable ALV using CL_GUI_ALV_GRID and I'm trying to check the entered data both on pressing enter and on pressing SAVE.

Since I want to use the error log protocol I'm doing all of these check in the data_changed event handling. Now this is where it gets tricky: When a user enters a value and presses the SAVE button without pressing enter first, the following code is executed:

CALL METHOD GOB_D1100_ALV02_GRID->CHECK_CHANGED_DATA

So since I registered the data_changed event, will trigger the event handling BEFORE transporting the value from the GUI to the internal table. The value is only transfered after the data_changed event (where I want to make my checks because of the error protocol) is executed.

How do I get my internal table updated before event handling?

Best wishes,

Ben