Ansicht
Dokumentation
ABAPSET_LOCKS_ENTITY - SET LOCKS ENTITY
ROGBILLS - Synchronize billing plans PERFORM Short ReferenceThis documentation is copyright by SAP AG.
SET LOCKS ENTITY, Short Form
SET LOCKS ENTITY bdef FROM inst $[response_param$].
Addition:
Effect
Used to exclusively lock instances of a single RAP BO entity.
The entity name (bdef) can be specified directly. The entity name must be the full entity name and cannot be an alias name because the context of a RAP BO is unknown.
inst is an internal table specifying the instances that are to be locked. The table must be typed with the
BDEF derived
type TYPE TABLE FOR KEY OF. It can be constructed in an operand position using
constructor expressions, for example with the
value operator (VALUE) and other
constructor operators to fill the internal table with instances as input parameters after the keyword FROM.
Addition
... response_param.
Effect
Notes
The internal table inst can also be typed with the BDEF derived type TYPE TABLE FOR LOCK.
Example
The program DEMO_RAP_EML_SET_LOCKS covers all forms of the SET LOCKS statement. It accesses a RAP BO using EML and creates several BO instances. A SET LOCKS statement follows that exclusively locks instances via the keys. The following SET LOCKS statement (short form) is used at the beginning of the example:
The following image shows the global lock table (transaction SM12) during the transaction, before the ROLLBACK ENTITIES statement is executed. The newly created instances are locked. After the ROLLBACK ENTITIES statement is executed, the entries are automatically deleted from the lock table.
IMAGE @@ABDOC_SET_LOCKS_1.png@@700@@62@@Addresses (Business Address Services) ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 2962 Date: 20240328 Time: 155903 sap01-206 ( 37 ms )