How can a lock object be called in the transaction? | ABAP Module Programming

By calling Enqueue and Dequeue in the transaction.