Report running endlessly

I Have a custmized costing analysis report that we run in my company at the end of every month.
Below is the costing query
SELECT ASG.assignment_number,
xxoando_general.decode_person_name(ASG.person_id) full_name,
          to_date('31-OCT-2009') earning_date,
ASG.person_id,
     ELEMENT_NAME,
     PPC.payroll_id,
     DECODE(NVL(CST.segment1,'NULL'),'NULL','',CST.segment1 ) ||
     DECODE(NVL(CST.segment2,'NULL'),'NULL','','-' || CST.segment2 )||
     DECODE(NVL(CST.segment3,'NULL'),'NULL','','-' || CST.segment3 )||
     DECODE(NVL(CST.segment4,'NULL'),'NULL','','-' || CST.segment4 )||
     DECODE(NVL(CST.segment5,'NULL'),'NULL','','-' || CST.segment5 )||
     DECODE(NVL(CST.segment6,'NULL'),'NULL','','-' || CST.segment6 )||
     DECODE(NVL(CST.segment7,'NULL'),'NULL','','-' || CST.segment7 )||
     DECODE(NVL(CST.segment8,'NULL'),'NULL','','-' || CST.segment8 )||
     DECODE(NVL(CST.segment9,'NULL'),'NULL','','-' || CST.segment9 ) account,
     DECODE(debit_or_credit,'Debit',COSTED_VALUE,0) debit,
     DECODE(debit_or_credit,'Credit',COSTED_VALUE,0) credit,
     papf.payroll_name
FROM pay_costs_v,
     pay_assignment_actions ACT,
     pay_payroll_actions PPC,
     per_assignments_f ASG,
     pay_cost_allocation_keyflex CST,
     pay_all_payrolls_f papf
WHERE ACT.assignment_id = ASG.assignment_id
AND papf.payroll_id = ppc.payroll_id
AND sysdate between papf.effective_start_date and papf.effective_end_date
AND papf.payroll_name != 'Dummy Payroll'
AND ACT.payroll_action_id = PPC.payroll_action_id
AND CST.cost_allocation_keyflex_id = pay_costs_v.cost_allocation_keyflex_id
AND ACT.assignment_action_id = PAY_COSTS_V.ASSIGNMENT_ACTION_ID
AND to_date('31-OCT-2009') BETWEEN ASG.effective_start_date AND ASG.effective_end_date
AND TRUNC(PPC.effective_date)=to_date('31-OCT-2009')
AND EXISTS ( SELECT NULL
FROM pay_run_result_values RRV, pay_run_results RRS
WHERE RRV.run_result_id = RRS.run_result_id
AND RRV.run_result_id = PAY_COSTS_V.RUN_RESULT_ID
AND RRV.input_value_id = PAY_COSTS_V.INPUT_VALUE_ID)
AND to_date('31-OCT-2009') BETWEEN ele_effective_start_date AND ele_effective_end_date
AND to_date('31-OCT-2009') BETWEEN inv_effective_start_date and inv_effective_end_date
AND SEGMENT1 IS NOT NULL
AND PPC.payroll_id = 82
order by ASG.assignment_number;
After the submission of the report, the status will only show normal with phase running for a long period of time without completion. Is there anybody in the house that could help me out?
Thanks.

Welcome to the forums !
Pl post your full OS and EBS versions, along with the explain plan for the above query. Are database statistics up-to-date ? Pl enable trace on the concurrent program as per MOS Doc 296559.1 (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12) and post the output of the tkprof file.
HTH
Srini

Similar Messages

  • Before Report Trigger Running Endlessly

    Hi all,
    I got the following query in my before report trigger. But the system is running endlessly without stop. Any advise is appreciated.
    function AfterReport return boolean is
    begin
    delete chart_temp;
    COMMIT;
    IF :P_1 IS NOT NULL THEN
         INSERT INTO CHART_TEMP VALUES ( :PERIOD1, :M1 );
    ELSE
    IF :P_2 IS NOT NULL THEN
    INSERT INTO CHART_TEMP VALUES ( :PERIOD2, :M2 );
    END IF;
    END IF;
    COMMIT;
    return (TRUE);
    end;
    rgds
    Lim

    Rules-wise, you have the beforeReport trigger before the dataStructure, and that is correct. Syntax, the parameter is going in okay. Question is then the logic or data. Does the function work outside of this? That is, if you were to exec the function in an anonymous block of PL/SQL, do you get the desired output (i.e., test for boolean value returned)?

  • Unused Objects Content Report runs forever

    Dear Portal Gurus
    we have a lot of content in our portal (thousands of objects created by us)
    The main part is from uploading the ERP Roles into the portal.
    Our guess is, that quite a bit is not used at all.
    It seems that the two "Unused Objects" reports in the support platform are a good starting point for cleaning up.
    When i run the Unused Objects - not assigned to Roles report on one server node, it takes forever (is running more than 24 hours)
    Does anybody else have this problem too?
    Is there a way to get a result anyway?
    I ran the Broken Delta Links Detector before, which runs successfully - even though not very fast. So these reports run in general.
    We have NW 7.0 SPS 14.
    Thanks in advance for your help and best Regards
    Martin

    Hello Michael
    Thank you for your reply.
    Personalization is mainly disabled in our portal.
    In general the deltalinks were used correctly i think.
    Of course broken delatalinks should not exist, but they get created by deleting objects not by creating deltalinks.
    I'll try it with a call.
    Kind Regards
    Martin

  • Discoverer Report run by the Pastoral Board called: Registered Lessees

    Dear Friends,
    There is a report run by the Pastoral Board called: Registered Lessees
    DOL PN PLBU DATA ENTRY
    DRDL Pastoral Station Information
    Registered Lessees
    This report lists the information containted within the Pastoral stations module.
    The pastoral stations module is linked to our Customer creation module.
    We are having an issue, whenever we create a new customer or amend one, the information is dropping of the Pastoral Stations module
    Your help would be appreciated.
    Thanks a lot in advance
    Siva charan

    Hi
    The problem i sthat the function in the custom folder evaluated by the Oracle fisrt and after that are evaluated the functions which sets the global variables from the parameters.
    So if you open the workbook nothing selected but the global variables has set and the next time you got the result with the previos parameters.
    If you change the parameters it wouldn't change the result set only if you refresh it again without changing the parameters.
    This is not a good solution for using parameters in custom folders. As I know there is no good solution for this problem yet.
    Ott Karesz
    http://www.trendo-kft.hu

  • Report runs in Report Builder but hangs in Report Server

    Hi,
    I am using Oracle Reports 10g to build a report with many formula columns. Everything was working perfectly till I added some condition in a query in formula columns. After adding it, report is not working in Report Server but runs only in Report Builder. If I removed this condition, report runs OK but I need it. This condition is very simple, just filtering be a decoded column (i.e. stts = 'D')
    Can anyone suggest how to solve this problem?

    Hi,
    what is the application server version you are running your reports on?
    If it is 10.1.2.0.2 to 10.1.2.2  and you are using PDF SUBSETTING (check the [PDF:Subset] section in the uifont.ali file in your server) then you are most probably facing Bug:5029259 . To resolve the issue read further Doc ID 363868.1 in Oracle Support. In short, your options are:
    1. apply patchset 10.1.2.3 or maybe patch 5029259 is enough.
    2. or make sure no NULL values are returned in the report. Use nvl where possible. If there was no problem before making the changes then maybe checking the new formula columns would be enough. I made this change myself when facing this issue and it appears that this resolved the problem.
    3. or change REPORTS_ENHANCED_SUBSET to NO in windows registry if under windows or $ORACLE_HOME/bin/reports.sh if under linux.  REPORTS_ENHANCED_SUBSET=YES is necessary if you are using TTF subsetting, though. So this might not be an option.
    Julius Z

  • Error when OO ALV report run in background

    Hello all,
    We recently applied stack 12 for a 7.0 system.  My custom ALV report using CL_GUI_CUSTOM_CONTAINER coding now returns an error when run in Background.  It works fine in dialog.
    The error occurred in program CL_GUI_CUSTOM_CONTAINER=======CP.  The log message was "Control Framework: Fatal error - GUI cannot be reached".
    Is there a solution for OO ALV reports run in the background?  I would not like to re-write my ALV reports using the function call.  Any advice is appreciated.  Thanks!!

    Yes, you need to code it a little differently, but you can still use CL_GUI_ALV_GRID.  Here is an example. 
    REPORT ZRICH_0006 .
    DATA: ITAB TYPE TABLE OF MARA.
    DATA: R_GRID TYPE REF TO CL_GUI_ALV_GRID.
    DATA: R_CONTROL TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: G_DOCK TYPE REF TO CL_GUI_DOCKING_CONTAINER.
    DATA: OKCODE type sy-ucomm.
    START-OF-SELECTION.
      SELECT * FROM MARA INTO TABLE ITAB  up to 100 rows.
      CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    * text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '0100'.
      SET TITLEBAR '0100'.
      IF R_CONTROL IS INITIAL.
    * Check whether the program is run in batch or foreground
        IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
    * Run in foreground
          CREATE OBJECT R_CONTROL EXPORTING CONTAINER_NAME = 'CONTAINER_1'.
          CREATE OBJECT R_GRID EXPORTING I_PARENT = R_CONTROL.
        ELSE.
    * Run in background
          CREATE OBJECT R_GRID EXPORTING I_PARENT = G_DOCK.
        ENDIF.
        CALL METHOD R_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
        I_STRUCTURE_NAME = 'MARA'
        CHANGING
        IT_OUTTAB = ITAB.
      ENDIF.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
    * text
    MODULE USER_COMMAND_0100 INPUT.
      CASE OKCODE.
        WHEN 'BACK'.
          leave program.
      ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    Regards,
    Rich Heilman

  • Crash report runs a long time after startup

    Crash report runs for about 1-1/2 hour after startup.

    did you check how much time the entire report takes to execute (evn though the first 25 rows comes up quickly). I suspect it is > 30 mins.
    OBIEE is not meant as a data dump tool and there is little that could be done. (except better hardware)

  • How can i see Log information of Report Run Time?

    Hi Gurus,
    How can i see Log information of Report Run Time?, till now i am counted report run time manually. Is there any way i can see the workbook running time in log information?.
    Thanks & Regards
    Vikram

    There could be a few things -
    At one time, you needed to run a separate script to create the tables. I'm not sure that is still the case. If you check the Administrators guide, look into the chapter that deals with the EUL Status Workbooks.
    If you are not logged on as the eul owner, you may not have select privileges, or you may need to qualify the table with the schema (if there is no synonym) - select * from <eul_owner>.EUL5_QPP_STATS;
    If you are on 4i, the table is EUL4_QPP_STATS

  • SSRS reports running slow while fetching data from SQL server DB

    We are currently facing issues with lots of our SSRS reports running very slow. Approx they are taking around 15-20 minutes compared to earlier which was 2-3 minutes.
    Also, the SSRS reports which fetch their data from a Database is acting as Subscriber for a reporting server. That is we have an OLTP DB server whose Database say 'A' is getting replicated onto the server where say Database 'B'. On this B we have our SSRS
    reports fetching the required data and are reported to be running very slow.
    As a start I have checked for Index and stats to be properly updated and yes they are.
    I am not sure now, from where to start analysing the issue.
    I believe replication, not to be the issue as earlier also we had replication set up and never saw the slowness.
    IS memory or IO causing a problem, please help as i am not sure on how to find a fix for this?
    Thanks in advance!

    Hi,
    You need to first find out what all are slow? Is it that the whole instance is slow? How about other queries /replication etc against those databases? Are they slow?
    Check the reports which are slow, try to find the slowest reports and then start looking at execution plans. Check if there is any kind of blocking happening during the time the reports run. Also try running the reports manually and see if there is a difference
    in execution time. Take a look at the waitstats during the time the reports are running.
    Read this to get more better understanding -
    https://technet.microsoft.com/en-us/library/ms177500%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Does BW unicode reports run on Portal 60 SP11, without any problem?

    Hi,
    Does BW unicode reports run on Portal 60 SP11, without any problems?
    Thanks,

    Hi,
    Does BW unicode reports run on Portal 60 SP11, without any problems?
    Thanks,

  • How We Can Change Page Size During Report Run Time

    Hello !
    How We Can Change Page Size During Report Run Time .
    How can we stop to change the column name when we amend a sql in report data model.
    Thanks !
    null

    hello sohail
    1. question - i'm afraid this cannot be done ... bit in report 6 and newer you have posibility to divide your report in 3 parts (former header, body, trailor) and each part can have diferent page siz, orientation , ...
    2. question - best is give each column in your statements in one report diferent alias. when you have to chnge something, alias will remain same ...
    try this: select 1 as fist_column, 1 as second_column from dual
    hope this helsp

  • CR2008 report runs in designer but fails when deployed

    Hi,
    I have a report that was originally developed in CR XI. It worked perfectly fine in CRS XI also. We upgraded the server to CRS2008. But my report does not run on the server now. It gives the error "Invalid field name". However, the report runs fine when run from CR 2008 developer, CR XI and CRS XI. It gives the error when run from CRS2008 or run via a dot.net application.
    Any help to resolve this issue is highly appreciated.
    Thanks.

    Hi Bin,
    Post your question in SDK forum.
    [NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio;
    With following details:
    Have you applied any service pack for Crystal Reports?
    Visual studio version?
    Windows or web application?
    Operating system?
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all SDK queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Shweta

  • Oracle 10g Reports running slow

    On one server we have an issue with some reports of 2pages taking 2 minutes or more to run, but on another server with the same data transferred across the same report runs in about 3-5 seconds.
    The reports we are having issues with contain graphs.
    The server spec is better on the slower running report server than the other report server.
    How can I fix this?

    Hi,
    did you any exceptions you in the logs of report server??
    Location:
    $ORACLE_HOME/reports/logs/ <report_server> / .
    Remove a trace,when your executing the graphical report.
    It would help you to finding why the report is taking so much time
    please follow the below link for tracing the reports in OAS 10g
    http://docs.oracle.com/cd/B2501608/doc/dl/bi/B14048_02/B14048_02.pdf_
    Regards
    Fabian

  • Oracle report runs correctly via report builder but call report via form with parameters skips one of the plsql formula

    Hello everybody,
    I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinfo +total receipts-total payments). reports runs correctly via report builder. balances are ok. but the problem is when i run this report via oracle form opening balance return only ope from table bankinfo and skips total receipts-total payments.....
    i dont think so why this happend at all. some body help me...
    thanks
    Abdul Salam

    Hi ,
    This community is to discuss Oracle Application Server specific issues, you can post this query in for better response:
    Oracle Reports (MOSC)
    Regards,
    Prakash.

  • Report runs fine from CR 2008 Developer, but will not run once published

    I have BO RAS12 (version 12.3.0.601) installed on a Win2008 machine.  This is the "backbone" for a proprietary Reporting Suite for a Lawson ERP system.
    I have one report that takes awhile to generate due to the number of records and complex summaries and grouping.
    This report runs fine in the CR Developer on the server, but once I publish it and try to view with data refresh, it throws an 'Internal Server Error'.
    I don't think this is a timeout problem as it throws this error within 5 minutes of attempted generation.  To make matters worse, nothing is logged anywhere when it fails.
    I know that this doesn't give much to go on, but any ideas?

    i had the problem quite often, since i always forgot to tag the UI capabilities of my transaction.
    There are several problems with your transaction that COULD be the reason.
    Make sure the gui for windows is tagged.
    Then, if first what you show is a selection screen, make sure the transaction type is the right one "reporttransaction (Programm and selection screen)".

Maybe you are looking for

  • App-V Client on Windows Server 2012

    Hi all, Could you please tell me if Microsoft support running the APP-V Client on a Windows Server 2012 image bundled as Windows 8 in a VDI solution? Regards, Mark

  • Can't open iTunes 7.5??

    I recently downloaded itunes 7.5 and now when I attempt to open itunes I get a message saying "iTunes requires Mac OS X 10.4.7 or later. For more information on upgrading your computer visit www.apple.com/macosx." I don't want to upgrade and now I ca

  • Mail attachments won't open in iPad Air-- what do I do?

    Nothing happens when I tap on an attachment, or the little box may briefly say, "Downloading," then go back to doing nothing. Also, when I press and hold, no options pop up for opening the file. HELP!

  • AutoCAD

    AutoCAD is the essential software for the business users. Basically civil construction field. If anybody have the idea of Autocad software either reader or editor, availability prise please leave your important suggestions here and/or discussion here

  • Intelligent Agent - No jobs...

    Trying to schedule a DB dump, and all I get is: VNI-2015 : authentication error The snmp user is the default user. The credentials in OEM are set as SYS Never found 'VNI-2015' in the error lists. Any hints? Thanks, Ricardo