10-07-2009 6:32 AM
Hi experts,
In HR module whenever an action takes place for any employee through PA40 transaction an email notification is triggered to the employee through a Z-Program. Now the function module SO_NEW_DOCUMENT_SEND_API1 is giving a dump.
An error in popup apperas:
Database Error for <GET_NEXT_NUMBER(object)>
<RAW>
Dum is as follows:
Runtime Errors RAISE_EXCEPTION
Date and Time 07.10.2009 10:42:55
Short text
Exception condition "X_ERROR" raised.
Please help...
10-07-2009 7:06 AM
Hi,
Such errors encounters when system is unable to generate a sequence number.
Check in the zprgm whether they are using any FM to generate the numbers.
Expand the ST22...so that it will be easy to solve the issue
Please close the thread, if solved
Regards,
Aditya
10-07-2009 10:33 AM
Hi aditya,
Thanx for your reply.
If you have faced any such problem while triggering mail from transaction PA40, please tell me what steps you took to rectify it.
When I run this FM from any other zreport it works fine.
This dump appears when the zprogram containing this FM is called from PA40 t-code.
10-07-2009 9:35 PM
Don't forget to mention everything: dump probably indicates that the message number is SO013
If you look at sap notes with "SO013", you will find the answer : [Note 62955 - SAPoffice: Termination when creating documents|http://service.sap.com/sap/support/notes/62955]. There are 2 other notes.
Note 62955 : Check SO_OBJ_* number ranges using SNRO transaction. You may have reached the end of interval, or you tried to send a document in a format (RAW) never used yet (or first time in the year) and the interval is missing...