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

number range at runtime

Former Member
0 Likes
570

I have to create a batch for co01 tcode. in that i have to use Number range Object based on 3 parameters. those may varie in runtime.there are 731 combinations are there. for each combination have to use a new Number range start from "0000" to "9999". how can i get a particular number range in runtime.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
495

You have several possibilities.

Here you have two:

1. use tx SE37 and search for number (at least, one of these FM returns a sequential number for a given key)

2. create custom table with two fields: key(10) and currentvalue (int) everytime you need a value, update this custom table with the key you have and adding 1 to currentvalue.

Cheers,

Satish.

2 REPLIES 2
Read only

Former Member
0 Likes
495

Hi Venkat, try like this.

Use include MV45AFZZ in SAPMV45A Program

FORM USEREXIT_NUMBER_RANGE.

pls reward if found helpful.

cheers,

Hema.

Read only

Former Member
0 Likes
496

You have several possibilities.

Here you have two:

1. use tx SE37 and search for number (at least, one of these FM returns a sequential number for a given key)

2. create custom table with two fields: key(10) and currentvalue (int) everytime you need a value, update this custom table with the key you have and adding 1 to currentvalue.

Cheers,

Satish.