Creating Locks 
Locks define job locks. Job locks prevent simultaneous execution of jobs. When two jobs have the same job lock and one of the two has the status {RUNNING} the other job will not start until the first job has finished.
Locks are part of the Definitions section in the navigation bar. There are no standard locks provided with SAP CPS
Locks support the following actions:
Action |
Description |
Export |
Export the lock into a CAR file |
Edit |
Edit the lock |
Edit Security |
Edit the security of the lock |
Delete |
Delete the lock |
Duplicate |
Make a copy of the lock to create a similar one |
Expand All |
Expand all locks in the current filter |
New |
Create a new lock |
Filter > New Filter |
Create a new lock filter |
Filter > Edit Filter |
Edit current lock filter |
Filter > Delete |
Delete current lock filter |
You can search for locks using filters and the Search Locks box on the Locks tab. This box is known as the intelliSearch box and located under your username on the top right-hand side of the user interface. Filters allow you to specify a list of objects with static criteria. IntelliSearch allows you to specify complex queries in a simple way using prefixes. Prefixes are used to specify which property you are searching in and have short and long syntaxes. For example, if you want to display all locks with the term import in the comment, you would use the search criteria as follows:
c:import
You can search more than one property, as follows:
c:import n:Bi
Note
No spaces should be entered before or after the colon (:).
See the Advanced Object Search for more information.
The following table illustrates the available prefixes for locks:
Prefixes |
Description |
n, name |
searches the name property |
c, com, comment |
searches the comment property |
d, desc, description |
searches the description property |
a, app, application |
searches the application property |
Privilege |
Description |
Lock.Create |
Create locks |
Lock.Delete |
Delete locks |
Lock.Edit |
Edit locks |
Lock.View |
Access locks |
You can grant privileges on two levels, Access and Admin; a privilege granted on Admin level allows the grantee to grant the privilege to other users. These privileges can be granted system-wide, per partition or isolation group.
If you have the security module, which requires the Module.Security license key, you have an additional Security tab on the lock. It allows you to specify which users can access, edit, and delete the lock.
Choose .
Choose Refresh to see all existing locks.
Choose New to create a lock.
Fill in the details, refer to the section below.
Choose Save and Close to save the lock.
Name - The name of the event definition.
Application - The name of the application used to group this object.
Description - An optional description of the event definition.
Comment - An optional comment of the event definition.
Choose in the Navigation bar. Choose the New button and fill in these values:
Name: DataWareHouseLoadRun
Description: Data Warehouse load is running
Comment: The data warehouse is being loaded. For data warehouse consistency, this process cannot be run concurrently.