Skip to Content
Former Member
Apr 10, 2008 at 05:31 PM

Autokey with UDO when error occured.


Hi all,

I have an UDO with the property "Manage series".

I control some fields value with the stored procedure "SBO_SP_TransactionNotification".

When i save my UDO and no error has occured, the number was correctly increase.

But if an error occured when i save the UDO, SAP does not increase the number in the ONNM and NNM1 tables.

After i save the document with the good value, an entry was created in my table with the good docEntry but this number was not increase in the ONNM table.

Exemple : Next number 97, i create and save a good document. The next number is 98 and my document number has the number 97.

If i create and i save with an error, i have a message in the status bar. I put the good value et i re-save. the document number is 97 but the next number is 97.

How can i resolve this problem ?

Thanks for your response.

Best regards