Creating Lock Objects
To access lock object maintenance, enter an object name in the initial screen of the ABAP Dictionary, select object class Lock objects and choose Create. Note that lock object names must start with E (Enqueue).
A dialog box appears in which you must assign the lock object to a development class.
The screen for the table selection of the lock object appears. All the tables already included in the lock object are shown in the upper half of the screen.
A list is displayed of all tables linked to the selected table by means of foreign keys.
The selected tables are inserted into the list as secondary tables and the corresponding foreign keys are displayed.
The lock arguments are displayed in the next screen. If two fields with the same name are incorporated into the lock object from different tables, you must choose a new name for one of the fields and enter this name in the field Lock arg.
The next screen displays the Basis tables of the lock object. The default entry for Lock Mode is E for every Basis table. You can choose the lock mode separately for each Basis table. Simply overwrite the entry in the column Mode and save your entries.
The parameters of the function modules are then assigned the following reference fields (since function modules for RFC must be completely defined):
Parameter |
Reference fields |
X_<field name> |
DDENQ_LIKE-XPARFLAG |
_WAIT |
DDENQ_LIKE-WAITFLAG |
_SCOPE |
DDENQ_LIKE-SCOPE |
_SYNCHRON |
DDENQ_LIKE-SYNCHRON |
Refer to the activation log for information about the success of the activation process. You can display the activation log with Utilities ® Activation log. If errors occur when the lock object is activated, you will go directly to the activation log.