Skip to Content
avatar image
Former Member

Number range reset

Hello Experts,

I have created a Number Range Object, to get Employee numbers. I my report when the User presses the Button "ADD EMP/Create EMP" I am getting the current number using number range object. So a pop up with current number and details to be entered for the Number like EMP Name, Module etc...,

Eg:

CREATING

EMP Number: 00005 (Current number from Number range object)

Emp Name : SAPUSER

Module : ABAP

YES NO

Its fine if i create the EMP and save it(YES).

Now again i try create a new EMP by clicking ADD EMP/Create EMP button.

WITH OUT CREATING AND CANCEL

EMP Number: 00006 (Current number from Number range object)

Emp Name :

Module :

YES NO

If i select NO, and again try to create EMP Details by clicking ADD EMP/Create EMP button. I am getting the current number to be 00007 missing number 00006.

So i want to reset in the current number to 00006 which displayed earlier & not used.

can any one help me out in this issue.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 08, 2011 at 10:29 AM

    HI,

    Thats how number ranges work if you are using function module "NUMBER_GET_NEXT" try setting IGNORE_BUFFER = "X" to use numbers that might not have actually been used.

    regards,

    Himanshu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2011 at 10:51 AM

    Hi,

    do not display the new number in the screen, only the fields that need to be entered by the user. You should only get the next number when the user has pressed SAVE. After successful save inform the user of the newly created customer.

    If you really need to display the new customer number before save, you should get the number before the call to the screen'.

    Hope this helps.

    Roy

    Add comment
    10|10000 characters needed characters exceeded