


The function code SM12 calls the transaction SM12 to display the lock entry in the central lock table.Īfter a user has successfully locked a data record, the same data record cannot be locked again by aĭifferent user. Using the function code SELECT, access to the specified fields is still possible. To do this, the lock object EDEMOFLHT is used in conjunction with the relevant function modules ENQUEUE_EDEMOFLHT and DEQUEUE_EDEMOFLHT. Using the GUI status function codes ENQUEUE and DEQUEUE, the specified fields in the table SFLIGHT canīe locked and unlocked.
#Enqueue and dequeue in sap abap how to
how to create ENQUEUE function module for s567 table.

Donâ t wait, create your SAP Universal ID now If you have multiple S- or P- accounts, use the Consolidation Tool to merge your content. WHERE carrid = connid = fldate = TABLE i888 WITH 'SY-SUBRC:' sy-subrc. In a few months, SAP Community will switch to SAP Universal ID as the only option to login. MESSAGE e888 WITH 'Error in dequeue!'(006). MESSAGE i888 WITH 'Dequeue successful'(005). MESSAGE e888 WITH 'Error in enqueue!'(004) MESSAGE e888 WITH 'Record already'(002) 'locked by'(003)ĬALL TRANSACTION 'SM12' WITH AUTHORITY-CHECK.ĬATCH cx_sy_authorization_error #NO_HANDLER. MESSAGE i888 WITH 'Enqueue successful'(001). REPORT demo_transaction_enqueue MESSAGE-ID sabapdemos.ĭemo_conn-carrid = 'LH'. This example demonstrates the setting up and releasing of SAP locks. SAP NetWeaver AS ABAP Release 750, ©Copyright 2016 SAP AG.
