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

Function module 'NUMBER_GET_NEXT'

Former Member
0 Likes
14,250

Hi,

In the function module 'NUMBER_GET_NEXT' the import parameters obligatory are 'NR_RANGE_NR' and 'OBJECT'. I have a problem with the parameter 'OBJECT' because I don´t know which Object to use. Could you tell me please how can I create a new Object in the table TNRO?

Thanks in advance.

Trini.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
9,016

Hi,

Please got hrough the below link, i hope it will be usefull..........

Create number range object using OYSN

regards,

Ashok

7 REPLIES 7
Read only

Former Member
0 Likes
9,016

Hi,

Check this link

[http://www.saptechnical.com/Tutorials/ABAP/SNRO/SNRO.htm|Link]

Regards

Read only

0 Likes
9,016

Sorry Rajvansh,

I can´t see the link . Could you please forward the link again?

Thanks.

BR.

Read only

Former Member
0 Likes
9,017

Hi,

Please got hrough the below link, i hope it will be usefull..........

Create number range object using OYSN

regards,

Ashok

Read only

0 Likes
9,016

Thanks.

It is perfect.

BR

Read only

andreas_mann3
Active Contributor
0 Likes
9,016

use tcode SNRO (look its documentation)

A.

Read only

Former Member
0 Likes
9,016

Hi,

It is not allowing me to paste the exact link.

Check this search result. First result has step by step with screen shot.

http://www.google.co.in/search?hl=en&q=createnumberrange+object&meta=

Regards

Read only

Former Member
0 Likes
9,016

Hi Trini,

Go to SNRO tcode enter a name for the object to be created and there is a create button just press it.

give subobject as S_CARR_ID ( data element for carrid)

and CO_RMZHL in the number length domain

if you want you can select the year flag and % warning.

then create a simple program to update the SCARR table to have 01, 02 etc as CARRIER ids

now you maintain the number range values in the same SNRO Tcode

declare a variable

data number type nriv-nrlevel

now you can call your fm NUMBER_GET_NEXT

object = "here the object you created in SNRO Tcode

  • QUANTITY = '1'

  • SUBOBJECT = '"here the CARRIER id just you updated in SCARR table

  • TOYEAR = '0000' "to year flag if you set it

  • IGNORE_BUFFER = ' '

  • IMPORTING

  • NUMBER = number(just you declared above)

  • QUANTITY =

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

Best Regards

Ramchander Rao.K