AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - Programming Language → Processing External Data → ABAP Database Access → Data Consistency → SAP LUW →
SET UPDATE TASK LOCAL
Syntax
SET UPDATE TASK LOCAL.
Effect
This statement switches the local update on. In the local update, high priority update function modules that are registered in the current SAP LUW using CALL FUNCTION ... IN UPDATE TASK are stored in the ABAP memory instead of the VB... DDIC database tables. They are executed immediately in the current process and not in the update work process within the current database LUW, when the statement COMMIT WORK is executed. This statement has no effect on low-priority update function modules.
At the beginning of every SAP LUW, the local update function is deactivated. If required, it must be activated again before the first update function module is registered.
The local update is executed in a separate internal session of the current
ABAP session and not in a dedicated
update session.
System Fields
| sy-subrc | Meaning |
| 0 | The local update function is activated. |
| 1 | The local update function has not been activated, because the program has already registered at least one update function module for the regular updating procedure in the current SAP LUW. |
Hints
Example
Activation of the local update for the subsequent registrations of update function modules using the statement CALL FUNCTION IN UPDATE TASK.
SET UPDATE TASK LOCAL.
...
FINAL(values) = VALUE demo_update_tab(
( id = 'Y' col1 = 1111 col2 = 2111 col3 = 3111 col4 = 4111 ) ).
CALL FUNCTION 'DEMO_UPDATE_UPDATE' IN UPDATE TASK
EXPORTING
values = values.
...
COMMIT WORK.
Executable Examples