sapdev logo background
sapdev logo sapdev logo
Comments

SAP ENQUEUE ABEXA documentation, setup help and example usage



Return to SAP documentation index


ARTIClE

Locking and Unlocking
This example demonstrates the setting up and releasing of SAP locks.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
Using the GUI status function codes ENQUEUE and DEQUEUE , the specified fields in the table SFLIGHT can be locked and unlocked. To do this, the lock object EDEMOFLHT is used in conjunction with the relevant function modules ENQUEUE_EDEMOFLHT and DEQUEUE_EDEMOFLHT .
Using the function code SELECT , access to the specified fields is still possible. The function code SM12 calls the transaction SM12 to display the lock entry in the central lock table.
After a user has successfully locked a data record, the same data record cannot be locked again by a different user. However, all users can access the locked data records using the Open SQL statement, assuming the program has not already checked the locks using ENQUEUE_EDEMOFLHT .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




ENH_INFO_SYSTEM_GLOSRY
ENVIRONMENT_CODEPAGE_GLOSRY




comments powered by Disqus