Get Example source ABAP code based on a different SAP table
VX_EXA_ONLY
SAP LUW, UPDATE TASK> This example demonstrates how SAP LUWs> are bundled using update function modules>.
ABAP_SOURCE_CODE DEMO CL_DEMO_SAP_LUW_UPDATE_TASK
ABAP_DESCRIPTION The example is divided into segments by switching the work process. An implicit database commit> is performed at the end of each segment. Here, the work process is switched using the statement WAIT UP TO>>. In real programs, a switch of this kind can have many different causes >. This class makes writes on the database that are moved to different update function modules>. The statement COMMIT WORK>> executes the function modules registered so far using the CALL FUNCTION IN UPDATE TASK>>. This entails closing an SAP LUW and opening another. In the first statement, COMMIT WORK>, the addition AND WAIT> triggers synchronous updates>, where one update function module must be completed before the next one can start. In the second SAP LUW, the statement SET UPDATE TASK>> switches local updates> on, which are always performed synchronously.