As described under
Lock Mode, there are three types of locks:The type of lock selected is determined by the programmer of the transaction when the lock object is created. See also
The SAP Lock Concept in the ABAP Documentation.A lock can be set more than once (cumulation), if the name, argument, and lock mode of the elementary lock are identical. The cumulation counter is incremented by one with each successive cumulation and reduced by one each time a lock is released. The lock is released when the counter reaches zero.
The following graphic illustrates how locks are cumulated.