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 NUMBER_GET_NEXT

Former Member
0 Likes
843

Hello gurus, I have the following problem:

When using the FM NUMBER_GET_NEXT in a program in test run, if the number retrieved has not been saved to database I want to retrieve the same value next time I run the program.

Is this possible?

Is there a way to reinitialize the counter if the database commit has not been released?

Thanks in advance!

Reward points waiting for you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

Hi Jorge,

Is it possible not to call the FM incase of test run?

Alternatively, if it is something like a simulation run instead of using the FM

1. Read the entry from NRIV for the object directly

2. Increment in the program and use the same.

So this way the number range object will not be skipped.

Kind Regards

Eswar

2 REPLIES 2
Read only

Former Member
0 Likes
552

Hi Jorge,

In my opinion this is not possible. Each time NUMBER_GET_NEXT is called the next number(s) will be issued.

Regards,

John.

Read only

Former Member
0 Likes
553

Hi Jorge,

Is it possible not to call the FM incase of test run?

Alternatively, if it is something like a simulation run instead of using the FM

1. Read the entry from NRIV for the object directly

2. Increment in the program and use the same.

So this way the number range object will not be skipped.

Kind Regards

Eswar