Ansicht
Dokumentation

ABENENQUEUE_ABEXA - ENQUEUE ABEXA

ABENENQUEUE_ABEXA - ENQUEUE ABEXA

CPI1466 during Backup   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

SAP Locks, Set and Release

This example demonstrates how SAP locks are set and released (enqueue and dequeued).

Source Code

Execute

Description

The function codes ENQUEUE and DEQUEUE of the GUI status can be used to lock and unlock the specified fields of the table SFLIGHT. This is done using the lock object EDEMOFLHT is used using the corresponding function modules ENQUEUE_EDEMOFLHT and DEQUEUE_EDEMOFLHT.

Furthermore, the function code SELECT enables the specified fields to be accessed and the function code SM12 calls the transaction SM12 to display the lock entries in the central lock table.

Once the data records have been locked by a user, no other user can lock the same records again. All users can, however, access the locked data records using statements, assuming the program did not already check the locks using ENQUEUE_EDEMOFLHT.






ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Length: 1530 Date: 20240329 Time: 143634     sap01-206 ( 31 ms )