
In the editable ALV, the user can change data and add or delete rows. These changes are initially only stored in the context of the ALV component. At predefined times, the system transfers the data from the ALV context to the context of your application and checks the data for correct data types, and so on. This ensures that subsequent actions are applied to the most current data.
When the user chooses the Settings pushbutton in the toolbar in order to use ALV services, the system automatically checks the data.
You can specify additional times at which the current data in the ALV output is to be synchronized with that of the application:
When the user presses the ENTER key or triggers a system action (DATA_CHECK_ON_CELL_EVENT).
Use this setting when you anticipate minimal data change that does not have a negative impact on system performance due to frequent checks.
The user chooses Check (DATA_CHECK_ON_CHECK_EVENT).
This pushbutton is displayed by default as soon as you switch off the write-protection for the ALV output.
This setting is useful if the user is to process multiple data records one after the other; it does not have a negative impact on system performance due to frequent checks. You also use this setting if you only want checks to be made if the user triggers the check himself or herself.
When you trigger the check in your application (DATA_CHECK).
Specifying Check Times by User
To specify which user action triggers the data check, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).
Methods for Setting Check Times
|
Function |
Method |
|
Set time |
SET_DATA_CHECK |
|
Get time |
GET_DATA_CHECK |
Event Handling
When the data is checked, the event ON_DATA_CHECK is triggered.