Hold the report until time out

I want to set a time loop in after parameter form by waiting 2 minutes to run the report. But it seems the loop is not working.

Hi Janice
I'm not sure which version of Reports you are running. In case you are running Reports 9i, you may use Java Importer feature to get this done. This is how:
Create a java class that has a static method:
public class Sleeper {
public static void Sleep(long duration)
Thread.sleep(duration);
Compile Sleeper.java file and place the class file in REPORTS_CLASSPATH
In Reports 9i Builder, import the Sleeper class.
In the place where you want to hold, call SLEEPER.SLEEP(1000*60*5);
Regards
Sripathy

Similar Messages

  • Performance issue in Report (getting time out error)

    Hi experts,
    I am doing Performance for a Report (getting time out error)
    Please see the code below and .
    while looping internal table IVBAP after 25 minutes its showing  time out error at this poit ->
    SELECT MAX( ERDAT ) .
    please send alternate code for this .
    Advance thanks
    from
    Nagendra
    Get Sales Order Details
    CLEAR IVBAP.
    REFRESH IVBAP.
    SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
       INTO CORRESPONDING FIELDS OF TABLE IVBAP
         FOR ALL ENTRIES IN IVBAK
           WHERE VBELN =  IVBAK-VBELN
           AND   MATNR IN Z_MATNR
           AND   WERKS IN Z_WERKS
           AND   ABGRU = ' '.
    Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
      SORT IVBAP BY MATNR WERKS.
      CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
             WK_BLOCK, WK_MMSTA, WK_MSTAE.
      LOOP AT IVBAP.
          CLEAR WK_INVDATE.                                   "I6677.sn
          SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
          AUBEL EQ IVBAP-VBELN AND
          AUPOS EQ IVBAP-POSNR.
          IF SY-SUBRC = 0.
              MOVE WK_INVDATE TO IVBAP-INVDT.
              MODIFY IVBAP.
          ENDIF.                                               "I6677.e n
          SELECT SINGLE * FROM MBEW WHERE             "I6759.sn
          MATNR EQ IVBAP-MATNR AND
          BWKEY EQ IVBAP-WERKS AND
          BWTAR EQ SPACE.
          IF SY-SUBRC = 0.
             MOVE MBEW-STPRS TO IVBAP-STPRS.
             IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
             MODIFY IVBAP.
          ENDIF.                                      "I6759.en
        IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
          CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
          MOVE IVBAP-MATNR TO WK_MATNR.
          MOVE IVBAP-WERKS TO WK_WERKS.
          SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
            WHERE MATNR = WK_MATNR
            AND   WERKS = WK_WERKS.
          IF NOT MARC-MMSTA IS INITIAL.
            MOVE '*' TO WK_MMSTA.
          ENDIF.
          SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
            INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
            WHERE MATNR = WK_MATNR.
          IF ( NOT MARA-MSTAE IS INITIAL ) OR
             ( NOT MARA-MSTAV IS INITIAL ) OR
             ( NOT MARA-LVORM IS INITIAL ).
             MOVE '*' TO WK_MSTAE.
          ENDIF.
          MOVE MARA-PRDHA TO WK_PRDHA.
          SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
            WHERE MATNR = WK_MATNR
              AND SPRAS = SY-LANGU.
        ENDIF.
        IF Z_BLOCK EQ 'B'.
          IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
            DELETE IVBAP.
            CONTINUE.
          ENDIF.
        ELSEIF Z_BLOCK EQ 'U'.
          IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
            DELETE IVBAP.
            CONTINUE.
          ENDIF.
        ELSE.
          IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
            MOVE '*' TO WK_BLOCK.
          ENDIF.
        ENDIF.
        IF WK_PRDHA IN Z_PRDHA.                                    "I4792
          MOVE WK_BLOCK TO IVBAP-BLOCK.
          MOVE WK_PRDHA TO IVBAP-PRDHA.
          MOVE WK_MAKTX TO IVBAP-MAKTX.
          MODIFY IVBAP.
        ELSE.                                                     "I4792
          DELETE IVBAP.                                           "I4792
        ENDIF.                                                    "I4792
        IF NOT Z_ALNUM[] IS INITIAL.                              "I9076
          SELECT SINGLE * FROM MAEX                               "I9076
            WHERE MATNR = IVBAP-MATNR                             "I9076
              AND ALNUM IN Z_ALNUM.                               "I9076
          IF SY-SUBRC <> 0.                                       "I9076
            DELETE IVBAP.                                         "I9076
          ENDIF.                                                  "I9076
        ENDIF.                                                    "I9076
      ENDLOOP.

    Hi Nagendra!
    Get Sales Order Details
    CLEAR IVBAP.
    REFRESH IVBAP.
    check ivbak is not initial
    SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
    INTO CORRESPONDING FIELDS OF TABLE IVBAP
    FOR ALL ENTRIES IN IVBAK
    WHERE VBELN = IVBAK-VBELN
    AND MATNR IN Z_MATNR
    AND WERKS IN Z_WERKS
    AND ABGRU = ' '.
    Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
    SORT IVBAP BY MATNR WERKS.
    CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
    WK_BLOCK, WK_MMSTA, WK_MSTAE.
    avoid select widin loop. instead do selection outside loop.u can use read statement......and then loop if required.
    LOOP AT IVBAP.
    CLEAR WK_INVDATE. "I6677.sn
    SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
    AUBEL EQ IVBAP-VBELN AND
    AUPOS EQ IVBAP-POSNR.
    IF SY-SUBRC = 0.
    MOVE WK_INVDATE TO IVBAP-INVDT.
    MODIFY IVBAP.
    ENDIF. "I6677.e n
    SELECT SINGLE * FROM MBEW WHERE "I6759.sn
    MATNR EQ IVBAP-MATNR AND
    BWKEY EQ IVBAP-WERKS AND
    BWTAR EQ SPACE.
    IF SY-SUBRC = 0.
    MOVE MBEW-STPRS TO IVBAP-STPRS.
    IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
    MODIFY IVBAP.
    ENDIF. "I6759.en
    IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
    CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
    MOVE IVBAP-MATNR TO WK_MATNR.
    MOVE IVBAP-WERKS TO WK_WERKS.
    SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
    WHERE MATNR = WK_MATNR
    AND WERKS = WK_WERKS.
    IF NOT MARC-MMSTA IS INITIAL.
    MOVE '*' TO WK_MMSTA.
    ENDIF.
    SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
    INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
    WHERE MATNR = WK_MATNR.
    IF ( NOT MARA-MSTAE IS INITIAL ) OR
    ( NOT MARA-MSTAV IS INITIAL ) OR
    ( NOT MARA-LVORM IS INITIAL ).
    MOVE '*' TO WK_MSTAE.
    ENDIF.
    MOVE MARA-PRDHA TO WK_PRDHA.
    SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
    WHERE MATNR = WK_MATNR
    AND SPRAS = SY-LANGU.
    ENDIF.
    IF Z_BLOCK EQ 'B'.
    IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
    DELETE IVBAP.
    CONTINUE.
    ENDIF.
    ELSEIF Z_BLOCK EQ 'U'.
    IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
    DELETE IVBAP.
    CONTINUE.
    ENDIF.
    ELSE.
    IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
    MOVE '*' TO WK_BLOCK.
    ENDIF.
    ENDIF.
    IF WK_PRDHA IN Z_PRDHA. "I4792
    MOVE WK_BLOCK TO IVBAP-BLOCK.
    MOVE WK_PRDHA TO IVBAP-PRDHA.
    MOVE WK_MAKTX TO IVBAP-MAKTX.
    MODIFY IVBAP.
    ELSE. "I4792
    DELETE IVBAP. "I4792
    ENDIF. "I4792
    IF NOT Z_ALNUM[] IS INITIAL. "I9076
    SELECT SINGLE * FROM MAEX "I9076
    WHERE MATNR = IVBAP-MATNR "I9076
    AND ALNUM IN Z_ALNUM. "I9076
    IF SY-SUBRC 0. "I9076
    DELETE IVBAP. "I9076
    ENDIF. "I9076
    ENDIF. "I9076
    endloop.
    U have used many select queries widin loop-endloop which is a big hindrance as far as performance is concerned.Avoid such practice.
    Thanks
    Deepika

  • Bug report: Screen times out when other side is no...

    Bug report: Screen times out when other side is not sharing video. The phone locks and of course the other party cannot see anything. Please fix.
    Using WP 8.1.1 Developers Preview.

    Hi and welcome to the Skype Community,
    Can you please share which platform and which device you are on?
    Also are you referring about a one-way video call here where only you are sending video, but the other party doesn't send their video back?
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Does the alarm ever time out?

    I have the alarm set daily to wake me up for work. Tonight I accidentally left my phone at work and it's not convenient for me to go back and get it before I go to work tomorrow morning. If it goes off in the morning, will it keep going indefinitely until "Dismiss" is selected? I always turn it off right away and have no idea how long it can go on for.
    Hoping I don't have to rush in at the crack of dawn so it doesn't bother all my early-bird coworkers!

    Yu Yang wrote:
    Our ADF project Integrated with OAM for SSO, if we set the OAM session time out time is 40 minutes and ADF project session time out time 30 minutes Are you referring to the OAM idle session timeout or total session limit? My guess would be you are asking about the idle session timeout.
    and when the ADF project reach the session time out then we relogin the ADF project , and at this time does OAM session time out time will reset to 40 minutes or just left 10 minutes?If there is any update to the session, then the idle timeout counter will be reset to 0.

  • BUG: Feedback Reporting Tool times out

    When JDeveloper throws one of those bugs up and gives you the opportunity to send feedback via their "Feedback Reporting Tool" the connection ALWAYS times out. I'm not behind a proxy server or corporate firewall. The only message that appears is a little pop up in the lower right corner that says "Feed back failed. Root Cause: Connection timed out." How do I fix Bug Reporting so I can actually report the errors I'm getting (and there are a LOT of them).
    BTW - the original error that invoked the Bug Reporting window occured when trying to deploy and ADF Jar File. For some reason this particular time it caused an error. I have received the Feedback Reporting Tool window when changing focus within the IDE, deploying, saving, selecting a datasource, etc.
    More information from the message log:
    Failed to log feedback because of exception: oracle.ideimpl.feedback2.client.FeedbackException: Exception creating LegacyFeedbackWriterFCPAUTO: Already logged bug [IOException in o.i.net.JarIndex:1190]
    No.... I hadn't tried to log this bug before either.
    Edited by: DMP1970 on Feb 22, 2012 9:40 AM

    DMP,
    If you get that Report a Bug icon again, can you try starting Jdeveloper with this command line argument
    c:\oracle\middleware\jdeveloper\jdeveloper.exe -console -J-Dide.internalcheck.verbose=true
    Then cut and paste the results into an email to me. john<dot>brock<AT>oracle.com
    We see this every so often but it's really random and has been a tough thing to nail down. The last person we had report this, happened to be using a OpenDNS setup and instead of a 404 or some other error being returned when he went to a bad URL, his system would return a valid page with some other information from his DNS. Verizon does this all of the time, returning what they think are useful search results thinking that you may have mis-typed something.
    Anyway, please let us know if you get a chance to run that test line above.
    Thanks!
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • When I click on Web mail I get "The connection has time out

    When I click on "Web Mail" from Glossbrenner United Methodist Church web page, it won't log on to my email page. I keep getting - The connection has time out
    The server at 74.220.207.173 is taking too long to respond.
    The site could be temporarily unavailable or too busy....
    If you are unable to load any pages, check you computers' network connection.
    If your computer or network is protected by a firewall.....

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Ifou don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • I can't download update 5.0.1 and have disabled all security measures and the download still times out shortly after beginning the download.  All other downloads are successful so I know the problem is not in the computer.  Can anyone help?

    Can't download update 5.0.1 to my iPad2.  I disabled all security items in fact have deleted them from computer, but the download still times out advising check settings but all is set right?  Can any one help with this matter?

    I'm still experiencing this problem.  I went to settings, general, software and it says Install now.  But when I try, I get an error message. 

  • The wait operation time out

    Dear all,
    I am facing one problem with my user pc "The wait operation time out"
    ERROR= 
    Aconnection was successfully established with the server. but then an error occurred during the pre-loging handshake. (provided , SSL providing error-0 , The wait operation time out microsoft SQL server error- 258.
    my user-pc use windows 7 and connect VPN by using "Sonic-wall" we connect successfully and get my remote server IP ping reply but when try to access remote server database that time I am getting this error
    At the same time using same network and id can connect the server from vpn and access database from other
    system.
    please help me sort it out this issue. 
    thanks 
    sajal 

    Hi Sajal,
    It is possible that remote machine(server) is up but please check whether database server is up or not.
    Please contact database administrator to know the status of database. This will help you to know the cause.
    If database is down you cannot connect it.

  • So when I go to down load the adobe it times out on me

    so when I go to download the adobe it times out on me

    Download the offline installer from http://get.adobe.com/reader/enterprise/
    If you need more help, provide your operating system & version.

  • How to know the User name and date, who executed the report last time.

    Hi All,
    We are collecting a list of reports which are not executed for past 3 months. Can anybody tell me how to know the username and date they executed the report last time.
    Is there any table to look ? or is there any process ?
    Thanks,
    Ravi.

    Ravi,
    Use SE16 - then look at rszcompdir.
    We look up Version = 13 for queries.
    Regards
    Gill

  • HT4623 The "Software Update" feature is not available in my Ipod 2nd Generation unit while the upgrade option in iTunes keeps on hanging while downloading the upgrade iOS (time out error). So, please tell me how I can upgrade the iOS.

    The "Software Update" feature is not available in my Ipod 2nd Generation unit while the upgrade option in iTunes keeps on hanging while downloading the upgrade iOS (time out error). So, please tell me how I can upgrade the iOS.

    The Settings>General>Software Update comes with iOS 5. The 2G can only go to iOS 4.2.1
    Try disabling the computer's security software during the download and update.

  • HT4623 what if i want to delete an app; i tap and hold the app until it jiggle, but  there's no "x" to delete.

    what if i want to delete an app; i tap and hold the app until it jiggle, but  there's no "x" to delete.

    If you're talking about deleting (as opposed to closing) an app, you do it just like on previous versions; hold until jiggle, press red X. If they're jiggling but you're not seeing the X, you may need to check your Restrictions. Some apps (Apple included) can't be deleted.
    = L.I.

  • BPEL not started until time out

    Hi,
    In my BPEL Process,I have flowN activity, each branch(each flow) has HumanTask activity which sends mail & get response from the assignee.
    When I invoke the process, it gets started but not send any mail until the timeout.
    If the process timed out and returns exception : com.oracle.bpel.client.delivery.ReceiveTimeOutException, then everything works as expected.
    I have set the time out under 2 files transaction-manager.xml & domain.xml.
    I'm using SOA 10.1.3.1
    And in my orion-ejb-jar.xml also contains some timeout option (default is 160) which I left without change.
    Thanks.

    Hi Janice
    I'm not sure which version of Reports you are running. In case you are running Reports 9i, you may use Java Importer feature to get this done. This is how:
    Create a java class that has a static method:
    public class Sleeper {
    public static void Sleep(long duration)
    Thread.sleep(duration);
    Compile Sleeper.java file and place the class file in REPORTS_CLASSPATH
    In Reports 9i Builder, import the Sleeper class.
    In the place where you want to hold, call SLEEPER.SLEEP(1000*60*5);
    Regards
    Sripathy

  • Report server times out for 3 mb of excel

    I'm using a report viewer control in our application and it is working fine while displaying data and exporting it in different format by clicking export button provided by the report viewer.
    I have another page but there will be a normal asp button to generate same report. so i am using report viewer control and calling the public method .Render exposed by the report viewer.
        byte[] bytes = rptViewver.ServerReport.Render("Excel", deviceInfo, out mimeType, out encoding, out extension, out streamids, out warnings);
    this time i am getting below exception.
        Exception :System.Net.WebException: The request failed with HTTP status 504: Connection Timed Out.
        at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
        at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
        at Microsoft.SqlServer.ReportingServices2005.Execution.ReportExecutionService.Render(String Format, String DeviceInfo, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
        at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.Render(String Format, String DeviceInfo, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
        at Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
        at Reports_GenerateReport.DisplayReport(Boolean IsExport) in f:\Sunil\View Reports\Login\Reports\GenerateReport.aspx.cs:line 1702
    My doubt is like, why it is getting time outs while leveraging same report viewer control internally.
    any suggestions to get rid of this?

    Hi sGudivada,
    Please check the ExecutionLog view in ReportServer database to learn more information about the report. The report server execution log contains information about the reports that execute on the server or on multiple servers in a scale-out deployment. For
    example:
    TimeDataRetrieval fields. Record number of milliseconds spent retrieving the data.
    TimeProcessing fields. Record number of milliseconds spent processing the report.
    TimeRendering fields. Record number of milliseconds spent rendering the report.
    Reference:
    http://msdn.microsoft.com/en-us/library/ms159110(v=sql.110).aspx
    There is an article about troubleshooting report performance, you can refer to it.
    http://msdn.microsoft.com/en-us/library/bb522806(v=sql.105).aspx
    Thanks,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Data not displaying  the report (Help me out Urgent)

    Hi Folks,
    When i am executing the query and web reports for the date 27/11/2007 & 28/11/2007 am not getting the data its saying "No applicable data found"
    But i can see the data  in the  ODS for those dates.
    Report is working fine till 26/11/2007.
    But when the user is trying to check the reports for the above mentioned dates its not displaying.
    Even in checked it the RSRT as well but the same case over there the data is not displaying.
    Its bit urgent as its month end user wants to see the reports.
    Any help or any clue will be great helpfull and appreciated.
    Urs,
    RK
    *****Points Committed

    HI Suchitra,
    <i>First check out how many records are there in the ODS as on 27th and 28th</i>
    There are totally 750 & 427 records on 27th and 28th.
    <i>At the time of executing the query,are using giving any variable entries?</i>
    Yes we are using variables entires like PO Date & PO number we usually check  the reports giving the date in  PO Date variable,
    Any other clue please?
    Urs,
    RK.

Maybe you are looking for

  • Is there any way to activate the keep identity setting when using a Transfer SQL Server Object Task?

    Is there any way to add the "Keep Identity" option to the tables selected for transfer in a Transfer SQL Server Object Task?  It seems that would be very useful, yet I can't find an easily available setting for it.  I would prefer to accomplish this

  • Help needed: Adding 2nd widget makes 1st widget stop working

    Dear all, I use 1 widget, jQuery Cycle, and it was working fine, until i added a 2nd one, FlexSlider. How can i make both working on the same page? My website is : VINDSTERS - Wij Vinden wat u zoekt!  and please see my coding below. Thanks a lot! <!D

  • Passing array as method to activex

    Dear Users; Sorry if this is a repeat question - I could not find relevant code in the faq. I have an activeX control which contains a method (PassArray) which accepts an array, and modifies its contents... The array *seems* to be correctly passed in

  • Can't open iTunes and Mail after installing Yosemite

    Hi, I intsalled Yosemite and after the Installation i can't open iTunes and Mail anymore, how can i fix this ?

  • Store of error logs

    Dear gurus, Could you please let me know if the following logs are stored in the DB or at file system? - ABAP runtime error logs (ST22) - Background job logs (SM37) - System logs (SM21) Best regards Rodolfo