CA
Function module
Used the same way in S/4HANA
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.
- Function group
- SNR1
- Remote-enabled (RFC)
- No
- Type
- Function module
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
EXPORTING
object = lv_object
EXCEPTIONS
foreign_lock = 1
object_not_found = 2
system_failure = 3
OTHERS = 4.Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.