cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:Number Ranges

Former Member
0 Kudos

Hi SD Experts,

I have assigned Number ranges to my Sales document. I raised a sales order & save it.Ex-Sales Order no 12345.Due to some reasons the customer had rejected that order.So i deleted that order in VA02.Now I want to use this no 12345 for other order.

Actually In SAP Standard it is not possible.Just want to know if their is any another way to achieve this.

Looking for your valuable suggestions

Regards

Pradeep

Edited by: Lakshmipathi on Nov 23, 2011 8:16 PM Thread Locked - Reason Duplicate Post

Accepted Solutions (0)

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Pradeed,

One idea, but I'm not sure that it will work.

Set an external range number. Use the FM NUMBER_GET_NEXT (as SAP does in MV45AF0B_BELEG_SICHERN). Remeber to use NUMBER_CHECK to check if you are using the ID for the invoice.

After, when you delete a SO, use USEREXIT_DELETE_DOCUMENT in MV45AFZZ. Write the value of VBELN in a customer table (Z-TABLE). Before to use NUMBER_GET_NEXT, try with the first value in this Z-table, run NUMBER_CHECK and avoid the use of NUMBER_GET_NEXT. Delete the record in the Z-table if it works right.

I hope this helps you

Regards

Eduardo

Edited by: E_Hinojosa on Nov 23, 2011 11:40 AM