Application Development 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: 

Number Range Object

former_member734916
Participant
0 Kudos

Hi,

I know how to create number range object and want to know how to assing to a table field or any object.

I want this to generate a new number whenever a new entry happen for that object.

thanks and regards.

Krishna

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello Krishna

Using function module NUMBER_GET_NEXT with your number range object you get the next free number. In your application you have to assign this value to the requested (key) field.

Regards

Uwe

3 REPLIES 3

uwe_schieferstein
Active Contributor
0 Kudos

Hello Krishna

Using function module NUMBER_GET_NEXT with your number range object you get the next free number. In your application you have to assign this value to the requested (key) field.

Regards

Uwe

Former Member
0 Kudos

hi

good

go through these links

/people/federico.babelis2/blog/2006/04/14/service-desk-configuration-guide-for-dummies

http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/6eb2aa7aed44ea92ebb969e03081fb/content.htm

thanks

mrutyun

Former Member
0 Kudos

Hi Krishna,

In your program, you can read the next number by using the function NUMBER_GET_NEXT

DATA l_number TYPE i.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

nr_range_nr = '01'

object = 'ZTEST'

quantity = '1'

IMPORTING

number = l_number

  • 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

OTHERS = 7.

display l_number.

The informations about number ranges are stored in tables :

- TNRO Definition of number range objects

- NRIV Number range intervals.

Please do reward helpful answers.

Thanks

Satya Priya