Lock Handling

Note

This step is only applicable in the development environment so does not need to be completed in any other systems in the landscape.

1

Create a background event

  • Open SAP transaction SM62.

  • Navigate to Goto > Background Events and click New.

  • Enter the following details:

    • Event: NEPTUNE_LOCK

    • Description: Neptune Lock Handler

2

Configure the background job

  • Open SAP transaction SE38.

  • Enter program /NEPTUNE/HANDLER_LOCKING and click Execute.

  • Provide the required parameters:

    • Time between lock request checks (seconds): Recommended value is 2.

    • Background user name (mandatory): This must match the user running the background job.

    • Automatic lock release time (minutes): Leave blank to disable. Recommended value is 180.

  • Click Save and create a variant named DEFAULT.

  • Click Save again to store the variant.

3

Create the background job

  • Open SAP transaction SM36.

  • Enter job name NEPTUNE_LOCK_HANDLER and press Enter.

  • Configure the job step with the following:

    • User: Username responsible for locking/unlocking resources (must have sufficient permissions and not be subject to deletion or locking).

    • ABAP Program Name: /NEPTUNE/HANDLER_LOCKING

    • Variant: DEFAULT

  • Click Save.

4

Define the start condition

  • Click Start Condition.

  • Select After Event and enter event NEPTUNE_LOCK.

  • Ensure Periodic Job is checked.

  • Click Save to complete the setup.

Last updated

Was this helpful?