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

link between number range object and document number range

Former Member
0 Likes
973

hi gurus,

i have ceated a number range object in snum in respect to plant but i want to know how can i assign it to the document number range.so that ,i create the number range in respect of plant should appear in vn01.thanks in advance.

ansuman chakraborty.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
892

Hi,

Use FM NUMBER_GET_NEXT by passing parameters number range number and number range object.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = '01' -


Number range number

OBJECT = 'ZHR_ECPNO' -


Number range object

IMPORTING

NUMBER = ZHRECP-ECPNO.

Thanks,

Phani Diwakar.

Edited by: MVPhani Diwakar on Jul 28, 2008 4:26 PM

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
892

you have not fille the field subobjekt in snum (TNRO-DTELSOBJ), have you?

A.

Read only

Former Member
0 Likes
892

In SNRO you will maintain the Number range Object , the same will be used to get the Internal number.

For that some where in the standard program they will make a call to the Function NUMBER_GET_NEXT

Check in your program Globally for the Function call

NUMBER_GET_NEXT

the main linkage happens when calling this function inside the program..

Read only

Former Member
0 Likes
892

Goto SNRO and enter your Number Range Object, then enter the number ranges as you want.

Read only

Former Member
0 Likes
893

Hi,

Use FM NUMBER_GET_NEXT by passing parameters number range number and number range object.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = '01' -


Number range number

OBJECT = 'ZHR_ECPNO' -


Number range object

IMPORTING

NUMBER = ZHRECP-ECPNO.

Thanks,

Phani Diwakar.

Edited by: MVPhani Diwakar on Jul 28, 2008 4:26 PM