Application Development 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: 

SO_NEW_DOCUMENT_SEND_API1 FM dump

Former Member
0 Kudos

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...

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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.

Sandra_Rossi
Active Contributor
0 Kudos

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...