Program terminated: Time limit exceeded, ABAP performance, max_wprun_time

Hi,
I am running an ABAP program, and I get the following short dump:
Time limit exceeded. The program has exceeded the maximum permitted runtime and has therefore been terminated. After a certain time, the program terminates to free the work processfor other users who are waiting. This is to stop work processes being blocked for too long by
- Endless loops (DO, WHILE, ...),
- Database acceses with large result sets,
- Database accesses without an apporpriate index (full table scan)
- database accesses producing an excessively large result set,
The maximum runtime of a program is set by the profile parameter "rdisp/max_wprun_time". The current setting is 10000 seconds. After this, the system gives the program a second chance. During the first half (>= 10000 seconds), a call that is blocking the work process (such as a long-running SQLstatement) can occur. While the statement is being processed, the database layer will not allow it to be interrupted. However, to stop the program terminating immediately after the statement has been successfully processed, the system gives it another 10000 seconds. Hence the maximum runtime of a program is at least twice the value of the system profile parameter "rdisp/max_wprun_time".
Last error logged in SAP kernel
Component............ "NI (network interface)"
Place................ "SAP-Dispatcher ok1a11cs_P06_00 on host ok1a11e0"
Version.............. 34
Error code........... "-6"
Error text........... "connection to partner broken"
Description.......... "NiPRead"
System call.......... "recv"
Module............... "niuxi.c"
Line................. 1186
Long-running programs should be started as background jobs. If this is not possible, you can increase the value of the system profile parameter "rdisp/max_wprun_time".
Program cannot be started as a background job. We have now identified two options to solve the problem:
- Increase the value of the system profile parameter "rdisp/max_wprun_time"
- Improve the performance of the following SELECT statement in the program:
SELECT ps_psp_pnr ebeln ebelp zekkn sakto FROM ekkn
INTO CORRESPONDING FIELDS OF TABLE i_ekkn
FOR ALL ENTRIES IN p_lt_proj
WHERE ps_psp_pnr = p_lt_proj-pspnr
AND ps_psp_pnr > 0.
In EKKN we have 200 000 entries.
Is there any other options we could try?
Regards,
Jarmo

Thanks for your help, this problem seems to be quite challenging...
In EKKN we have 200 000 entries. 199 999 entries have value of 00000000 in column ps_psp_pnr, and only one has a value which identifies a WBS element.
I believe the problem is that there isn't any WBS element in PRPS which has the value of 00000000. I guess that is the reason why EKKN is read sequantially.
I also tried this one, but it doesn't help at all. Before the SELECT statement is executed, there are 594 entries in internal table p_lt_proj_sel:
  DATA p_lt_proj_sel LIKE p_lt_proj OCCURS 0 WITH HEADER LINE.
  p_lt_proj_sel[] = p_lt_proj[].
  DELETE p_lt_proj_sel WHERE pspnr = 0.
  SORT p_lt_proj_sel by pspnr.
  SELECT ps_psp_pnr ebeln ebelp zekkn sakto FROM ekkn
  INTO CORRESPONDING FIELDS OF TABLE i_ekkn
  FOR ALL ENTRIES IN p_lt_proj_sel
  WHERE ps_psp_pnr = p_lt_proj_sel-pspnr.
I also checked that the index P in EKKN is active.
Can I somehow force the optimizer to use the index?
Regards,
Jarmo

Similar Messages

  • Time Limit Exceeded while executing Proxy Program

    Hi all,
    we are  frequently facing Time Limit Exceeded problem in R/3 system while exceuting proxy program for large payloads (appx 5-7 MB). Sometimes we are able to successfully restart the message and sometimes we have to delete these messages. How can we resolve this issue.
    Thanks,
    Mayank

    hi Joerg,
    we are getting this error in inbound queue in R/3 system, also this is a async call, so no chance of any communication interruption b/w SAP systems. From PI system, message is succeccfully passed to R/3 system & Time Limit Exceeded is coming in R/3 system inboud queue (SMQ2). Is it poosible that timeout will happen within R/3 system.
    Thanks,
    Mayank

  • Time limit exceeded during activation of ODS.

    Hi all ,
    Iam loading data to 0FIA_DS12 from 80FIA-DS11 , while activating the ODS it is giving me the errors
    Time limit exceeded. No return of the split processes
    Background process BCTL_46TLB77BCWTDNQIKN0772P16K terminated due to missing confirmation
    Error during confirmation of process 000002
    Iam not able to get this error , tried to activated it again but not working.
    Could anybody help me in this regard as its a bit urgent as we r working in production..
    Thanks in advance

    Hi,
    I am getting the short dump.
    TYPELOAD_NEW_VERSION
    Short text
        A newer version of data type "/BI0/AFIA_DS1240" was found than one required
    What happened?
        Runtime error
        The current ABAP program "GP46APBHXXAZADBZKVPTC7TA81O" had to be terminated
         because one
        of the statements could not be executed at runtime.
    What can you do?
        Restart the program.
        If the error persists, contact your SAP administrator.
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    Error analysis
        The data type "/BI0/AFIA_DS1240" was loaded from the database during the
         program run.
        However, a type of a newer version than the one requried was found here.

  • Time limit exceeded error

    Hello All,
    I am trying to execute a custom program with a variant, but I receive the Time limit exceeded error [TIME_OUT].
    I am now trying to analyse why this error has occurred as I am a beginner. Any help shall be greatly appreciated.
    Regards,
    Arpita.
    Moderator message: Welcome to SCN!
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Oct 20, 2011 2:01 PM

    Hi Ramya,
       Your prog running in the back ground, so the time limit of the prog is exceded.  Go to sm37 see the prog running time if exceded correct the time.
    Regards
    Srinu

  • DNL_CUST_ADDR "SYSFAIL" with time limit exceeded

    Hi Experts,
    i hope you can help here.
    We set up a new connection between a CRM and an ECC.
    Everything worked fine until we started the initial customizing load.
    All customizing objects went through, besides DNL_CUST_ADDR.
    It stopped in the Inbound Queue  of the CRM with error message "Sysfail" in Detail
    "Time limit exceeded".
    The Solution is not note 873918, we implemented it and it still doesn´t
    work.
    Ahead thank you very much.
    Regards
    Matthias Reich

    Hi Matthias,
       You can try any of the following things.
       Before starting the initial load of this object, change the block size in DNL_CUST_ADDR object to 50. Here delete the current queue and reinitiate the load  OR
       If you don't want to delete the existing queue, basis can increase the GUI maximum time. For this they need to change the parameter rdisp/max_wprun_time. You can see the current max time by executing the program RSPARAM. After doing this setting, you can unlock the queue.
    //Bhanu

  • TRFC Time limit exceeded issue

    We have issue about the TFC time limit exceeded. We have a third partner application which will call a HTTP service to our SAP, let's call the HTTP service as Z_submit_request, in Z_submit_request, we call RFC Z_process_request in IN BACKGROUND TASK, but we received a Time limit exceeded issue in SM58. Could anyone help to answer why we get this issue?
    Thanks a lot!

    RFC's are executed in dialog tasks, which have an upper limit for the allowed runtime. This can be set for profile parameter rdisp/max_wprun_time. You might want to check the profile parameter (or ask the basis folks) if it has the default value (or another reasonable value). Most likely though I'd say you should look into the actual RFC and see if you can improve the performance of Z_PROCESS_REQUEST, so that the timeout doesn't occur.

  • Short dump "Time limit exceeded" when searching for Business Transactions

    Hello Experts,
    We migrated from SAP CRM 5.2 to SAP CRM 7.0. After migration, our business transaction search (quotation, sales order, service order, contract etc) ends with the short dump "Time limit exceeded" in class CL_CRM_REPORT_ACC_DYNAMIC, method DATABASE_ACCESS. The select query is triggered from line 5 of this method.
    Number of Records:
    CRMD_ORDERADM_H: 5,115,675
    CRMD_ORDER_INDEX: 74,615,914
    We have done these so far, but the performance is still either poor or times out.
    1. DB team checked the ORACLE parameters and confirmed they are fine. They also checked the health of indices in table CRMD_ORDER_INDEX and indices are healthy
    2. Created additional indices on CRMD_ORDERADM_H and CRMD_ORDER_INDEX. After the creation of indices, some of the searches(without any criteria) work. But it takes more than a minute to fetch 1 or 2 records
    3. An ST05 trace confirmed that the selection on CRMD_ORDER_INDEX takes the most time. It takes about 103 seconds to fetch 2 records (max hits + 1)
    4. If we specify search parameters, say for example a date or status, then again we get a short dump with the message "Time limit exceeded".
    5. Observed that only if a matching index is available for the WHERE clause, the results are returned (albeit slowly). In the absence of an index, we get the dump.
    6. Searched for notes and there are no notes that could help us.
    Any idea what is causing this issue and what we can do to resolve this?
    Regards,
    Bala

    Hi Michael,
    Thanks. Yes we considered the note 1527039. None of the three scenarios mentioned in the note helped us. But we ran CRM_INDEX_REBUILD to check if the table CRMD_ORDER_INDEX had a problem. That did not help us either.
    The business users told us that they mostly search using the date fields or Object ID. We did not have any problem with search by Object ID. So we created additional indices to support search using the date fields.
    Regards,
    Bala

  • TIME LIMIT EXCEEDED ERROR WHILE EXECUTING DTP

    Hi gurus,
    I Have got an error while executing
    The errors are as follows.
    1.Time limit exceeded. No return of the split processes
    2.Background process BCTL_DK9MC0C2QM5GWRM68I1I99HZL terminated due to missing confirmation
    3.Resource error. No batch process available. Process terminated
    Note: Iam not  executing the DTP as a back ground job.
    As it is of  higher priority the answers Asap Is appreciated.
    Regards
    Amar.

    Hi,
    how is it possible to execute a DTP in dialog process. In my mind it is only possible for debugging...
    In "Display Data Transfer Process" -> "Goto" -> "Settings for Batch Manger" you can edit settings like Number of Processes or Job Class.
    Additional take a look at table RSBATCHPARALLEL and
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/f29aa933321a61e10000000a422035/frameset.htm
    Regards
    Andreas

  • Time Limit exceeded error in ALV report

    I am gettting error "Time Limit Exceeded" when i execute ALV report. Can i run the program in background and how to do that?. I had already optimized my query in the program but even then i am facing the same issue.

    You can process the alv in background by pressing F9...I guess that the output would be available as a spool in SP01.
    You may need to re-check your query...And also, review the alv catalog and any events you are using....
    Greetings,
    Blag.

  • Time Limit Exceeded in File - java- IDOC

    Hello,
    I have an interface which reads a text file in XI and uses a java mapping to produce IDOCs in an R3 system synchronously, the interface was running fine for more than 2 years . Since the text file is larger than 20 MB, we are splitting into small text files (2mb each) for easier processing. While processing, each file will hold the outbound queue (SMQ2) until it gets completed. after 2 years of using this interface, it started giving errors in the queue (Time Limit Exceeded) for files larger than 1mb.
    Any hint ??

    Swarup,
    increasing the RFC adapter time out from the visual admin has solve the problem,
    thank you for that.
    but what I was looking for is a way to find out what could be the root cause, since it was running 2 years with (300000 ms time out) without a problem. Now I must increase this time out which mean my system is not performing well!
    Agasthuri,
    as I mentioned, it was running fine with 2mb, now even 1mb cannot be proccessed,
    Thanks again.

  • PI 7.0: IDOCs struck in IDX5 with error "Time Limit Exceeded".

    Hi All,
    We have a File to IDOC scenario in PI 7.0. After mapping the IDOCs are posted from PI to ECC System.
    On a normal day this interface works good, yesterday we received a huge file which resulted in the creation of about 25000 IDOCs from one single file. The mapping went fine, however the IDOCs created were not posted into ECC System. When we monitor the IDOCs using transaction code IDX5 in PI system, we found the error message as "Time limit exceeded", the user shown was "PIAFUSER". To overcome this error, we increased the time limit of PIAFUSER from default to about 1500 seconds.
    Now, I want to push these IDOCs from PI into ECC System. Could you please let us know, how to push these IDOCs sitting in PI system to ECC?
    We do not want to reprocess the file from the beginning. Please let us know if it is possible to push the IDOCs without processing the file? If yes, how to reprocess?
    Thanks in advance.
    Regards,
    Manohar Dubbaka.

    Hi,
    the help documentation is as follows:
    Check the tRFC Status  
    Use
    tRFC calls which transfer IDocs use the function module IDOC_INBOUND_ASYNCHRONOUS at reception (before release 4.0: INBOUND_IDOC_PROCESS).
    If an IDoc in the sending system has been passed to tRFC (IDoc status "03"), but has not yet been input in the receiving system, this means that the tRFC call has not yet been executed.
    Activities
    To check the status of the tRFC calls, choose Tools ® IDoc Interface/ALE ® Administration ® Monitoring ® Troubleshooting ® RFC Queue (SM58) and specify any additional selection criteria.
    The program RSARFCEX restarts unsuccessful tRFC calls.
    You cannot choose the option is being executed in background processing.
    Best Regards,
    Erik Hubers

  • Time limit exceeded when doing MIRO

    Hi Experts,
    time limit exceeded error occured when doing MIRO transaction.
    plz reply with suitable answer.
    Thanks,
    Jyosna

    >
    jyotsna shinde wrote:
    > plz reply with suitable answer.
    Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting - post locked
    Rob

  • CIF - Time Limit Exceeded

    Dear All,
    Working on SCM 4.1
    To CIF products from R/3 to APO.
    Earlier the CIF for Products , was working fine , but today we  it stuck by the Inbound Error in APO "Time Limit Exceeded".
    There are thousonds of products , so how can i check which product is having the issue?
    Plz help me throughout.
    Thanks in advance,
    Regards,
    Rajesh Patil

    Hi,
    Please check if OSS note 1254364 is applicable.
    Normally the reasons for this "Time Limit Exceeded" error can be categorized as below:
    1) Sysfails (Technical / Basis team should be checking  nature of sysfail and take corrective action)
    2) Livecache performance ((Technical / Basis team should be checking   livecache whether performance is low and then take corrective action)
    3) Master data errors if any. From the log we can know the details.
       A quick checking rule can be thought : 1. Are products from a particular plant having more errors 2. Can we run the products transfer job more frequently.
    Regards
    Datta

  • ReadString() get time limit exceed to complete operation error

    I have a device name Time Electronics 5075. I am trying to use the SimpleReadWrite.2010 in National Instruments\NI-488.2\Examples\DotNET4.0\SimpleReadWrite\cs to comunicate with the device.
    I can open the connection and send commands to the device by using this code
    device = new Device((int)boardIdNumericUpDown.Value,(byte)primaryAddressNumericUpDown.Value,(byte)currentSecondaryAddress);
    device.IOTimeout = TimeoutValue.T100s;
    device.Write("X0/A1/F0{13}");
     But I am stuck at 
    stringReadTextBox.Text = device.ReadString();
    I get the error "Time limit exceeded to complete operation."
    I don't know exactly should I add 
    device.Write("T/D{13}");
    before the device.ReadString() or not. But I get the same error for both cases.
    Some info: Visual Studio 2010, Measurement Studio 2013, NI.488.2, Windows 7 Pro
    Any idea?

    Thank you Curt_C,
    I have attached the screen capture of NI IO Trace. I just open the session, send two commands T\n and D\n to the device and readstring. The red one are errors on reading. The last one is close session.
    I think \n is the correct terminator. It works with most of commands, just get stuck with ReadString.
    Kind regards,
    Thang
    PS: I also attached GPIB Interface Properties for more info
    Attachments:
    NI IO Trace_01.png ‏54 KB
    GPIB Interface Properties.png ‏54 KB

  • RFC_ERROR_SYSTEM_FAILURE: Time limit exceeded. Connection Pool - JCO api

    Hi Everyone
    My Connection  Pool parameters JCO api.
    client=300
    user=SISGERAL_RFC
    passwd=******
    ashost=14.29.3.120
    sysnr=00
    size=10
    I have these parameters on my Connection Pool and sometimes appear these wrongs in my application:
    1.
    2006-01-07 13:20:37,414 ERROR com.tel.webapp.framework.SAPDataSource - ##### Time limit exceeded. LOCALIZED MESSAGE = Time limit exceeded. KEY = RFC_ERROR_SYSTEM_FAILURE GROUP = 104 TOSTRING = com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Time limit exceeded.
    2.
    2006-01-07 14:01:31,007 ERROR com.tel.webapp.framework.SapPoolConnectionManager - Timeout
    I’d like to know if is happening.
    Are there something wrong with my connection pool?
    What can be happening?
    Thanks

    Raghu,
    Thanks for your response.
    Yes, the pool connections are in place according to the sAP note mentioned above.
    Regards,
    Faisal

Maybe you are looking for

  • XSLT mapping requirement.. Only numbers need to be picked..!!

    Hi , XSLT mapping requirement. I will be getting the value as mix of numbers and alphabets like " 1343: -BIZ USA ". I need to pick only number '1343' from the input field. Is there any function in XSLT to pick only numbers and ignore alphabets? Thank

  • Column in base table corresponds to column in view

    Hi, I have a view based on one table. I want to know the colum name of the view is corresponds to which column names in the base table. Showing the creation statement does not help because it has many colums and I cann't track this colum to which nam

  • Cannot view workflow log via Services for Object Workflow Overview

    We recently had an upgrade of R3/ECC and discovered a new issue.  For some reason we can no longer view workflow log via Services for Object > Workflow Overview for Material Master (transaction MM03).  We get the message "There are no workflows that

  • How to find original ios version

    iam download ios 7.1.1 on iclarified site. i have some doubt that site is sell original os or fake. how to find the original / fake ios 7.1.1 on iphone 4s. how to download original ios version on my phone..

  • Backup never finishes

    I am trying to use Backup for a custom backup to my iDisk (yes, I'm logged in to .Mac). I simply used the checkboxes to select all relevant document types (iTunes, Word docs, etc.) This is the first backup. Backup never finishes. The upload progress