Runtime error(Time limit exceeds)after executing select query

Dear experts, whenever i executing the select query in this zprogram i am getting runtime error that time limit exceeds.i am using inner join and into table.after that also i am geetting error. how can i resolve it??
SELECT LIKP~VBELN LIKP~WADAT_IST LIKP~VEHICLE_NO LIKP~TRNAME
          LIKP~VEHI_TYPE LIKP~LR_NO LIKP~ANZPK LIKP~W_BILL_NO
          LIKP~SEALNO1                                       " Seal NO1
          LIKP~SEALNO2                                       " Seal NO2
          LIPS~LFIMG
          VBRP~VBELN VBRP~VGBEL VBRP~MATNR VBRP~AUBEL VBRP~FKIMG
          VBAK~AUART
          VBRK~FKART VBRK~KNUMV VBRK~FKSTO
          FROM LIKP INNER JOIN LIPS ON LIKP~VBELN EQ LIPS~VBELN
                    INNER JOIN VBRP ON LIKP~VBELN EQ VBRP~VGBEL
                    INNER JOIN VBAK ON VBRP~AUBEL EQ VBAK~VBELN
                    INNER JOIN VBRK ON VBRP~VBELN EQ VBRK~VBELN
          INTO TABLE  I_FINAL_TEMP
          WHERE LIKP~VSTEL = '5100' AND
             LIKP~WADAT_IST IN S_WADAT  AND
                VBRP~AUBEL IN S_AUBEL AND
                VBAK~AUART IN ('ZJOB','ZOR') AND
                VBRK~FKART IN S_FKART AND
*               VBRK~FKART IN ('ZF8','ZF2','ZS1') AND
                VBRK~FKSTO NE 'X'.
When I am debugging the select query.the cursor will not go to next step.after 15-20 minutes i am getting runtime error(time limit exceeds).
how can i resolve it for that scenario??

Looks like whole SD flow you trying to fetch in single query
First you check the database statistic of these table are upto date in system ( Check with basis team )
if this query was working fine earlier.
Most of table involved are huge volume tables which queried with any primary key
Any secondary index on created for LIKP on VSTEL WADET ?
My suggestion would be split the selection queries and make use of primary or existing secondary index to fetch the desired result if possible. For testing purpose split the queries and find which is taking more time and which needs index by taking squel trace in ST05.
Also take ST05 trace of this query in debugger ( New debugger -> special tool -> trace > ST05/SE30)

Similar Messages

  • Query0;Runtime error time limit exceeded,with parallel processing via RFC

    Dear experts,
    I have created a report on 0cca_c11 cube and while running my report when i give cost center group which contains many cost centers , my report executes for long time and at last gives message
    "Error while reading data;navigation is possible" and
    "Query0;Runtime error time limit exceeded,with parallel processing via RFC"
    please tell me what is the problem and how can i solve this
    Regards
    Shweta

    hI,
    Execute the Query in RSRT with Execute and Debug option.
    Select SQL statements toknow where exactly it's taking time.
    Let us know the details once you done.
    Reg
    Pra

  • APO jobs cancelled due to error- Time limit Exceed.

    Dear All,
    Three jobs are scheduled daily to transfer data from R/3 to APO,
    These are cancelled due to error -"Time limit exceed".

    Hi Pankaj,
    There is a specific time allocated for each queue to clear and to get transferred across the system. the probable reasons are.
    1. The queue itself is taking more than the allocated time to clear due to system load. Each queue requires specific free memory from server , in case of overload system is unable to allocate desired memory hence the error might appear.
    2. If in a queue the very first entry is stuck due to x,y,z reason the queues following automatically go into "timeout" and then "system fail"
    Proposed solution.
    1. Analyze the first entry functionally. If Ok then ask the basis team to clear that particular entry.
    2. after time out the queue will go to "SYSFAIL". Double clicking on this will reveal the reason. Based on the technical reason I can suggest the relevant OSS notes to be applied.
    For detailed technical analysis check t-code CFG1.
    Regards,
    Ankur
    Edited by: Ankur Shrivastava on Dec 19, 2007 5:58 AM

  • 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

  • TRFC error "time limit exceeded"

    Hi Prashant,
    No reply to my below thread...
    Hi Prashant,
    We are facing this issue quite often as i stated in my previous threads.
    As you mentioned some steps i have already followed all the steps so that i can furnish the jog log and tRFC details for reference long back.
    This issue i have posted one month back with full details and what we temporarily follow to execute this element successfully.
    Number of times i have stated that i need to know the root cause and permanent solution to resolve this issue as the log clearly states that it is due to struck LUWs(Source system).
    Even after executing the LUWs manually the status is same (Request still running and the status is in yellow color).
    I have no idea why this is happening to this element particularly as we have sufficient background jobs.
    we need change some settings like increasing or decreasing data package size or something else to resolve the issue permanently?
    For u i am giving the details once again
    Data flow:Standard DS-->PSA--->Data Target(DSO)
    In process monitor screen the request is in yellow color. NO clear error message s defined here.under update 0 record updated and missing message with yellow color except this the status against each log is green.
    Job log:Job is finished TRFCSSTATE=SYSFAIL message
    Trfcs:time limit exceeded
    What i follow to resolve the issue:Make the request green and manually update from PSA to Data target and the job gets completed successfully.
    Can you please tell me how to follow in this scenario to resolve the issue as i waiting for the same for long time now.
    And till now i didn't get any clue and what ever i have investigated i am getting replies till that point and no further update beyond this
    with regards,
    musai

    Hi,
    You have mentioned that already you have checked for LUWs, so the problem is not there now.
    In source system, go to we02 and check for idoc of type RSRQST & RSINFO. If any of them are in yellow status, take them to BD87 and process them. If the idoc processed is of RSRQST type, it would now create the job in source system for carrying out dataload. If it was of RSINFO type, it would finish the dataload in SAP BI side as well.
    If any in red, then check the reason.

  • 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

  • Error "time limit Exceed"?"

    hi Experts,
    What to do when a load is failing with "time limit Exceed"?

    Hi,
    Time outs can be due to many reasons.  You will need to find out for your specific build.  Some of the common ones are:
    1. You could have set a large packet size.  See in the monitor whether the number of records in one packet seem inordinately large, say 100,000.  Reduce the number in steps and see which ones work for you.
    2.  The target may have a large number of fields, even then you will receive a time out as the size of the packet may become large.  Same solution as point 1.
    3.  You may have built an index in the target ODS which may impact your write speed.  Remove any indexes and run with the same package size, if it works then you know the index is the problem.
    4.  There is a basis setting for time out.  Check that is set as per SAP recommendation for your system.
    5.  Check the transactional RFCs in the source system.  It may have choked due to a large number of errors or hung queues.
    Cheers...

  • Error: Time limit exceeded...

    Hello Experts,
    I am currently modifying a report where it exceeds the time alloted for programs to run
    in our production server which is 10 minutes. I debbuged the report and found out that it fetches
    around 550k to 700k of records from tables VBAK and VBAP. After selecting, the internal table
    will now be looped and this where the report stops since it cannot process the huge volume of records
    which is 550k++. I need help on how to fix this since I can't think of anyway to limit the records being
    fetched. Below is the select statement:
    SELECT avbeln bposnr a~auart
             avkorg avtweg a~kunnr
             bmatnr bpstyv b~spart
        FROM vbak AS a
       INNER JOIN vbap AS b
          ON avbeln = bvbeln
       APPENDING TABLE lt_vbap
       WHERE a~auart IN lr_auart
         AND a~vbeln IN s_vbeln
         AND a~vbeln IN s_vbill
         AND a~vbtyp EQ p_vbtyp.
    LOOP AT lt_vbap ASSIGNING <wa_vbap>.
    ENDLOOP.
    Hope you can help me out here guys. Thank you and take care!

    Vitraylab,
    SELECT avbeln bposnr a~auart
    avkorg avtweg a~kunnr
    bmatnr bpstyv b~spart
    FROM vbak AS a
    INNER JOIN vbap AS b
    ON avbeln = bvbeln
    INTO TABLE lt_vbap
    PACKAZE SIZE 30000
    WHERE a~auart IN lr_auart
    AND a~vbeln IN s_vbeln
    AND a~vbeln IN s_vbill
    AND a~vbtyp EQ p_vbtyp.
    Write the functionality here, which you have written in between  loop end loop.
    ENDSELECT.
    change the packaze size according to your program run  time  10 minutes.
    Don't forget to reward if useful.

  • Error in File Database connector Error Time Limit exceeded

    Hello Experts,
    I am getting following error while fatching data from SAP BW using MDX connection.
    I am using Crystal Reports 2011 and save it in SAP BO 4.1 SP2.
    I have OLD BO system also. It is running successfully over there with using same connection(MDX) in Crystal Report 2008.
    Let me know if you faced same issue and provide solution.
    Thanks In Advance.
    Regards,
    Dhaval Dave.

    Hi Dave,
    Check the below one for BOE 3.1 :
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F…
    or
    https://websmp130.sap-ag.de/sap/support/notes/convert2pdf/0001434564?sap-language=EN
    rEGARDS,
    dj

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

  • Error while running query "time limit exceeding"

    while running a query getting error "time limit exceeding".plz help.

    hi devi,
    use the following links
    queries taking long time to run
    Query taking too long
    with hopes
    Raja Singh

  • IDoc on outbound side from XI - time limit exceeded error

    Hi,
    I have a FIle to IDoc scenario and I'm creating there a lot of idocs (20000) in a single push. I'm getting an error "time limit exceeded" on outbound side with red flag in SXMB_MONI. How to increase this limit parameter? Where to do it? - PI? or R/3?
    Thank you,
    Olian

    Hi,
    Check thios below thread..
    Re: XI timeout error
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Regards,
    Srini

  • 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

  • SMQ2 Time limit exceeded

    Hi Experts,
    IDOC to IDOC Scenarion--There are some entries in SMQ2 are showing "time limit exceeded". i tried to unlok the Queue every time i get the error and after that queue is going into Running status for some time and again it is giving the same error and status is "SYSFAIL". Queue registration is also done.we are facing this problem in production.
    All other interfaces messages are processing fine except for one interface. some IDocs are processed even for the same interface. I assumed that the size of the message is large. so it is not processing, mapping step is not executed.
    see the example below for one message which is not processed from XI
    <SAP:MessageSizePayload>467228</SAP:MessageSizePayload>
    <SAP:MessageSizeTotal>479041</SAP:MessageSizeTotal>
    <SAP:PayloadSizeRequest>467228</SAP:PayloadSizeRequest>
    We have restarted the complete XI server after Kernal upgrade and after that we are getting this problem, can any body give me the suggestion how can we solve the problem.

    Hi
    The size of the messages also not huge, we have tested it testing system and it is taking less than one minute to process the message. And we have checked at the Gate way & JCO connections are working fine. The problem is still there as i explained in my first post.
    Every time it is giving time limit exceeded after unlocking the Queue.
    Is there any other suggestions to resolve this issue.
    Thanks in Advance
    Neeru
    Edited by: neeru on Mar 3, 2010 2:57 PM

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

Maybe you are looking for

  • Using new Macbook as a CPU

    I am considering buying the new MacBook 13", to serve a dual purpose -- first to have a laptop to take when traveling, and second, to use to replace my current G4. I would use my current display and separate keyboard and, in essense, use the MacBook

  • HELP  Regarding Problem Found during transportation

    Hi Experts I was transported my request from DEV  to PROD When i am Importing my Objects in Producton server System is throwing this Error. --Start of the after-import method for object type R3TR UPDR (Activation Mode) Info object VV00B is not availa

  • DB configuration error in EAS

    Hi, I am trying to configure Essbase 9.3.1in windows environment woth oracle 10g. DBA has created two users 1) HYPSS 2) HYPEAS with DBA privileges, in DATA1-Table space, INDX1-indx space no problem with previleges. i am able to configure foundation s

  • How to check hanged process in solaris

    Hi every one ... I have a 10 processes running in my server .. suddenly on process got hanged .. How can i check the hanged process...is there any specific command or ehat does the notation it shows in prstat command Thanks in Advance

  • Dynamic Link on Separate workstations cs6?

    I am an editor working through a server with a motion graphics artist.  We are trying to use dynamic link so that when the AfterEffects artist makes a change to the file, it's automatically changed in my edit.  However, when working on two separate s