Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPSET_UPDATE_TASK_LOCAL - SET UPDATE TASK LOCAL

ABAPSET_UPDATE_TASK_LOCAL - SET UPDATE TASK LOCAL

Fill RESBD Structure from EBP Component Structure   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

SET UPDATE TASK LOCAL

Short Reference


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.

Notes

  • The local update function performs a synchronous update after the statement COMMIT WORK, independently of the addition AND WAIT.
  • If a database rollback occurs during the local update, all previous change requests are affected.
  • The profile parameter abap/force_local_update_task can be used to set the local update centrally for an AS ABAP. This should be done with great care, however, and while respecting all updates that can take place in the system. If not, the behavior of programs not intended for local updates may change. The performance of database locks may also be affected negatively.

Example

Activation of the local update for the subsequent registrations of update function modules using the statement CALL FUNCTION IN UPDATE TASK.

SAP-LUW, UPDATE TASK






ROGBILLS - Synchronize billing plans   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 4135 Date: 20230206 Time: 102431     sap01-206 ( 54 ms )