‎2008 Aug 20 4:45 PM
Hi Experts,
i created a lock object for my ztable and this ztable is using in ZFM.
when i create, SAP generates two FM's ENQUEUE_* and DEQUEUE_*
can any one give me some idea how to use these FM's in my ZFM whic access tables directly
Giri
‎2008 Aug 20 5:12 PM
Hi,
Use enqueue FM before updating the table and After updation use dequeue FM.
DO.
Use ENQUEUE_E_TABLE FM to lock the table
IF sy-subrc = 0.
EXIT.
ENDIF.
ENDDO.
UPDATE statement.
IF sy-subrc <> 0.
Error Handling.
ENDIF.
Use DEQUEUE_E_TABLE FM to unlock the table for others to modify.
Do enddo is used to ensure that there are no locks apart from yours on the table before you update it.
Thanks,
Kartavya