Skip to Content
avatar image
Former Member

Runtime Errors : TIME_OUT (The program "CL_SQL_STATEMENT==============CP" has exceeded the maximum permitted runtime)

Hi Guys,

On BI Production system I am getting ST22 : ABAP Run time error (TIME_OUT)

The Parameter value of rdisp/max_wprun_time = 3600 (1hr) which is maximum value. Even then we are getting around 20 to 30 Dumps. Can any suggest a Note, so that tell my application team to run their programs in Background.

Thanks in Advance for Reply.

Kernel release 720


Runtime Errors TIME_OUT Date and Time 15.04.2013 14:19:05

Short text


Time limit exceeded.

What happened?


The program "CL_SQL_STATEMENT==============CP" has exceeded the maximum permitted runtime without
interruption and has therefore been terminated.

What can you do?


Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.

Error analysis


After a specific time, the program is terminated to make the work area
available to other users who may be waiting.
This is to prevent a work area being blocked unnecessarily long by, for
example:
- Endless loops (DO, WHILE, ...),
- Database accesses with a large result set
- Database accesses without a suitable index (full table scan)
The maximum runtime of a program is limited by the system profile
parameter "rdisp/max_wprun_time". The current setting is 3600 seconds. If this
time limit is
exceeded, the system attempts to cancel any running SQL statement or
signals the ABAP processor to stop the running program. Then the system
waits another 60 seconds maximum. If the program is then still active,
the work process is restarted.

How to correct the error


Programs with long runtime should generally be started as background
jobs. If this is not possible, you can increase the system profile
parameter "rdisp/max_wprun_time".


Depending on the cause of the error, you may have to take one of the
following measures:
- Endless loop: Correct program;
- Dataset resulting from database access is too large: Instead of "SELECT * ... ENDSELECT", use "SELECT * INTO internal table (for example);
- Database has unsuitable index: Check index generation.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"TIME_OUT" " "
"CL_SQL_STATEMENT==============CP" or "CL_SQL_STATEMENT==============CM004"
"EXECUTE_QUERY"
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 16, 2013 at 01:28 PM

    hi vijay

    here is a note about the rdisp/max_wprun_time parameter

    Note 25528 - Parameter rdisp/max_wprun_time

    the rule of thumb that we use at clients is any job that runs longer than 10 min has to run in the background, or else if everyone does that it will fill up the DIA processes and then no one can logon or work until they free up or system restart.

    also review http://scn.sap.com/thread/278023

    best regards

    marius

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 10, 2014 at 10:10 AM

    Hi all,

    I'm trying to create a CHIP in Application configuration.


    When double click on the Application Configuration and test it in "Administration Mode" its navigating me to a page customizing page.


    Here any click on any tab is keeping me waiting for 15-20 min and ultimately gives and error message as "Time limit exceeded".

    Can anyone help me this???

    Thanks in advance

    Supriya.


    Capture.PNG (27.2 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2016 at 12:18 PM

    Hi Vijay,

    I got the same error today on my SAP ECC system while executing ABAP report to calculate the HANA Memory Size, I have fix this error just now by following below steps:

    You also can try and fix your system error with easy steps.

    Steps to resolve Timeout error for CL_SQL_CONNECTION=CP ABAP Program.

    I hope this will help you to fix your system error as well 😊.

    Add comment
    10|10000 characters needed characters exceeded