# NUMBER_RANGE_ENQUEUE — Lock Number Range Object

> Sets a lock on a number range object so that its intervals cannot be maintained at the same time. It is used together with the number range maintenance function modules (for example before NUMBER_RANGE_INTERVAL_UPDATE) when a program creates or changes intervals. Always release the lock with NUMBER_RANGE_DEQUEUE and handle FOREIGN_LOCK when another user is maintaining the object.

- Modules: CA
- Type: Function module
- Function group: SNR1
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/number-range-enqueue/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| OBJECT | TNRO-OBJECT | Number range object | Yes |

## Exceptions

- FOREIGN_LOCK: Object is locked by another user
- OBJECT_NOT_FOUND: Number range object not defined
- SYSTEM_FAILURE: System error during locking

## Call template (ABAP)

```abap
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
  EXPORTING
    object = lv_object
  EXCEPTIONS
    foreign_lock = 1
    object_not_found = 2
    system_failure = 3
    OTHERS = 4.
```


