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: 

Obtaining next number from a external range.

SantiMoreno
Participant
0 Kudos

Hi Abapers,

I'm trying to assign a field a number based on a range (SNRO), but when I use the 'classic' function module 'NUMBER_GET_NEXT' what I get it's just an error message which reads that I should assign an internal range (for anybody info, is the RV_BELEG for a kind of sales orders.

Should I program a self-obtain function module for getting that next number, or may I use an standard module?

Best Regards.

3 REPLIES 3

Vijay
Active Contributor
0 Kudos

hi

there r two type of ranges defined

internal

external

internal means you need not specify the no system will automatically generate the no.

external range means you need to give the no.

in you case it must be assigned an internal range and thats why when you r trying to assign a field number it throws an error .

regards

vijay

<b>reward points if helpful</b>

former_member183890
Participant
0 Kudos

Hi

I would strongly suggest that you use the Standard function module. But pls read the Function module documentation. It clearly helps you out for the solution. It also has sample coding.

Reward points id useful.

- Irudayaraj Peter

Former Member
0 Kudos

What is the solution, I am also getting the same error.

Thanks and regards

Abhimanyu