Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

table that stores SNRO number range data

Former Member
49,837

hi guys,

what is the table that stores SNRO number range data

1 ACCEPTED SOLUTION
Read only

Former Member
26,590

Use the table NRIV

hi guys,

what is the table that stores SNRO number range data

3 REPLIES 3
Read only

Former Member
26,591

Use the table NRIV

Read only

Former Member
26,590

Hi,

Check table NRIV.

One suggestion to find out the table names, press F1 on the field and press Technical Information button to get the table name and field.

Thanks & Regards,

Navneeth K.

Read only

rattaiah88
Explorer
0 Likes
26,590
CONSTANTS : lc_rangeobj TYPE inri-object VALUE 'ZRFID_RANG',
lc_range_num LIKE inri-nrrangenr VALUE '01'.

DATA : lv_nextnum TYPE i.
BREAK-POINT.
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
EXPORTING
object = lc_rangeobj
EXCEPTIONS
foreign_lock = 1
object_not_found = 2
system_failure = 3
OTHERS = 4.
IF sy-subrc NE 0.
** message e086 with 'Lock error' sy-subrc.
ENDIF.

CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = lc_range_num
object = lc_rangeobj
* QUANTITY = '1'
* SUBOBJECT = ' '
* TOYEAR = '0000'
* IGNORE_BUFFER = ' '
IMPORTING
number = lv_nextnum " Number generated by Range Generator Object
* QUANTITY =
* RETURNCODE = lv_returncode
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
EXPORTING
object = lc_rangeobj.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

DATA(lv_new_nextnum) = lv_nextnum.