Show TOC

Procedure documentationCreating Locks Locate this document in the navigation structure

 

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

Actions

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

Finding Locks

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 Note

No spaces should be entered before or after the colon (:).

End of the note.

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

Security

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.

Procedure

  1. Choose   Definitions → Locks  .

  2. Choose Refresh to see all existing locks.

  3. Choose New to create a lock.

  4. Fill in the details, refer to the section below.

  5. Choose Save and Close to save the lock.

Event Definition
  • 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.

Example

Choose   Definitions → Locks   in the Navigation bar. Choose the New button and fill in these values:

Job Lock

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.