Run time for a Report

Hi All,
I have a requirement, where in i want to know whether my report has run for 8 mins or not. If it has run for 8 mins then i have to give an information message saying that the report is taking more than 8 mins so schedule the program in back ground.
Is this possible ?
Please let me know how to know during run time the time taken by a report.
Regards
Rakesh.

Hi Dominic,
The code you mentioned can be put to know what is the time taken by a select statement or the time taken by a particular piece of code. In my program there are several select queries and complex logics.. So i dont think that it is feesible to calculate the run time for each select and then if its increasing 8 mins then to show error !!!!
My report will be called from an external application. If the program is taking much time it will get timed out. So for a precaution we have to tell them that the way you have given the selection screen filter values its going to take more than 8 mins so better schedule a back ground job.

Similar Messages

  • How to change the view criteria at run time for af:query

    Hi,
    I've a usecase where I need to change the view criteria of the af:query at run time.
    Use case:
    =======
    1) Consider a check box (Show Emps Under Dept 10) in the query panel when user selects and clicks 'Search' button should show the employees under dept 10. If user searches without selecting the check box, the results should show all the employees in all the departments.
    2) I need to have a check box always in the query panel. Its mandatory.
    The way I implemented:
    ==============
    1) Created a transient variable 'Show Emps Under Dept 10' in the EmployeeVO and also created a bind variable bind_DeptNo.
    2) Create a view criteria 'AllEmployees' which has only the transient attribute as the view criteria item and whose value set to 'false' by default.
    3) Created another view criteria 'EmpUnderDept' which has 'DepartmentId' as the view criteria item and whose value set to the bind variable 'bind_DeptNo'.
    4) Dropped the view criteria 'EmpUnderDept' as the 'af:query' panel in the jspx page.
    5) Overridden the queryListener as '#{EmpBean.empSearch}'
    6) Has the below code in the empSearch method as below. When user selects the check box, applying the other criteria 'EmpUnderDept' and setting the bind variable to '10'.
    public void empSearch(QueryEvent queryEvent) {
    // Add event code here...
    QueryDescriptor queryDesc = (QueryDescriptor) queryEvent.getDescriptor();
    ConjunctionCriterion conCrit = queryDesc.getConjunctionCriterion();
    List<Criterion> criterionList = conCrit.getCriterionList();
    List criterionValues = new ArrayList();
    Object criteriaValue = null;
    int criteriaNo = 0;
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    FacesContext facesContext = FacesContext.getCurrentInstance();
    for (Criterion criterion : criterionList) {
    AttributeDescriptor attrDescriptor = ((AttributeCriterion)criterion).getAttribute();
    System.out.println("============== attrDescriptor.getName() =================== " + attrDescriptor.getName());
    criteriaValue = ((AttributeCriterion)criterion).getValues().get(0);
    if(criteriaNo==0) {
    Boolean val = (Boolean) ((AttributeCriterion)criterion).getValues().get(0);
    if (val.equals(true)) {
    OperationBinding method = (OperationBinding) ADFUtil.findOperation("ExecuteWithParams");
    if(method!=null) {
    Map params = method.getParamsMap();
    //params.put(key, value)
    method.getParamsMap().put("bind_DeptId", 10L);
    method.execute();
    ADFUtil.invokeMethodExpression( "#{bindings.EmpUnderDeptCriteiaQuery.processQuery}", queryEvent);
    } else {
    //ADFUtil.invokeEL("#{bindings.ExecuteWithParams.execute}");
    ADFUtil.invokeMethodExpression( "#{bindings.AllEmployeesCriteriaQuery.processQuery}", queryEvent);
    But this approach is not working and its always showing all the employees in all the departments.
    Please let me know if there is a way to change the view criteria at run time depending on the values set at run time for one of the view criteria items.
    JDev version am using is '11.1.1.5'
    Thanks,
    Lakshman

    Hi Shay,
    It worked for me without overriding the executeQuery() method in the ViewImpl.java.
    Instead of creating 2 view criteria, I created only one which has both transient variable and the DepartmentId = <bind_DeptId>. With the above code, it worked properly. Now I am using only one view criteria.
    Thank you.

  • Execution time for web reports

    Hello every one,
    How to calculate execution time for web reports, for query execution we will go through RSRT, by giving query name and press execute + Debug button then select statistical data & Do not Cache buttons then press enter, after getting output press on back button, we will get duration of the query.....
    But my question is , can we calculate execution time for webreport, if so can you please guide me.
    and can you also tell me , if there is any RRI for one report, how to calculate execution time for these queries.
    Ex : Query ABC have XYZ as its drilldown report , i need to calculate execution time for XYZ report via ABC report.
    Thanks in advance,
    Best Regards.
    NP.

    Hi,
    For reports executed in java web you can add the parameter &PROFILING=X
    to the URL in order to record the execution time. Please have a look at SAP note 1048691 for further information.
    Best regards,
    Janine

  • Run time for a query

    Hello all,
    Can you please tell me how can I see the total running time for a query?
    What other transactions besides ST03 and RSRT with statistics on?
    Points will be assigned
    Thanks
    Ramona

    Hi........
    You can use ST03N -> BW System Load
    Depending on the time frame you select, you get historical data or
    current data.
    To get to a specific query you need to drill down using the InfoCube
    name
    Use Aggregation Query to get more runtime information about a
    single query. Use tab All data to get to the details.
    (DB, OLAP, and Frontend time, plus Select/ Transferred records,
    plus number of cells and formats)
    Also You can get it in RSRT,RSRTQ...
    WE07  IDoc statistics 
    DB20  Update DB Statistics 
    Regards,
    Debjani........
    Edited by: Debjani  Mukherjee on Sep 25, 2008 2:42 PM

  • Default maximum run time for updates

    Is there a way to change the default "Max run time" for each update? In SCCM 2007 the default run time was 20 minutes per update, now it is 5 minutes. I have machines that repeatedly fail to install updates because the max time of 300 seconds was
    reached.

    Hi,
    What is the powershell command to change the maximum run time?
    Thanks.
    probably this:
    http://technet.microsoft.com/en-us/library/jj850138(v=sc.20).aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Maximum allowed run time for a task sequence

    I found if i left the maximum allowed run time for a task sequence with a defualt value of "0" in configuration manager 2012 r2 cu2,the required task sequence would never run without a maintenance window larger than
    12H.
    At client side,the servicewindowmanager.log always said this required task sequence had a maximum runtime of 43200 seconds(12h).
    servicewindowmanager.log:
    OnIsServiceWindowAvailable called with: Runtime:43200, Type:5
    Program cannot Run! Setting *canProgramRun to FALSE
    There does not exist a Service Window of this Type, for this duration. The Program will not run.
    If i set maximum allowed run time to 120 minutes,task sequence would run under a 3h mainenance window.
    So if you leave the maximum allowed run time for a task sequence with a value of "0" then client agent will evaluate it as 43200(12h) for a required deployment,is it true? have i missed something?

    Hi,
    That is correct it will default to the same value as a program with a "Unknown" maximum runtime value, Unknown is also evaluated to 0 = 12h so that is correct behaviour.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Battery run time for Tungsten E?

    What is the total run time for the battery in the Tungsten E assuming the back light is on all the time while playing a song?
    Post relates to: Palm III

    With a brand new T|E in early 2004 I could get about 3 hours of run time in Aeroplayer with screen off.
    I doubt you can get anything like that.
    It would be simpler and less time consuming for everyone if you had started one thread with ALL your T|E battery questions.
    Post relates to: Palm TX

  • Run time error in report for a particular month : "  TIME_OUT"

    hi frends, we have developed a report for PM module in SAP. it is a monthy report. and user have to enter the month for which he wants to see the report. we are facing runtime error for a particular oct. and nov month of 2009 only , all other months are working fine. The error is :
    The program "ZPMR_EQUP_PERFORMANCE_REPORT" has exceeded the maximum permitted
      runtime without
    interruption and has therefore been terminated.
    what could be the reason.

    Hi  Achalmehra,
    By seeing the run time error "TIME_OUT", I suspect this is due to Performance issue.
    There is a chance that they had huge data dump into PM server from other servers and there is also chance that
    They have many records available for these 2 months.
    IN any case, please chk with Run time analysis (SE30) by executing your program...
    If it displays the graph more than 30 % for Database then it is an issue with the Performance.
    Also chk with SQL trace.....
    Second case :
    Check you had not used Nested Loops,  Select queries in Loop.
    Make sure you use Binary search for  Read Statements....
    Third : Chk with the runtime error at which place of the code it is throwing Time_out error at Source code extract.
    To help you further, please paste your code here and also paste the Run time error that you receive with the select queries.
    Regards,
    Kittu

  • Capturing total time for a report..

    Hi all..
    I have a query. Is there a way to capture total time spent to show a report on browser
    If I understand the way it works in OBIEE
    Browser -Presentation Services -- HTTP Request or Response (This we can see by increasing sawlog config file to see more details in sawlog0.)
    Presentation services - BI Server (By Usage Tracking S_NQ_* tables, it gives response time, elapsed time and such statstics)
    BI Server - DB ( The query running time also captured in usage tracking table)
    My understanding is on whole when Presentation services pass the request to BI Server..and when it BI server returns the data to Presentation services..
    There shoud some COMMON PARAMETER to match the request sent and received ..Mapping the requests...
    Is there a way to get that parameter/variable/sytem variable..so that I can accomplish objective of tracking total time spend for a request..
    I could increase saw log and see there is no common parameter that I could match from Sawlog to NQQuery Log, but no luck
    Can anybody help here to find someway? any pointers?
    Thanks in advance..

    There is no parameter that captures the browser rendering time of the report. In the manage sessions if you check the report run time stats you should be able to find the elapsed time, db connect time and compilation time
    To find a more accurate time to render the report and the time when it has become active you can check that information Under Manage sessions in the RPD. That will give the start time and report active time which is the time at which the report is active.
    If you closely monitor this time in the sessions will be a little higher than the time present in the view logs elapsed time which includes the browser rendering time as well because it gives the report active time on it.
    Hope it will be helpful
    thanks
    prash

  • Urgent:How to Speed Up the Response time for PDF Report of  500 pages

    hi all
    i am running the 9ias on Solaris and Generating some reports
    Which fetches around 50,000 records and Display them in pdf format.
    When i am ruuning the Query at Database level Response time is Very fast.
    But when i Run the Report in Web Browser same report takes 7-8 minutes.
    So it seems that the Conversion to pdf and Displaying it takes most of time.
    Does any one has idea What parameter's needs to be changed/Caching ??? /
    or any other ways or methods which can be used to Reduce the Response time.
    (its once a monthly Report and User need to Download all the 500 pages as
    a Single Document).
    Any help / suggestion please
    thanks
    jai

    You aren't by any chance calling a function in your repeating frame that in turn goes back and queries the database, are you? If so ... don't. We regularly do 500+ page PDF-file reports, and one thing we discovered early on was that repeatedly going back to the database while generating the report output (in our case, in calculations that were being done on each line of a report) slowed the output down by an order of magnitude. Instead, we now retrieve all the data needed for each report up front (via functions or views called in the initial SQL for the report), and just use Reports to format the output. MUUUUUUUCH faster -- 200 page reports that used to take 15 minutes to complete now complete in just seconds.
    One way you can visually see if this is part of your problem is to watch the report execute in the Report Queue Manager application. If it spends all its time on the "Opening" stage then breezes through each page, this is not your problem. If instead it seems to take a long time generating each page, I'd suspect that this may be at least part of your delay.
    - Bill

  • How to know the timings of the run time of thr report

    Hi,
    Can you please tell me how to know the run time of the query , i mean how much time it took for the query to dispaly the results .
    Also we have these queries in the workbook. How to refresh the work book . is it enough if i refresh the query.
    Thanks
    Sruthi

    Hi
    How can we check in RSRT tcode?
    And how can we do i RSRTRACE?
    Can  I know the procedure.

  • How to terminate the running query for a report?

    Hi,
    When I run a report, the SQL query takes too long.
    This causes an overload on database.
    How do I stop query from running after some time?

    It is NOT possible in OBIEE 10g.
    In OBIEE 11g, When a scheduled report job is in running status, you can now cancel the running job from the Report Job History page.
    Check this Section 6.9, ["Canceling a Running Job." |http://docs.oracle.com/cd/E23943_01/bi.1111/e22257/view_manage_rpt_his.htm#cancel_runj]
    And only possible since 11.1.1.5
    regards
    Jorge
    p.s If this answers your question then please mark my answer as "Correct" or "Helpful"

  • Execution time for the report.

    Dear All,
    How do i determine the execution time of the report?
    If i need to run some program then please do tell me how can i run the program too?
    Thanks..

    Hi,
    The thread below is telling you how to see query statistics in ST03N.
    Re: BEx Query is executed how many times???
    Regards.

  • Get Layout details during run time of the report

    Hi floks,
              We are downloading the ALV ouput data through a customised button. Presently, it downloads all the data from the Internal table that is passing to the function module. But the requirement is it should download only those fields which are in that particular layout selected....Could you please let me know how to get the various fields assigned to that variant at run time...is there any function module to do so..
                                    Thanks in advance,
                                        Shyam.

    Hi shyam,
                      The layouts are stored in the table LTDX. The function module 'LT_DBDATA_READ_FROM_LTDX' gives the info about the  fields displayed in the using the layout. In the tables paremeter T_DBFIELDCAT the field key1 is  populated with the the fields used in the layout. you just have to poplulate the exportin parameter IS_VARKEY with the report name and variant name . it is similar the entries in the table LTDX.  All these related info about the Layouts can be found in the function group SKBS .  you have to code accordingly once you have the fields used in the layout and download the data.
    Hope this helps you.
    Cheers,
    Ravi.

  • Run time error : TSV_TNEW_PAGE_ALLOC_FAILED report RSEIDOC2 in SELECT_EDIDC

    Hi All,
    We are getting a run time error with the text "No more storage space available for extending an internal table."
    tcode executedd is we02.
    kindly let me know if anyone has come acrossed this kind of error.
    pointers will be appreciated

    Hi Srikanth,
    I have not come across this error. But lets see if we can solve this. Kindly let me know when you are getting this run time error.
    It seems to be a memory allocation issue, with some IDOC processing.
    Also, check the below given link, if it is of any help to you.
    Link: [function module;.
    Best Regards,
    Ram.
    Edited by: ram Kumar on Dec 3, 2008 3:14 PM

Maybe you are looking for

  • My itunes won't update; therefore, I can't sync my music to iphone

    When I open itunes, a message pops up that there is an updated version and asks me if I want to download it.  I click download, the message disappears, and then nothing.  I currently have version 11.04.4.  When I try to sync my iphone with itunes, it

  • Can you share PDF documents using iTunes home sharing?

    Can you share several PDF documents in the books section of iTunes to another computer using iTunes home sharing

  • Warnings while compiling and something for the wish list

    Just now and then when I try to compile one of my packages I get the following warning: Warning(95,29): PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW. Of course, 95 and 29 are the line and column numbers for me to

  • Backup fail? factory reset? HELP!?

    Hi all, I had to do a factory reset today so I did a backup beforehand. I did the reset to "as a new phone" then I did a second restore "from backup". Problem is that my backup couldnt have worked and I have 2 phone numbers and a random collection of

  • Adding timezone metadata that Aperture will recognize on import

    I have 3,200 scanned photos, and a spreadsheet with the time, date and timezone of each one on it (my APS photos, 1997~2004), and I have been making exiftool scripts to write the time and date into each file. However, I have been unable to make the t