Skip to Content
author's profile photo Former Member
Former Member


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


Dum is as follows:


Date and Time 07.10.2009 10:42:55

Short text

Exception condition "X_ERROR" raised.

Please help...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2009 at 06:06 AM


    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 that it will be easy to solve the issue

    Please close the thread, if solved



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Posted on Oct 07, 2009 at 08: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|]. 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...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.