We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
SET LOCKS ENTITY bdef FROM inst $[response_param$].
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.
... response_param.
The internal table inst can also be typed with the BDEF derived type TYPE TABLE FOR LOCK.
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@@Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki