Report Taking Long time Results time out error.

Hi Gurus.
We have a report called Material Variances...
When my user is executing the report its taking morethan 40 mins and resulting in error " Time Out Error ".
But when we executing the report with same selections its opening in 5 mins.
can any one has faced the same issue...
Thanks in advance for your replies.
Regards.
Cna

Hi,
You can check InfoCube 0TCT_C02. It will provide information about the execution of the query.
Right click on Infocube -> Display data -> input the query you want to check in field Query runtime Object->Input the user that executed the query and faces problems
The Infocube will display information about the query execution like how long the database selection took, how long the OLAP processor lasted, etc.
Important:
BI Statistics have to be activeted in the system in order fot the Infocube to display data
Regards,

Similar Messages

  • SSRS Reports taking long time to load

    Hello,
    Problem : SSRS Reports taking long time to load
    My System environment : Visual Studio 2008 SP1  and SQL Server 2008 R2
    Production Environment : Visual Studio 2008 SP1  and SQL Server 2008 R2
    I have created a Parameterized report (6 parameters), it will fetch data from 1 table. table has 1 year and 6 months data,      I am selecting parameters for only 1 month (about 2500 records). It is taking almost 2 minutes and 30 seconds
    to load the report.
    This report running efficiently in my system (report load takes only 5 to 6 seconds) but in
    production it is taking 2 minutes 30 seconds.
    I have checked the Execution log from production so I found the timing for
    Data retrieval (approx~)       Processing (approx~)               Rendering (approx~)
    10 second                                      15 sec                        
                2 mins and 5 sec.
    But Confusing point is that , if I run the same report at different time overall output time is same (approx) 2 min 30 sec but
    Data retrieval (approx~)       Processing (approx~)                Rendering (approx~)
    more than 1 min                            15 sec                                     
    more than 1 min
    so 1 question why timings are different ?
    My doubts are
    1) If query(procedure to retrieve the data) is the problem then it should take more time always,
    2) If Report structure is problem then rendering will also take same time (long time)
    for this (2nd point) I checked on blog that Rendering depends on environment structure e.g. Network bandwidth, RAM, CPU Usage , Number of users accessing same report at a time.
    So I did testing of report when no other user working on any report But failed (same result  output is 2 min 30 sec)
    From network team I got the result is that there is no issue or overload in CPU usage or RAM also No issue in Network bandwidth.
    Production Database Server and Report server are different (but in same network).
    I checked that database server the SQL Server is using almost Full RAM (23 GB out of 24 GB)
    I tried to allocate the memory to less amount up to 2GB (Trial solution I got from Blogs) but this on also failed.
    one hint I got from colleague that , change the allocated memory setting from static memory to dynamic to SQL Server
    (I guess above point is the same) I could not find that option Static and Dynamic memory setting.
    I did below steps
    Connected to SQL Server Instance
    Right click on Instance go to properties, Go to Memory Tab
    I found three options 1) Server Memory   2) Other memory   3) Section for "Configured values and Running values"
    Then I tried to reduce Maximum  Server memory up to 2 GB (As mentioned above)
    All trials failed, this issue I could not find the roots for this issue.
    Can anyone please help (it's bit urgent).

    Hi UdayKGR,
    According to your description, your report takes too long to load on your production environment. Right?
    In this scenario, since the report runs quickly in developing environment, we initially think it supposed to be the issue on data retrieval. However, based on the information in execution log, it takes longest time on rendering part. So we suggest you optimize
    the report itself to reduce the time for rendering. Please refer to the link below:
    My report takes too long to render
    Here is another article about overall performance optimization for Reporting Services:
    Reporting Services Performance and Optimization
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Report Taking long time in QA system

    Gurus,
    I have developed a report which works fine in dev.Though in QA system its performance is not okay.Please go through th ecode and help me through.
    TABLES: REGUH,BSAK,BSIS,LFA1,LFB1,BSAS.
    ****    Internal table declaration starts.
    ***    To Store Vendor clearing Document.
    ***    Internal table for credit card sub total.
    DATA : BEGIN OF I_BSAK OCCURS 0,
           XBLNR LIKE BSAK-XBLNR,
           LIFNR LIKE REGUH-LIFNR,
           PRCTR LIKE BSEG-PRCTR,
           NAME1 LIKE LFA1-NAME1,
           AUGDT LIKE BSAK-AUGDT,
           AUGBL LIKE BSAK-AUGBL,
           XBLNR1 LIKE BSAK-XBLNR,
           GJAHR LIKE BSAK-GJAHR,
           BELNR LIKE BSAK-BELNR,
           BLDAT LIKE BSAK-BLDAT,
           BLART LIKE BSAK-BLART,
           SHKZG LIKE BSAK-SHKZG,
           DMBTR LIKE BSAK-DMBTR,
           AUGGJ LIKE BSAK-AUGGJ,
           CPUDT LIKE BSAK-CPUDT,
           LAUFD LIKE REGUH-LAUFD,
           KTOKK LIKE LFA1-KTOKK,
           RWBTR LIKE REGUH-RWBTR,
           VBLNR LIKE REGUH-VBLNR,
           HKONT LIKE BSEG-HKONT,
           END OF I_BSAK.
    ***    Internal table for Vendor sub total.
    DATA : BEGIN OF I_BSAK_LIFNR OCCURS 0,
           LIFNR LIKE REGUH-LIFNR,
           XBLNR LIKE BSAK-XBLNR,
           PRCTR LIKE BSEG-PRCTR,
           NAME1 LIKE LFA1-NAME1,
           AUGDT LIKE BSAK-AUGDT,
           AUGBL LIKE BSAK-AUGBL,
           XBLNR1 LIKE BSAK-XBLNR,
           GJAHR LIKE BSAK-GJAHR,
           BELNR LIKE BSAK-BELNR,
           BLDAT LIKE BSAK-BLDAT,
           BLART LIKE BSAK-BLART,
           SHKZG LIKE BSAK-SHKZG,
           DMBTR LIKE BSAK-DMBTR,
           AUGGJ LIKE BSAK-AUGGJ,
           CPUDT LIKE BSAK-CPUDT,
           LAUFD LIKE REGUH-LAUFD,
           KTOKK LIKE LFA1-KTOKK,
           RWBTR LIKE REGUH-RWBTR,
           VBLNR LIKE REGUH-VBLNR,
           HKONT LIKE BSEG-HKONT,
           END OF I_BSAK_LIFNR.
    ***    Internal table for Profit center sub total.
    DATA : BEGIN OF I_BSAK_PRCTR OCCURS 0,
           PRCTR LIKE BSEG-PRCTR,
           BELNR LIKE BSAK-BELNR,
           GJAHR LIKE BSAK-GJAHR,
           LIFNR LIKE REGUH-LIFNR,
           XBLNR LIKE BSAK-XBLNR,
           HKONT LIKE BSEG-HKONT,
           NAME1 LIKE LFA1-NAME1,
           AUGDT LIKE BSAK-AUGDT,
           AUGBL LIKE BSAK-AUGBL,
           XBLNR1 LIKE BSAK-XBLNR,
           BLDAT LIKE BSAK-BLDAT,
           BLART LIKE BSAK-BLART,
           SHKZG LIKE BSAK-SHKZG,
           DMBTR LIKE BSAK-DMBTR,
           AUGGJ LIKE BSAK-AUGGJ,
           CPUDT LIKE BSAK-CPUDT,
           LAUFD LIKE REGUH-LAUFD,
           KTOKK LIKE LFA1-KTOKK,
           RWBTR LIKE REGUH-RWBTR,
           VBLNR LIKE REGUH-VBLNR,
           END OF I_BSAK_PRCTR.
    ***  Work area for sub totals.
    DATA: WA LIKE I_BSAK.
    DATA : I_BSAK_INIT LIKE I_BSAK OCCURS 0 WITH HEADER LINE.
    ***    To store line item.
    DATA : BEGIN OF I_BSEG OCCURS 0,
           BELNR LIKE BSEG-BELNR,
           GJAHR LIKE BSEG-GJAHR,
           BUZEI LIKE BSEG-BUZEI,
           HKONT LIKE BSEG-HKONT,
           SHKZG LIKE BSEG-SHKZG,
           DMBTR LIKE BSEG-DMBTR,
           PRCTR LIKE BSEG-PRCTR,
           LIFNR LIKE REGUH-LIFNR,
           AUGDT LIKE BSAK-AUGDT,
           AUGBL LIKE BSAK-AUGBL,
           XBLNR LIKE BSAK-XBLNR,
           XBLNR1 LIKE BSAK-XBLNR,
           BLDAT LIKE BSAK-BLDAT,
           BLART LIKE BSAK-BLART,
           NAME1 LIKE LFA1-NAME1,
           END OF I_BSEG.
    DATA : BEGIN OF I_BSEG_COPY OCCURS 0,
          PRCTR LIKE BSEG-PRCTR,
          BELNR LIKE BSEG-BELNR,
          GJAHR LIKE BSEG-GJAHR,
          BUZEI LIKE BSEG-BUZEI,
          HKONT LIKE BSEG-HKONT,
          SHKZG LIKE BSEG-SHKZG,
          DMBTR LIKE BSEG-DMBTR,
          LIFNR LIKE REGUH-LIFNR,
          AUGDT LIKE BSAK-AUGDT,
          AUGBL LIKE BSAK-AUGBL,
          XBLNR LIKE BSAK-XBLNR,
          XBLNR1 LIKE BSAK-XBLNR,
          BLDAT LIKE BSAK-BLDAT,
          BLART LIKE BSAK-BLART,
          NAME1 LIKE LFA1-NAME1,
          END OF I_BSEG_COPY.
    ***    To store GL account name
    DATA: BEGIN OF I_SKAT OCCURS 0,
          SAKNR LIKE SKAT-SAKNR,
          TXT50 LIKE SKAT-TXT50,
          END OF I_SKAT.
    ***   To store Vendor detail
    DATA: BEGIN OF I_LFA1 OCCURS 0,
          LIFNR LIKE LFA1-LIFNR,
          NAME1 LIKE LFA1-NAME1,
          KTOKK LIKE LFA1-KTOKK,
          END OF I_LFA1.
    DATA: I_INACT TYPE TABLE OF SY-UCOMM.
    ***  End of Internal table declaration.
    ***  Constant for company code
    CONSTANTS : C_BUKRS(4) VALUE '0010'.
    ***  Data declaration.
    DATA: FR_LAUFDT LIKE REGUH-LAUFD,
          TO_LAUFDT LIKE REGUH-LAUFD,
          COL,
          HEADING(80),
          HEADING1(10),
          HEADING2(80),
          AUTH_RESTRICT,
          G_DETAIL,
          G_SORTV,
          G_SORTP,
          G_SORTC,
          G_FLAG,
          V_XBLNR LIKE BSAK-XBLNR,
          V_UCOMM LIKE SY-UCOMM,
          V_AUGBL LIKE BSAS-AUGBL,
          V_BELNR LIKE BSAS-BELNR.
    DATA : BEGIN OF I_SEL OCCURS 0 ,
           AUGBL LIKE BSAK-AUGBL,
           END OF I_SEL.
    DATA: PROGNAME TYPE SY-REPID,
          DYNNUM   TYPE SY-DYNNR,
          DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
          FIELD_VALUE LIKE LINE OF DYNPRO_VALUES,
          VALUES_TAB LIKE I_SEL OCCURS 0 WITH HEADER LINE.
    DATA : RETURN_TAB LIKE  DDSHRETVAL OCCURS 0 WITH HEADER LINE.
    ***  Selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) TXT_PD FOR FIELD P_LAUFDF.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS P_LAUFDF LIKE REGUH-LAUFD OBLIGATORY.
    SELECTION-SCREEN COMMENT 52(5) TXT_TO FOR FIELD P_LAUFDT.
    SELECTION-SCREEN POSITION POS_HIGH.
    PARAMETERS P_LAUFDT LIKE REGUH-LAUFD.
    SELECTION-SCREEN END OF LINE.
    SELECT-OPTIONS: S_KTOKK FOR LFA1-KTOKK.
    PARAMETERS: P_RWBTR LIKE REGUH-RWBTR.
    SELECT-OPTIONS: S_LIFNR FOR REGUH-LIFNR.
    * S_XBLNR FOR BSAK-XBLNR MATCHCODE OBJECT ZXBLNR.
    **** Added By Rajesh On 17 OCT 08 (DEVK914797) ****
    SELECT-OPTIONS: S_BELNR  FOR BSAK-BELNR.
    **** End of Addition By Rajesh *****
    *** Added By Samir On 04 Sep 08 (DEVK914623) ***
    SELECTION-SCREEN SKIP.
    PARAMETERS: CHK_REC AS CHECKBOX.
    *** End Of Addition By Samir ***
    SELECTION-SCREEN END OF BLOCK B1.
    ***  Initialization.
    INITIALIZATION.
      TXT_PD = 'Payment Date'.
      TXT_TO = 'to' .
      G_SORTC = 'X'.
    ***  At selection-screen.
    AT SELECTION-SCREEN.
      FR_LAUFDT =  P_LAUFDF.
      IF P_LAUFDT IS INITIAL.
        TO_LAUFDT = FR_LAUFDT.
      ELSE.
        IF P_LAUFDT LT P_LAUFDF.
          MESSAGE E000(ZMSG) WITH 'To Date is less than From date'.
        ENDIF.
        TO_LAUFDT = P_LAUFDT.
      ENDIF.
    ***  Heading.
      WRITE FR_LAUFDT TO HEADING1.
      WRITE TO_LAUFDT TO HEADING2.
      IF HEADING1 <> HEADING2.
        CONCATENATE 'Vendor Credit Card(s) Report for the Payment Date'
        HEADING1 'To' HEADING2 INTO HEADING2 SEPARATED BY SPACE.
      ELSE.
        CONCATENATE 'Vendor Credit Card(s) Report for the Payment Date'
        HEADING1 INTO HEADING2 SEPARATED BY SPACE.
      ENDIF.
    ***  Start of selection.
    START-OF-SELECTION.
      G_DETAIL = 'X'.
      PERFORM GET_DATA.
      PERFORM MODIFY_ITAB.                          "Process and for authority check.
    *** Added By Samir On 04 Sep 08 (DEVK914623) ***
    **** Changed By Rajesh On 17 OCT 08 (DEVK914797) ****
      IF CHK_REC = 'X'.
        LOOP AT I_BSAK.
          SELECT SINGLE BELNR
          INTO   V_BELNR
          FROM   BSAS
          WHERE  BUKRS = C_BUKRS
            AND  HKONT = '0000002012'
            AND  BELNR = I_BSAK-AUGBL
            AND  BUDAT = I_BSAK-AUGDT
            AND  BELNR IN S_BELNR.               " For displaying only reconciled items.
    **** End of Addition By Rajesh *****
          IF SY-SUBRC <> 0.
            DELETE I_BSAK.
          ENDIF.
        ENDLOOP.
      ENDIF.
    *** End Of Addition By Samir ***
      LOOP AT I_BSAK.
        MOVE-CORRESPONDING I_BSAK TO: I_BSAK_LIFNR.
        APPEND: I_BSAK_LIFNR.
        CLEAR:  I_BSAK_LIFNR.
      ENDLOOP.
      LOOP AT I_BSAK.
        MOVE-CORRESPONDING I_BSAK TO: I_BSAK_PRCTR.
        READ TABLE I_BSEG WITH KEY BELNR = I_BSAK-BELNR.
        I_BSAK_PRCTR-HKONT = I_BSEG-HKONT.
        APPEND: I_BSAK_PRCTR.
        CLEAR:  I_BSAK_PRCTR.
      ENDLOOP.
    *loop at i_bseg.
    *   MOVE-CORRESPONDING I_BSAK TO: I_BSAK_PRCTR.
    *endloop.
    *perform write_data.
      PERFORM DISPLAY_OUTPUT.
    AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'EXPA'.
          G_DETAIL = 'X'.
        WHEN 'COLL'.
          CLEAR G_DETAIL.
        WHEN 'SORTV'.
          CLEAR: V_UCOMM.
          V_UCOMM = 'SORTV'.
          G_SORTV = 'X'.
          CLEAR G_SORTP.
          CLEAR G_SORTC.
        WHEN 'SORTC'.
          CLEAR: V_UCOMM.
          V_UCOMM = 'SORTC'.
          CLEAR G_SORTV.
          CLEAR G_SORTP.
          G_SORTC = 'X'.
        WHEN 'SORTP'.
          CLEAR: V_UCOMM.
          V_UCOMM = 'SORTP'.
          CLEAR G_SORTV.
          CLEAR G_SORTC.
          G_SORTP = 'X'.
      ENDCASE.
      PERFORM DISPLAY_OUTPUT.
    *perform write_data.
    ***  To get the header text in the output.
    TOP-OF-PAGE.
      PERFORM TOP_OF_PAGE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      PERFORM TOP_OF_PAGE.
    *&      Form  GET_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_DATA .
      SY-LSIND = 0.
      P_RWBTR = P_RWBTR * -1.
      REFRESH I_BSAK_INIT.
      CLEAR I_BSAK_INIT.
      SELECT A~LIFNR A~LAUFD A~VBLNR A~RWBTR
              B~KTOKK B~NAME1
                FROM REGUH AS A INNER JOIN LFA1 AS B
                ON   A~LIFNR = B~LIFNR
                INTO CORRESPONDING FIELDS OF TABLE I_BSAK_INIT
                WHERE A~LAUFD BETWEEN FR_LAUFDT AND TO_LAUFDT AND
                      A~XVORL <> 'X' AND
                      A~ZBUKR = C_BUKRS  AND
                      A~LIFNR IN S_LIFNR AND
                      A~RZAWE = 'X' AND
                      A~RWBTR LE P_RWBTR AND
                      B~KTOKK IN S_KTOKK.
      IF SY-SUBRC <> 0.
        MESSAGE 'Records Not Found' TYPE 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    *---------------------PERFORMANCE ISSUE--------------------------
    delete adjacent duplicates from i_bsak_init.
      IF NOT I_BSAK_INIT[] IS INITIAL.
       SELECT LIFNR AUGDT AUGBL GJAHR BELNR CPUDT BLDAT XBLNR
               BLART SHKZG DMBTR AUGGJ
                  FROM BSAK
                  INTO CORRESPONDING FIELDS OF TABLE I_BSAK
                  FOR ALL ENTRIES IN I_BSAK_INIT
                  WHERE BUKRS = C_BUKRS  AND
                  AUGBL = I_BSAK_INIT-VBLNR AND
                  XZAHL <> 'X'.
      ENDIF.
    ***  Selecting all line item records from BSEG table.
      IF I_BSAK[] IS NOT INITIAL.
        SELECT BELNR GJAHR BUZEI HKONT SHKZG DMBTR PRCTR
               FROM BSEG
               INTO CORRESPONDING FIELDS OF TABLE I_BSEG
               FOR ALL ENTRIES IN I_BSAK
               WHERE BUKRS = C_BUKRS      AND
                     BELNR = I_BSAK-BELNR AND
                     GJAHR = I_BSAK-GJAHR AND
                     BELNR <> I_BSAK-AUGBL AND
                     KOART <> 'K'.
      ENDIF.
    ***  Selecting gl account name from SKAT table.
      IF I_BSEG[] IS NOT INITIAL.
        SELECT SAKNR TXT50
               FROM SKAT
               INTO CORRESPONDING FIELDS OF TABLE I_SKAT
               FOR ALL ENTRIES IN I_BSEG
               WHERE SPRAS = 'E'     AND
                     KTOPL = C_BUKRS AND
                     SAKNR = I_BSEG-HKONT.
      ENDIF.
      SORT I_BSAK BY BELNR.
      SORT I_BSAK_INIT BY VBLNR.
      SORT I_BSEG BY BELNR GJAHR.
    *** Selecting Credit Card No. into I_XBLNR table.
      LOOP AT I_BSAK.
        I_BSAK-XBLNR1 = I_BSAK-XBLNR.
        CLEAR: V_XBLNR.
        SELECT SINGLE XBLNR FROM BKPF INTO V_XBLNR
                              WHERE BUKRS = C_BUKRS  AND
                              BELNR = I_BSAK-AUGBL.
        IF SY-SUBRC EQ 0.
          I_BSAK-XBLNR = V_XBLNR.
        ENDIF.
        READ TABLE I_BSEG WITH KEY BELNR = I_BSAK-BELNR
                                   GJAHR = I_BSAK-GJAHR
                                   BINARY SEARCH.
        IF SY-SUBRC EQ 0.
          I_BSAK-PRCTR = I_BSEG-PRCTR.
        ENDIF.
        READ TABLE I_BSAK_INIT WITH KEY VBLNR = I_BSAK-AUGBL BINARY SEARCH.
        IF SY-SUBRC EQ 0.
          I_BSAK-NAME1 = I_BSAK_INIT-NAME1.
          I_BSAK-LAUFD = I_BSAK_INIT-LAUFD.
          I_BSAK-KTOKK = I_BSAK_INIT-KTOKK.
        ENDIF.
        MODIFY I_BSAK TRANSPORTING XBLNR XBLNR1 PRCTR NAME1 LAUFD KTOKK.
      ENDLOOP.
    ENDFORM.                    " GET_DATA
    *&      Form  MODIFY_ITAB
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM MODIFY_ITAB .
    ***  Process on internal table
      LOOP AT I_BSAK.
        AUTHORITY-CHECK OBJECT 'F_LFA1_GRP'
                             ID 'KTOKK'
                          FIELD I_BSAK-KTOKK.
        IF SY-SUBRC NE 0.
          DELETE I_BSAK WHERE KTOKK EQ I_BSAK-KTOKK.
          AUTH_RESTRICT = 'X'.
          CONTINUE.
        ENDIF.
      ENDLOOP.
      IF AUTH_RESTRICT EQ 'X'.
        MESSAGE S005(ZMSG).
      ENDIF.
      LOOP AT I_BSAK.
        IF I_BSAK-SHKZG = 'S'.
          I_BSAK-DMBTR = I_BSAK-DMBTR * -1.
          MODIFY I_BSAK .
        ENDIF.
      ENDLOOP.
      LOOP AT I_BSEG.
        IF I_BSEG-SHKZG = 'H'.
          I_BSEG-DMBTR = I_BSEG-DMBTR * -1.
          MODIFY I_BSEG .
        ENDIF.
      ENDLOOP.
    ***  Default Sorting on internal table .
      SORT I_BSAK BY XBLNR LIFNR BELNR.
      SORT I_BSEG BY BELNR HKONT.
      SORT I_SKAT BY SAKNR.
    ENDFORM.                    " MODIFY_ITAB
    *&      Form  DISPLAY_OUTPUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM DISPLAY_OUTPUT .
    ***  Coding for detail output starts
      CLEAR SY-LSIND.
      REFRESH I_INACT.
      IF G_DETAIL EQ 'X'.
        APPEND 'EXPA' TO I_INACT.
      ELSE.
        APPEND 'COLL' TO I_INACT.
      ENDIF.
      IF G_SORTV EQ 'X'.
        APPEND 'SORTV' TO I_INACT.
        SORT I_BSAK BY LIFNR.
        SORT I_BSAK_LIFNR BY LIFNR.
      ELSEIF G_SORTP EQ 'X'.
        APPEND 'SORTP' TO I_INACT.
        SORT I_BSAK BY PRCTR.
        SORT I_BSAK_PRCTR BY PRCTR.
      ELSE.
        APPEND 'SORTC' TO I_INACT.
        SORT I_BSAK BY XBLNR.
      ENDIF.
      SET PF-STATUS 'STAT' EXCLUDING I_INACT.
      IF V_UCOMM = 'SORTC'.
        PERFORM WRITE_DATA.
      ELSEIF V_UCOMM = 'SORTV' .     "Subroutine for card sub total.
        PERFORM WRITE_DATA_VENDOR.   "Subroutine for vendor sub total.
      ELSEIF V_UCOMM = 'SORTP'.      "Subroutine for profit center sub total.
    *    PERFORM WRITE_DATA_PROFIT.
        PERFORM WRITE_DATA_PROFIT_NEW.  " New subroutine for profit center.
      ELSE.
        PERFORM WRITE_DATA.
      ENDIF.
    ENDFORM.                    " DISPLAY_OUTPUT
    *&      Form  F_COLOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM F_COLOR .
      IF COL = 'X'.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
        CLEAR COL.
      ELSE.
        FORMAT COLOR COL_NORMAL INTENSIFIED ON.
        COL = 'X'.
      ENDIF.
    ENDFORM.                    " F_COLOR
    *&      Form  TOP_OF_PAGE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM TOP_OF_PAGE .
    ***  Top-of-page is Common for summary and detail report.
    ***  To display top of page only on first page.
      IF SY-PAGNO = 1 .
        CALL FUNCTION 'Z_NPL_HEADING'
          EXPORTING
            LINE_SIZE = SY-LINSZ
            HEADING1  = HEADING
            HEADING2  = HEADING2.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
    ****  To get output columns text descprition
        ULINE.
        WRITE:/ SY-VLINE NO-GAP, (10) 'Vendor' NO-GAP,
                SY-VLINE NO-GAP, (35) 'Name of Payee' NO-GAP,
                SY-VLINE NO-GAP, (10) 'G/L Num' NO-GAP,
                SY-VLINE NO-GAP, (42) 'G/L Name' NO-GAP,
                SY-VLINE NO-GAP, (07) 'Profit Center' NO-GAP,
                SY-VLINE NO-GAP, (16) 'Credit Card NO.' NO-GAP,
                SY-VLINE NO-GAP, (10) 'Pmnt Date' NO-GAP,
                SY-VLINE NO-GAP, (08) 'Doc.Type' NO-GAP,
                SY-VLINE NO-GAP, (10) 'Inv.Date' NO-GAP,
                SY-VLINE NO-GAP, (16) 'Invoice' NO-GAP,
                SY-VLINE NO-GAP, (14) 'Amount Paid' NO-GAP,
                SY-VLINE.
        ULINE.
      ENDIF.
    ENDFORM.                    " TOP_OF_PAGE
    *&      Form  WRITE_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM WRITE_DATA .
      LOOP AT I_BSAK.
        CLEAR WA.
        MOVE-CORRESPONDING I_BSAK TO WA.
        PERFORM WRITE.
        AT END OF XBLNR.                             "Card sub total
          IF G_SORTC EQ 'X'.
            SUM.
            IF G_DETAIL EQ 'X'. ULINE. ENDIF.
            FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
            WRITE:/ SY-VLINE NO-GAP, (25) 'Credit Card Total:', I_BSAK-XBLNR ,
                    (35) I_BSAK-NAME1 NO-GAP.
            WRITE: 110 SY-VLINE NO-GAP,(79) I_BSAK-DMBTR NO-GAP
                                             CURRENCY 'USD',SY-VLINE.
            ULINE.
          ENDIF.
        ENDAT.                                     "End of Credit card Detail
    ****  Grand total
        AT LAST.                                   "Grand total
          SUM.
          FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
          WRITE:/ SY-VLINE NO-GAP,(107) 'Grand Total:',
                  SY-VLINE NO-GAP,(79) I_BSAK-DMBTR NO-GAP
                                         CURRENCY 'USD', SY-VLINE.
          ULINE.
        ENDAT.
      ENDLOOP.                                     "End for I_BSAK loop
    ENDFORM.                    " WRITE_DATA
    *&      Form  WRITE_DATA_VENDOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM WRITE_DATA_VENDOR .
      LOOP AT I_BSAK_LIFNR.
        CLEAR WA.
        MOVE-CORRESPONDING I_BSAK_LIFNR TO WA.
        PERFORM WRITE.
        AT END OF LIFNR.                           "Vendor sub Total
          IF G_SORTV EQ 'X'.
            SUM.
            IF G_DETAIL EQ 'X'. ULINE. ENDIF.
            FORMAT COLOR COL_TOTAL INTENSIFIED ON.
            WRITE:/ SY-VLINE NO-GAP,(15) 'Vendor Total:', I_BSAK_LIFNR-LIFNR.
            WRITE: 110 SY-VLINE NO-GAP,(79) I_BSAK_LIFNR-DMBTR NO-GAP
                                             CURRENCY 'USD',SY-VLINE.
            ULINE.
          ENDIF.
        ENDAT.                                     "End of Vendor Total
    ****  Grand total
        AT LAST.                                   "Grand total
          SUM.
          FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
          WRITE:/ SY-VLINE NO-GAP,(107) 'Grand Total:',
                  SY-VLINE NO-GAP,(79) I_BSAK_LIFNR-DMBTR NO-GAP
                                         CURRENCY 'USD', SY-VLINE.
          ULINE.
        ENDAT.
      ENDLOOP.                                     "End for I_BSAK_LIFNR loop
    ENDFORM.                    " WRITE_DATA_VENDOR
    *&      Form  WRITE_DATA_PROFIT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM WRITE_DATA_PROFIT .
    *** Changed By Samir On 18 Sep 08 (DEVK914685) ***
      LOOP AT I_BSAK_PRCTR.
        READ TABLE I_BSAK WITH KEY BELNR = I_BSAK_PRCTR-BELNR
                                   GJAHR = I_BSAK_PRCTR-GJAHR.
        IF SY-SUBRC = 0.
          I_BSAK_PRCTR-LIFNR  = I_BSAK-LIFNR.
          I_BSAK_PRCTR-NAME1  = I_BSAK-NAME1.
          I_BSAK_PRCTR-XBLNR  = I_BSAK-XBLNR.
          I_BSAK_PRCTR-LAUFD  = I_BSAK-LAUFD.
          I_BSAK_PRCTR-BLART  = I_BSAK-BLART.
          I_BSAK_PRCTR-BLDAT  = I_BSAK-BLDAT.
          I_BSAK_PRCTR-XBLNR1 = I_BSAK-XBLNR1.
          MODIFY I_BSAK_PRCTR TRANSPORTING LIFNR NAME1 XBLNR LAUFD BLART BLDAT XBLNR1.
        ENDIF.
      ENDLOOP.
    *** End Of Changes By Samir On 18 Sep 08 ***
      SORT I_BSAK_PRCTR BY PRCTR.
      LOOP AT I_BSAK_PRCTR.
        PERFORM F_COLOR.
        IF G_DETAIL = 'X'.
    *** Changed By Samir On 18 Sep 08 (DEVK914685) ***
          READ TABLE I_SKAT WITH KEY SAKNR = I_BSAK_PRCTR-HKONT BINARY SEARCH.
          WRITE:/ SY-VLINE NO-GAP, (10) I_BSAK_PRCTR-LIFNR NO-GAP,
                  SY-VLINE NO-GAP, (35) I_BSAK_PRCTR-NAME1 NO-GAP,
                  SY-VLINE NO-GAP, (10) I_BSAK_PRCTR-HKONT NO-GAP,
                  SY-VLINE NO-GAP, (42) I_SKAT-TXT50 NO-GAP,
                  SY-VLINE NO-GAP, (07) I_BSAK_PRCTR-PRCTR NO-GAP,
                  SY-VLINE NO-GAP, (16) I_BSAK_PRCTR-XBLNR NO-GAP,     " CREDIT CARD NO.
                  SY-VLINE NO-GAP, (10) I_BSAK_PRCTR-LAUFD NO-GAP,
                  SY-VLINE NO-GAP, (08) I_BSAK_PRCTR-BLART NO-GAP,
                  SY-VLINE NO-GAP, (10) I_BSAK_PRCTR-BLDAT NO-GAP,
                  SY-VLINE NO-GAP, (16) I_BSAK_PRCTR-XBLNR1 NO-GAP.
          WRITE:  SY-VLINE NO-GAP, (14) I_BSAK_PRCTR-DMBTR NO-GAP.
          WRITE:  SY-VLINE.
        ENDIF.
    *** End Of Changes By Samir On 18 Sep 08 ***
        AT END OF PRCTR.                           "Profit Center sub Total
          IF G_SORTP EQ 'X'.
            SUM.
            IF G_DETAIL EQ 'X'. ULINE. ENDIF.
            FORMAT COLOR COL_TOTAL INTENSIFIED ON.
            WRITE:/ SY-VLINE NO-GAP,(07) 'Profit Center Total:', I_BSAK_PRCTR-PRCTR.
            WRITE: 110 SY-VLINE NO-GAP,(79) I_BSAK_PRCTR-DMBTR NO-GAP
                                             CURRENCY 'USD',SY-VLINE.
            ULINE.
          ENDIF.
        ENDAT.                                    "End of Profit Center Total
    ****  Grand total
        AT LAST.                                  "Grand total
          SUM.
          FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
          WRITE:/ SY-VLINE NO-GAP,(107) 'Grand Total:',
                  SY-VLINE NO-GAP,(79) I_BSAK_PRCTR-DMBTR NO-GAP
                                         CURRENCY 'USD', SY-VLINE.
          ULINE.
        ENDAT.
      ENDLOOP.                                     "End for I_BSAK_PRCTR loop
    ENDFORM.                    " WRITE_DATA_PROFIT
    *&      Form  WRITE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM WRITE .
      IF G_DETAIL = 'X'.
        IF WA-KTOKK = 'Z001'.                   " For HR Vendors
          PERFORM F_COLOR.
          READ TABLE I_BSEG WITH KEY BELNR = WA-BELNR GJAHR = WA-GJAHR BINARY SEARCH .
          READ TABLE I_SKAT WITH KEY SAKNR = I_BSEG-HKONT BINARY SEARCH.
          WRITE:/ SY-VLINE NO-GAP, (10) WA-LIFNR NO-GAP,
                  SY-VLINE NO-GAP, (35) WA-NAME1 NO-GAP,
                  SY-VLINE NO-GAP, (10) I_BSEG-HKONT NO-GAP,
                  SY-VLINE NO-GAP, (42) I_SKAT-TXT50 NO-GAP,
    *** Changed By Samir On 18 Sep 08 (DEVK914685) ***
    *             SY-VLINE NO-GAP, (07) WA-PRCTR NO-GAP,
                  SY-VLINE NO-GAP, (07) I_BSEG-PRCTR NO-GAP,
    *** End Of Changes By Samir On 18 Sep 08 ***
                  SY-VLINE NO-GAP, (16) WA-XBLNR NO-GAP,        " CREDIT CARD NO.
                  SY-VLINE NO-GAP, (10) WA-LAUFD NO-GAP,
                  SY-VLINE NO-GAP, (08) WA-BLART NO-GAP,
                  SY-VLINE NO-GAP, (10) WA-BLDAT NO-GAP,
                  SY-VLINE NO-GAP, (16) WA-XBLNR1 NO-GAP.
          WRITE: SY-VLINE NO-GAP, (14) WA-DMBTR NO-GAP.
          WRITE: SY-VLINE.
        ELSE.
          LOOP AT I_BSEG WHERE BELNR = WA-BELNR AND GJAHR = WA-GJAHR .
            PERFORM F_COLOR.
            READ TABLE I_SKAT WITH KEY SAKNR = I_BSEG-HKONT BINARY SEARCH.
            WRITE:/ SY-VLINE NO-GAP, (10) WA-LIFNR NO-GAP,
                    SY-VLINE NO-GAP, (35) WA-NAME1 NO-GAP,
                    SY-VLINE NO-GAP, (10) I_BSEG-HKONT NO-GAP,
                    SY-VLINE NO-GAP, (42) I_SKAT-TXT50 NO-GAP,
    *** Changed By Samir On 17 Sep 08 (DEVK914671) ***
    *               SY-VLINE NO-GAP, (07) WA-PRCTR NO-GAP,
                    SY-VLINE NO-GAP, (07) I_BSEG-PRCTR NO-GAP,
    *** End Of Changes By Samir On 17 Sep 08 ***
                    SY-VLINE NO-GAP, (16) WA-XBLNR NO-GAP,     " CREDIT CARD NO.
                    SY-VLINE NO-GAP, (10) WA-LAUFD NO-GAP,
                    SY-VLINE NO-GAP, (08) WA-BLART NO-GAP,
                    SY-VLINE NO-GAP, (10) WA-BLDAT NO-GAP,
                    SY-VLINE NO-GAP, (16) WA-XBLNR1 NO-GAP.
            WRITE: SY-VLINE NO-GAP, (14)  I_BSEG-DMBTR NO-GAP.
            WRITE: SY-VLINE.
          ENDLOOP.                                 "End   for I_BSEG loop
        ENDIF.                                     "Endif for I_PAYR-KTOKK = 'Z001'
      ENDIF.                                       "Endif for g_detail = 'X'.
    ENDFORM.                    " WRITE
    *&      Form  WRITE_DATA_PROFIT_NEW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM WRITE_DATA_PROFIT_NEW .
      REFRESH I_BSEG_COPY.
      CLEAR I_BSEG_COPY.
    *  DATA I_BSEG_COPY LIKE I_BSEG OCCURS 0 WITH HEADER LINE.
    *  I_BSEG_COPY[] = I_BSEG[].
      LOOP AT I_BSEG.
        MOVE-CORRESPONDING I_BSEG TO I_BSEG_COPY.
        APPEND I_BSEG_COPY.
        CLEAR I_BSEG_COPY.
      ENDLOOP.
      LOOP AT I_BSEG_COPY.
        READ TABLE I_BSAK_PRCTR WITH KEY BELNR = I_BSEG_COPY-BELNR GJAHR = I_BSEG_COPY-GJAHR ."HKONT = I_BSEG_COPY-HKONT.
        IF SY-SUBRC = 0.
          I_BSEG_COPY-LIFNR = I_BSAK_PRCTR-LIFNR.
          I_BSEG_COPY-XBLNR = I_BSAK_PRCTR-XBLNR.
          I_BSEG_COPY-NAME1 = I_BSAK_PRCTR-NAME1.
          I_BSEG_COPY-AUGDT = I_BSAK_PRCTR-AUGDT.
          I_BSEG_COPY-AUGBL = I_BSAK_PRCTR-AUGBL.
          I_BSEG_COPY-XBLNR1 = I_BSAK_PRCTR-XBLNR1.
          I_BSEG_COPY-BLDAT = I_BSAK_PRCTR-BLDAT.
          I_BSEG_COPY-BLART = I_BSAK_PRCTR-BLART.
          MODIFY I_BSEG_COPY TRANSPORTING LIFNR XBLNR NAME1 AUGDT AUGBL XBLNR1 BLDAT BLART.
        ENDIF.
      ENDLOOP.
      SORT I_BSAK_PRCTR BY PRCTR BELNR.
      SORT I_BSEG BY BELNR.
      SORT I_BSEG_COPY BY PRCTR.
      DATA COUNT TYPE I.
      DATA G_BELNR LIKE BSAK-BELNR.
      LOOP AT I_BSEG_COPY.
        CLEAR G_BELNR.
        G_BELNR = I_BSEG_COPY-BELNR.
        COUNT = COUNT + 1.
        READ TABLE I_BSAK WITH KEY BELNR = I_BSEG_COPY-BELNR.
        IF SY-SUBRC <> 0.
          DELETE I_BSEG_COPY WHERE BELNR = G_BELNR."INDEX count.
        ENDIF.
      ENDLOOP.
    *  LOOP AT I_BSAK_PRCTR.
      LOOP AT I_BSEG_COPY.
        CLEAR WA.
        MOVE-CORRESPONDING I_BSEG_COPY TO WA.
        PERFORM WRITE_PRCTR.
        AT END OF PRCTR.                           "Profit center sub Total
          IF G_SORTP EQ 'X'.
            SUM.
            IF G_DETAIL EQ 'X'. ULINE. ENDIF.
            FORMAT COLOR COL_TOTAL INTENSIFIED ON.
            WRITE:/ SY-VLINE NO-GAP,(20) 'Profit Center Total:', I_BSEG_COPY-PRCTR.
            WRITE: 110 SY-VLINE NO-GAP,(79) I_BSEG_COPY-DMBTR NO-GAP
                                             CURRENCY 'USD',SY-VLINE.
            ULINE.
          ENDIF.
        ENDAT.                                     "End of Vendor Total
    ****  Grand total
        AT LAST.                                   "Grand total
          SUM.
          FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
          WRITE:/ SY-VLINE NO-GAP,(107) 'Grand Total:',
                  SY-VLINE NO-GAP,(79) I_BSEG_COPY-DMBTR NO-GAP
                                         CURRENCY 'USD', SY-VLINE.
          ULINE.
        ENDAT.
      ENDLOOP.                                     "End for I_BSAK_LIFNR loop
    *ENDFORM.                    " WRITE_DATA_VENDOR
    ENDFORM.                    " WRITE_DATA_PROFIT_NEW
    *&      Form  WRITE_PRCTR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM WRITE_PRCTR .
      IF G_DETAIL = 'X'.
        IF WA-KTOKK = 'Z001'.                   " For HR Vendors
          PERFORM F_COLOR.
    *      READ TABLE I_BSEG WITH KEY BELNR = WA-BELNR GJAHR = WA-GJAHR PRCTR = WA-PRCTR BINARY SEARCH .
          READ TABLE I_SKAT WITH KEY SAKNR = WA-HKONT BINARY SEARCH.
          WRITE:/ SY-VLINE NO-GAP, (10) WA-LIFNR NO-GAP,
                  SY-VLINE NO-GAP, (35) WA-NAME1 NO-GAP,
                  SY-VLINE NO-GAP, (10) WA-HKONT NO-GAP,
                  SY-VLINE NO-GAP, (42) I_SKAT-TXT50 NO-GAP,
    *** Changed By Samir On 18 Sep 08 (DEVK914685) ***
                  SY-VLINE NO-GAP, (07) WA-PRCTR NO-GAP,
    *             SY-VLINE NO-GAP, (07) I_BSEG-PRCTR NO-GAP,
    *** End Of Changes By Samir On 18 Sep 08 ***
                  SY-VLINE NO-GAP, (16) WA-XBLNR NO-GAP,        " CREDIT CARD NO.
                  SY-VLINE NO-GAP, (10) WA-LAUFD NO-GAP,
                  SY-VLINE NO-GAP, (08) WA-BLART NO-GAP,
                  SY-VLINE NO-GAP, (10) WA-BLDAT NO-GAP,
                  SY-VLINE NO-GAP, (16) WA-XBLNR1 NO-GAP.
          WRITE: SY-VLINE NO-GAP, (14) WA-DMBTR NO-GAP.
          WRITE: SY-VLINE.
        ELSE.
    *      LOOP AT I_BSEG WHERE BELNR = WA-BELNR AND GJAHR = WA-GJAHR AND PRCTR = WA-PRCTR .
          PERFORM F_COLOR.
          READ TABLE I_SKAT WITH KEY SAKNR = WA-HKONT BINARY SEARCH.
          WRITE:/ SY-VLINE NO-GAP, (10) WA-LIFNR NO-GAP,
                  SY-VLINE NO-GAP, (35) WA-NAME1 NO-GAP,
                  SY-VLINE NO-GAP, (10) WA-HKONT NO-GAP,
                  SY-VLINE NO-GAP, (42) I_SKAT-TXT50 NO-GAP,
    *** Changed By Samir On 17 Sep 08 (DEVK914671) ***
                 SY-VLINE NO-GAP, (07) WA-PRCTR NO-GAP,
    *              SY-VLINE NO-GAP, (07) I_BSEG-PRCTR NO-GAP,
    *** End Of Changes By Samir On 17 Sep 08 ***
                  SY-VLINE NO-GAP, (16) WA-XBLNR NO-GAP,     " CREDIT CARD NO.
                  SY-VLINE NO-GAP, (10) WA-LAUFD NO-GAP,
                  SY-VLINE NO-GAP, (08) WA-BLART NO-GAP,
                  SY-VLINE NO-GAP, (10) WA-BLDAT NO-GAP,
                  SY-VLINE NO-GAP, (16) WA-XBLNR1 NO-GAP.
          WRITE: SY-VLINE NO-GAP, (14)  WA-DMBTR NO-GAP.
          WRITE: SY-VLINE.
    *      ENDLOOP.                                 "End   for I_BSEG loop
        ENDIF.                                     "Endif for I_PAYR-KTOKK = 'Z001'
      ENDIF.                                       "Endif for g_detail = 'X'.
    ENDFORM.                    " WRITE_PRCTR
    Thanks in advance
    Raj.

    Ralph,
    Thanks for the reply.
    I have marked the sql statement in the code that is taking long time to run but Its my mistake not explaining the same in the description.
    When I was debugging the code the below sql statement was taking long time.
      IF NOT I_BSAK_INIT[] IS INITIAL.
       SELECT LIFNR AUGDT AUGBL GJAHR BELNR CPUDT BLDAT XBLNR
               BLART SHKZG DMBTR AUGGJ
                  FROM BSAK
                  INTO CORRESPONDING FIELDS OF TABLE I_BSAK
                  FOR ALL ENTRIES IN I_BSAK_INIT
                  WHERE BUKRS = C_BUKRS  AND
                  AUGBL = I_BSAK_INIT-VBLNR AND
                  XZAHL <> 'X'.
      ENDIF.
    Any suggestions on the code?
    Regards,
    Raj.

  • Hyperion System 9.3.1 reports taking longer time for the very first time

    We are on Hyperion System 9.3.1. The Financial reports are taking longer time (like 2 to 3 minuter) for the very first time for each login. The subsequest reports are does work faster.
    The behaviour is same for the Production and Development environments.
    All the reporting services have given enough JVM heap size.
    FYI, Reporting and Workspace runngin on the same server. Workspace/Reporting are clusted in two servers. HFM app is running on different server. HFM web is on different server. Shared Services is also on running on different server.
    Any help would be greately appreciated.
    Thanks.

    The reason they run quicker the subsequent times, is because the data has already been cached in the system.
    You could try the usual tricks to speed the report up:
    - move items into POV
    - have children and parent in the same row
    - arrange dimensions in inverse outline order
    - remove excessive formatting
    - push report calculations back to the data source
    We have found that using lots of dynamically calculated members also slows down reports, so try and limit the number of these.
    Hope this helps. If not maybe give us an idea of how the report is created to see if other changes could be made.

  • MOSS 2007 Search - Crawling is taking longer than usual time since last month for same content sources

    Hi all,
    Off late we have discovered that content crawling is taking longer than expected also overlapping to next scheduled too. Literally no crawl logs seen for hours. No entry in crawl logs. Is there anyone out here having similar issue? Please share a solution
    if any found.
    My farm is implemented with MOSS 2007 SP2 Ver no 12.0.0.6554
    There is not packet drop between index server, App and SQL server/Cluster
    Thank you in advance,
    Reach Ram
    Ramakrishna Pulipati SharePoint Consultant, Bangalore, INDIA

    I believe this is ready for submission for the Time Machine forum.
    As noted, it does not cover diagnosis and correction of specific problems or errors, as that would seem to be better handled separately.
    It also doesn't cover anything about Time Capsule, for the very good reason that I'm not familiar with them. If someone wants to draft a separate post for it, or items to add/update here, that would be great!
    Thanks very much.

  • Rag: Query performence - Report taking long time when drill down a Char.

    Hi All,
    After executing the report when we try to Drilldown PO Char, then the report used to take long time nearly 60 to 90 minutes and thorough an errors that  "An error is occurred during loading" or "Connection Timed Out".
    The report is created on Multiprovider which is build on 7 infocubes and the data for the PO char is coming from all the 7 cubes.
    So we have created Aggregates on the 5 Infocubes based on system proposal.
    Then,
    We checked in RSRT, the data is coming from all 5 Aggregates and also when we drill down the PO also the data is coming from 5 Aggregates itself.
    But,
    The report is running fine and also when we drilldown the PO to show all the PO values, then the report showing all the POu2019s details by taking nearly 15 mins only.
    Here our concern is why the report is taking 15 mins when we drill a PO char.
    Could any one give suggestions please.
    Thanks in Adv.
    Raju. E

    Hi,
    please check this list for query performance:
    http://sapbwneelam.blogspot.com/2007/10/checklist-for-query-performance.html
    Regards
    Erwin

  • Crystal Report taking long time to load for a particular prompt

    Hi Abhilash Kumar,
    Really need your help with one issue that we are facing with Crystal Report.
    We have a particular Crystal Report that has a main report and three sub-reports.
    The scenario is such that the main report and two sub-reports are based out from a universe.
    The third sub-report on the other hand, is a combination of a sql query and a database.
    The problem that we are facing is with a particular prompt that is taking a huge amount of time to load.
    When we check the same query on the database, the results are being displayed. Also, once the report is run, Crystal report shows at the bottom of the page that the records are being read, but it taking time to display the results in the report structure in Crystal Reports.
    Again, we have checked for a lot of prompts and everything works and loads data within seconds. It is with this particular prompt.
    Could you please help us or guide us in this regard.
    Thanks,
    Jasmine.

    Hello Jasmine,
    Query executing at  Database level generally gives the output promptly.
    Below are the points which come into account in crystal report execution:-
    1. The output in the crystal report comes after processing the all formulas used in report along with the complex structure.
    2. The network issue also come into play in fetching the data from source(Database) to the report.
    3. Adding the sub-report makes the report slower. If it is necessary to use, then use it with option "On-Demand".
    At last "Crystal report shows at the bottom of the page that the records are being read, but it taking time to display the results in the report structure in Crystal Reports."
    It means that the Data is already retrieved but report is taking time for processing then only  report will be displayed.
    Regards,
    Raghwendra

  • Hyperion Financial reports-taking long time to open after migrating to 9

    Hi,
    Financial reports version 7 are migrated to system 9.
    Problem that we are facing now is that reports take ling time to open.
    Can anyone suggest how to improve the performance .
    before migration to system 9 financial reports was working fine but now it is taking a long time to open

    Are they taking a long time to open in the studio or in the workspace?
    There could be lots of reasons:
    Have there been server changes with the migration?
    Have there been any changes in dynamically calculated dimensions?

  • Report taking long time to load

    Hello Everyone,
    In my report server there are two folders. both contains 2 reports that are retrieving the data from SQL server database (using procedures with few parameters in it).
    but reports in one folder loading(when I clicked on report to load, not at data retrieving time) quickly (in 2 to 3 seconds).
    and in another folder same process taking too long almost 2 to 3 minutes.
    there is no specific permissions on both folders, I simply created folders & uploaded the reports.
    but I am getting different loading time for both folder reports.
    pleae tell me if more information is required.
    thanks in advance

    Hi UdayKGR,
    As per my understanding, I think this issue can be caused by run folder2 report with a cache (a temporary cope of the report), while folder1 report id render on demand. So the folder2 report render report more quicker than folder1 report. For more
    details, please see the following document:
    http://msdn.microsoft.com/en-us/library/ms178821.aspx
    Besides, the SQL views provide the execution log information. The “2” and “3” views were added in more recent releases and contain new fields or they contain fields with friendlier names than the previous releases. So we can look at the ExecutionLog3
    to see the most recent data. Especially the Source field. For more details, please see:
    http://technet.microsoft.com/en-us/library/ms159110.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Reports taking long time to execute

    Hi,
    There are few reports on SSRS which are taking almost 6-8 minutes to complete and display the data.
    I am using Oracle database as source.
    When I checked the query performance, what I found that main data set is taking almost 2-3 minutes to execute on Sql developer. Also there are two parameters which are taking almost 1-1 minute to execute.
    When I run the report without these two parameters, report execution time is reduced by more than 3 minutes.
    Also I am using 3-4 groupings in the report and 6 columns are aggregated at each grouping.
    Reports are tabular reports and contains header, footers and 2-3 text boxes to display parameter values.
    Can you please provide me some ways to optimize the queries and reduce the time taken by report to complete.

    Hi sudipta,
    According to your description, it takes too long to render the report when accessing it. Right?
    In this scenario, it can be many possibilities which will reduce the report performance. We suggest you check the report on ReportServer first. Go to the ReportServer ExecutionLog to see which part takes more time.
    Then we need to do some troubleshooting to improve the report performance. Here we have a article for your reference:
    Troubleshooting Reports: Report Performance
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • OBIEE reports taking long time to show up..

    Hi,
    I'm facing some performnace problems with OBIEE reports (11g). The backend query generated by OBIEE runs fast however, the time taken up by the report to show up is very much.
    What should i look for to resolve this.
    Thx

    Please refer to:
    Performance and performance and performance
    You might want to create a special view or table (views are not recommended) with aggregated values. Don't forget obiee aggregates values at runtime pretty much.
    J.

  • Snapshot Report taking long time

    Hi,
    We have snapshot collection every 1 hour in our db and the process is taking 1/2 hour to run and it is the highest resource hog while it is running. what can we do to avoid this scenario ? Quick help ismuch appreciated. We use oem 11g for a 9.2.0.4 db.
    Thanks
    Prasad

    Hi,
    We have snapshot collection every 1 hour in our db and the process is taking 1/2 hour to run and it is the highest resource hog while it is running. what can we do to avoid this scenario ? Quick help ismuch appreciated. We use oem 11g for a 9.2.0.4 db.
    Thanks
    Prasad

  • Song and Video downloading taking long amounts of time.

    I have been trying to download a 5 minute music video, and the process has taken over an hour so far. I am wondering if there is any setting I could change, or something wrong on my PC that is causing this.

    I'm using a cable connection from a wireless router, and I'm getting 11.00 Mbps. the strange thing is, it's never done this before. Just yesterday, everything started downloading really slow.

  • Query taking long to execute

    Hello
    One of my report taking long to execute. i have range base partition on table and indexes by month. following are the details
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 7 13:41:04 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> show parameter optimizer;
    NAME                                 TYPE        VALUE
    optimizer_capture_sql_plan_baselines boolean     FALSE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      11.2.0.1
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     10
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    optimizer_use_invisible_indexes      boolean     FALSE
    optimizer_use_pending_statistics     boolean     FALSE
    optimizer_use_sql_plan_baselines     boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     64
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     16384
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    SQL>
    SNAME                          PNAME                          PVAL1                  PVAL2                                                                                                                                                                                                                                                          
    SYSSTATS_INFO                  STATUS                                                AUTOGATHERING                                                                                                                                                                                                                                                  
    SYSSTATS_INFO                  DSTART                                                10-07-2011 14:12                                                                                                                                                                                                                                               
    SYSSTATS_INFO                  DSTOP                                                 10-07-2011 14:42                                                                                                                                                                                                                                               
    SYSSTATS_INFO                  FLAGS                          0                                                                                                                                                                                                                                                                                     
    SYSSTATS_MAIN                  CPUSPEEDNW                     2526.08695652174                                                                                                                                                                                                                                                                      
    SYSSTATS_MAIN                  IOSEEKTIM                      10                                                                                                                                                                                                                                                                                    
    SYSSTATS_MAIN                  IOTFRSPEED                     4096                                                                                                                                                                                                                                                                                  
    SYSSTATS_MAIN                  SREADTIM                                                                                                                                                                                                                                                                                                             
    SYSSTATS_MAIN                  MREADTIM                                                                                                                                                                                                                                                                                                             
    SYSSTATS_MAIN                  CPUSPEED                                                                                                                                                                                                                                                                                                             
    SYSSTATS_MAIN                  MBRC                                                                                                                                                                                                                                                                                                                 
    SYSSTATS_MAIN                  MAXTHR                                                                                                                                                                                                                                                                                                               
    SYSSTATS_MAIN                  SLAVETHR                                                                                                                                                                                                                                                                                                             
    SYSSTATS_TEMP                  SBLKRDS                        640991392                                                                                                                                                                                                                                                                             
    SYSSTATS_TEMP                  SBLKRDTIM                      23353628654370                                                                                                                                                                                                                                                                        
    SYSSTATS_TEMP                  MBLKRDS                        128258266                                                                                                                                                                                                                                                                             
    SYSSTATS_TEMP                  MBLKRDTIM                      6812382430610                                                                                                                                                                                                                                                                         
    SYSSTATS_TEMP                  CPUCYCLES                      75032664                                                                                                                                                                                                                                                                              
    SYSSTATS_TEMP                  CPUTIM                         29682662                                                                                                                                                                                                                                                                              
    SYSSTATS_TEMP                  JOB                            12769                                                                                                                                                                                                                                                                                 
    SYSSTATS_TEMP                  CACHE_JOB                      12770                                                                                                                                                                                                                                                                                 
    SYSSTATS_TEMP                  MBRTOTAL                       3373935275                                                                                                                                                                                                                                                                            
    22 rows selected Any help or suggestion to improve its performance ?

    Execution plan is
    PLAN_TABLE_OUTPUT                                                                                                                                                                                                                                                                                           
    Plan hash value: 2727856908                                                                                                                                                                                                                                                                                 
    | Id  | Operation                                                    | Name                  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |                                                                                                                         
    |   0 | SELECT STATEMENT                                             |                       |     1 |  1183 |   138K  (1)| 00:32:21 |       |       |        |      |            |                                                                                                                         
    |*  1 |  COUNT STOPKEY                                               |                       |       |       |            |          |       |       |        |      |            |                                                                                                                         
    |   2 |   PX COORDINATOR                                             |                       |       |       |            |          |       |       |        |      |            |                                                                                                                         
    |   3 |    PX SEND QC (ORDER)                                        | :TQ10008              |     1 |  1183 |   138K  (1)| 00:32:21 |       |       |  Q1,08 | P->S | QC (ORDER) |                                                                                                                         
    |   4 |     VIEW                                                     |                       |     1 |  1183 |   138K  (1)| 00:32:21 |       |       |  Q1,08 | PCWP |            |                                                                                                                         
    |*  5 |      SORT ORDER BY STOPKEY                                   |                       |     1 |   400 |   138K  (1)| 00:32:21 |       |       |  Q1,08 | PCWP |            |                                                                                                                         
    |   6 |       PX RECEIVE                                             |                       |     1 |  1183 |            |          |       |       |  Q1,08 | PCWP |            |                                                                                                                         
    |   7 |        PX SEND RANGE                                         | :TQ10007              |     1 |  1183 |            |          |       |       |  Q1,07 | P->P | RANGE      |                                                                                                                         
    |*  8 |         SORT ORDER BY STOPKEY                                |                       |     1 |  1183 |            |          |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |   9 |          NESTED LOOPS                                        |                       |       |       |            |          |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  10 |           NESTED LOOPS                                       |                       |     1 |   400 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  11 |            NESTED LOOPS                                      |                       |     1 |   377 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  12 |             NESTED LOOPS                                     |                       |     1 |   341 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |* 13 |              HASH JOIN                                       |                       |     1 |   324 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  14 |               PX RECEIVE                                     |                       |     1 |   289 |   123K  (1)| 00:28:53 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  15 |                PX SEND BROADCAST                             | :TQ10006              |     1 |   289 |   123K  (1)| 00:28:53 |       |       |  Q1,06 | P->P | BROADCAST  |                                                                                                                         
    |* 16 |                 HASH JOIN                                    |                       |     1 |   289 |   123K  (1)| 00:28:53 |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  17 |                  PX RECEIVE                                  |                       |     4 |  1016 |   123K  (1)| 00:28:51 |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  18 |                   PX SEND BROADCAST                          | :TQ10005              |     4 |  1016 |   123K  (1)| 00:28:51 |       |       |  Q1,05 | P->P | BROADCAST  |                                                                                                                         
    |* 19 |                    HASH JOIN OUTER BUFFERED                  |                       |     4 |  1016 |   123K  (1)| 00:28:51 |       |       |  Q1,05 | PCWP |            |                                                                                                                         
    |  20 |                     PX RECEIVE                               |                       |       |       |            |          |       |       |  Q1,05 | PCWP |            |                                                                                                                         
    |  21 |                      PX SEND HASH                            | :TQ10003              |       |       |            |          |       |       |  Q1,03 | P->P | HASH       |                                                                                                                         
    |  22 |                       NESTED LOOPS                           |                       |       |       |            |          |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  23 |                        NESTED LOOPS                          |                       |     4 |   892 |   123K  (1)| 00:28:51 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  24 |                         NESTED LOOPS                         |                       |     6 |   948 |   123K  (1)| 00:28:51 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  25 |                          NESTED LOOPS                        |                       |     7 |  1043 |   123K  (1)| 00:28:51 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |* 26 |                           HASH JOIN                          |                       |  5784 |   728K|   118K  (1)| 00:27:45 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  27 |                            PX RECEIVE                        |                       |   667K|    26M| 11597   (1)| 00:02:43 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  28 |                             PX SEND BROADCAST                | :TQ10000              |   667K|    26M| 11597   (1)| 00:02:43 |       |       |  Q1,00 | P->P | BROADCAST  |                                                                                                                         
    |  29 |                              PX PARTITION RANGE ALL          |                       |   667K|    26M| 11597   (1)| 00:02:43 |     1 |    14 |  Q1,00 | PCWC |            |                                                                                                                         
    |  30 | WID                           TABLE ACCESS BY LOCAL INDEX RO | PAH01V1_DG1           |   667K|    26M| 11597   (1)| 00:02:43 |     1 |    14 |  Q1,00 | PCWP |            |                                                                                                                         
    |  31 |                                BITMAP CONVERSION TO ROWIDS   |                       |       |       |            |          |       |       |  Q1,00 | PCWP |            |                                                                                                                         
    |* 32 |                                 BITMAP INDEX SINGLE VALUE    | MINDX_PAH01V1_DG1_14  |       |       |            |          |     1 |    14 |  Q1,00 | PCWP |            |                                                                                                                         
    |* 33 |                            HASH JOIN                         |                       |  1826K|   151M|   107K  (1)| 00:25:03 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  34 |                             PX RECEIVE                       |                       |  2682 | 18774 |    58   (0)| 00:00:01 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  35 |                              PX SEND BROADCAST               | :TQ10001              |  2682 | 18774 |    58   (0)| 00:00:01 |       |       |  Q1,01 | P->P | BROADCAST  |                                                                                                                         
    |  36 |                               PX BLOCK ITERATOR              |                       |  2682 | 18774 |    58   (0)| 00:00:01 |     1 |    14 |  Q1,01 | PCWC |            |                                                                                                                         
    |  37 |                                TABLE ACCESS FULL             | PAH01V1_DG3           |  2682 | 18774 |    58   (0)| 00:00:01 |     1 |    14 |  Q1,01 | PCWP |            |                                                                                                                         
    |* 38 |                             HASH JOIN                        |                       |  2409K|   183M|   107K  (1)| 00:25:02 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  39 |                              PX RECEIVE                      |                       |   476K|    19M|  5904   (1)| 00:01:23 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  40 |                               PX SEND BROADCAST              | :TQ10002              |   476K|    19M|  5904   (1)| 00:01:23 |       |       |  Q1,02 | P->P | BROADCAST  |                                                                                                                         
    |  41 |                                PX PARTITION RANGE ALL        |                       |   476K|    19M|  5904   (1)| 00:01:23 |     1 |    14 |  Q1,02 | PCWC |            |                                                                                                                         
    |  42 | ROWID                           TABLE ACCESS BY LOCAL INDEX  | PAH01V1_DG5           |   476K|    19M|  5904   (1)| 00:01:23 |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |  43 |                                  BITMAP CONVERSION TO ROWIDS |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  44 |                                   BITMAP MINUS               |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  45 |                                    BITMAP MINUS              |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  46 |                                     BITMAP MERGE             |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  47 |                                      BITMAP INDEX FULL SCAN  | MINDX_PAH01V1_DG517   |       |       |            |          |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |* 48 | E                                   BITMAP INDEX SINGLE VALU | MINDX_PAH01V1_DG5_3   |       |       |            |          |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |* 49 |                                    BITMAP INDEX SINGLE VALUE | MINDX_PAH01V1_DG5_3   |       |       |            |          |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |  50 |                              PX BLOCK ITERATOR               |                       |   275M|     9G|   101K  (1)| 00:23:37 |     1 |    14 |  Q1,03 | PCWC |            |                                                                                                                         
    |* 51 |                               TABLE ACCESS FULL              | PAH01V1_JT            |   275M|     9G|   101K  (1)| 00:23:37 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  52 |                           PARTITION RANGE ALL                |                       |     1 |    20 |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 53 |                            TABLE ACCESS BY LOCAL INDEX ROWID | PAH01V1_DG2           |     1 |    20 |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 54 |                             INDEX RANGE SCAN                 | PKINDX_PAH01V1_DG2_28 |     1 |       |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  55 |                          PARTITION RANGE ALL                 |                       |     1 |     9 |     0   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  56 |                           TABLE ACCESS BY LOCAL INDEX ROWID  | PAH01V1_DG4           |     1 |     9 |     0   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 57 |                            INDEX RANGE SCAN                  | PKINDX_PAH01V1_DG4    |     1 |       |     0   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  58 |                         PARTITION RANGE ALL                  |                       |     1 |       |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 59 |                          INDEX RANGE SCAN                    | PKINDX_PAH01V1_DG0    |     1 |       |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  60 |                        TABLE ACCESS BY LOCAL INDEX ROWID     | PAH01V1_DG0           |     1 |    65 |     1   (0)| 00:00:01 |     1 |     1 |  Q1,03 | PCWP |            |                                                                                                                         
    |  61 |                     PX RECEIVE                               |                       |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,05 | PCWP |            |                                                                                                                         
    |  62 |                      PX SEND HASH                            | :TQ10004              |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,04 | P->P | HASH       |                                                                                                                         
    |  63 |                       PX BLOCK ITERATOR                      |                       |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,04 | PCWC |            |                                                                                                                         
    |  64 |                        TABLE ACCESS FULL                     | PAH01V1_STORE_LKP     |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,04 | PCWP |            |                                                                                                                         
    |  65 |                  PX PARTITION RANGE ITERATOR                 |                       |  1571K|    52M|   167   (1)| 00:00:03 |   KEY |    14 |  Q1,06 | PCWC |            |                                                                                                                         
    |  66 |                   TABLE ACCESS BY LOCAL INDEX ROWID          | PAH01V1_DG0           |  1571K|    52M|   167   (1)| 00:00:03 |   KEY |    14 |  Q1,06 | PCWP |            |                                                                                                                         
    |  67 |                    BITMAP CONVERSION TO ROWIDS               |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  68 |                     BITMAP AND                               |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  69 |                      BITMAP MERGE                            |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |* 70 |                       BITMAP INDEX RANGE SCAN                | MINDX_PAH01V1_DG022   |       |       |            |          |   KEY |    14 |  Q1,06 | PCWP |            |                                                                                                                         
    |  71 |                      BITMAP MERGE                            |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |* 72 |                       BITMAP INDEX RANGE SCAN                | MINDX_PAH01V1_DG0_8   |       |       |            |          |   KEY |    14 |  Q1,06 | PCWP |            |                                                                                                                         
    |  73 |               PX PARTITION RANGE ITERATOR                    |                       |  2594K|    86M| 14858   (1)| 00:03:29 |   KEY |    14 |  Q1,07 | PCWC |            |                                                                                                                         
    |  74 |                TABLE ACCESS BY LOCAL INDEX ROWID             | PAH01V1_JT            |  2594K|    86M| 14858   (1)| 00:03:29 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  75 |                 BITMAP CONVERSION TO ROWIDS                  |                       |       |       |            |          |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |* 76 |                  BITMAP INDEX RANGE SCAN                     | MINDX_PAH01V1_JT_PF_  |       |       |            |          |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  77 |              PARTITION RANGE ITERATOR                        |                       |     1 |    17 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 78 |               TABLE ACCESS BY LOCAL INDEX ROWID              | PAH01V1_DG2           |     1 |    17 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 79 |                INDEX RANGE SCAN                              | PKINDX_PAH01V1_DG2_28 |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  80 |             PARTITION RANGE ITERATOR                         |                       |     1 |    36 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  81 |              TABLE ACCESS BY LOCAL INDEX ROWID               | PAH01V1_DG5           |     1 |    36 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 82 |               INDEX RANGE SCAN                               | PKINDX_PAH01V1_DG5_18 |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  83 |            PARTITION RANGE ITERATOR                          |                       |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 84 |             INDEX RANGE SCAN                                 | PKINDX_PAH01V1_DG1_22 |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 85 |           TABLE ACCESS BY LOCAL INDEX ROWID                  | PAH01V1_DG1           |     1 |    23 |     1   (0)| 00:00:01 |     1 |     1 |  Q1,07 | PCWP |            |                                                                                                                         
    135 rows selected

  • Interactive Report general Search is taking long time

    Hi All,
    I have two IR reports in my Application, Both are using same tables , same where clause, displaying column is different.
    Both query returning 60000 records, In my first report , after my report gets loaded , i am using the general search button for getting some data,
    when i try to find 100 in my reports , my first report displaying the search result in 5 seconds, But my second report i am doing the same steps , but its taking long time to respond.
    Could some one tell me what is the cause for this problem also in what basis this search will work means how this will work?
    Cheers,
    San

    Hi Mike,
    You are right test is the View
    After i enabled the debug i found the below query
    Report 1 Query
    SELECT "Checkbox",
      "RS_TRX_NUMBER",
      "EXT_TRX_NUMBER",
      "ARRANGEMENT_NUMBER",
      "TRX_DATE",
      "TRX_STATUS",
      "SOLD_TO_CUSTOMER_NAME",
      "TRX_TYPE",
      "CURRENCY",
      "COMMITTED_AMOUNT",
      "BUDGET_AMOUNT",
      "TRANSACTION_BUDGET",
      "TRX_DESCRIPTION",
      "FILES",
      "Lines",
      "Events",
      "TRX_Revenue",
      "ARGMT_Revenue",
      "Holds",
      "RS_TRX_ID",
      COUNT(DISTINCT "ARRANGEMENT_NUMBER") over (),
      COUNT(*) over () AS apxws_row_cnt
    FROM
      (SELECT *
      FROM
        (SELECT a.* ,
          'Events' "Events" ,
          'Billing' "Billing" ,
          'Transaction Revenue' "TRX_Revenue" ,
          'Arrangement Revenue' "ARGMT_Revenue" ,
          'Lines' "Lines" ,
          'Invoice' "Invoice" ,
          'Holds' "Holds" ,
          apex_item.hidden ( 2, a.rs_trx_number)
          || apex_item.checkbox ( 1, a.rs_trx_id, 'onchange="spCheckChange(this, ''x01'', ''P13_TRX_AJAX_NAME'', ''P13_TRX_COLLECTION_NAME'',''SELECTED_TRX'');"', c.n001, ':' ) "Checkbox"
        FROM test a,
          apex_collections c
        WHERE a.rs_trx_id        = c.n001(+)
        AND c.collection_name(+) = :P13_TRX_COLLECTION_NAME
        AND a.org_id            IN
          (SELECT DISTINCT org_id
          FROM test1
          WHERE (role_name = :APPUSER_CURRENT_ROLE)
        ) r
      ) r
    where rownum <= TO_NUMBER(:APXWS_MAX_ROW_CNT)
    Second Report
    SELECT "Checkbox",
      "EXT_TRX_NUMBER",
      "RS_TRX_NUMBER",
      "ARRANGEMENT_NUMBER",
      "TRX_RM_STATUS",
      "SOLD_TO_CUSTOMER_NAME",
      "TRX_TYPE",
      "TRX_DESCRIPTION",
      "CURRENCY",
      "COMMITTED_AMOUNT",
      "UNEARNED",
      "EARNED",
      "REV_TRANSFERRED",
      "REV_LINES",
      "SCHEDULES",
      "EVENTS",
      "EXT_TRX_ID",
      "PRIMARY_SALESREP_NUMBER",
      "RS_TRX_ID",
      COUNT(*) over () AS apxws_row_cnt
    FROM
      (SELECT *
      FROM
        (SELECT a.* ,
          'Rev Lines' REV_LINES ,
          'Schedules' Schedules ,
          'Events' Events ,
          apex_item.hidden ( 2, a.rs_trx_number)
          || apex_item.checkbox ( 1, a.rs_trx_id, 'onchange="spCheckChange(this, ''x01'', ''P5_REV_TRX_AJAX_NAME'', ''P5_RTCN'',''SELECTED_REV_TRX'');"', c.n001, ':' ) "Checkbox"
        FROM Test a,
          apex_collections c
        WHERE a.rs_trx_id        = c.n001(+)
        AND C.COLLECTION_NAME(+) = :P5_RTCN
        AND a.org_id            IN
          (SELECT DISTINCT org_id
          FROM Test1
          WHERE (role_name = :APPUSER_CURRENT_ROLE)
        ) r
      ) r
    WHERE rownum <= to_number(:APXWS_MAX_ROW_CNT)
    ORDER BY "ARRANGEMENT_NUMBER" DESC,
      "EXT_TRX_NUMBER"
    In Source i am using the same query in both report , But how come order by clause has been adding in my Second query.
    Also in Report 1 :
      COUNT(DISTINCT "ARRANGEMENT_NUMBER") over (),
      COUNT(*) over () AS apxws_row_cnt
    The same is not there in Second report query .
    How can i remove that order by clause from my id also how can i resolve the above change (
      COUNT(DISTINCT "ARRANGEMENT_NUMBER") over (),
      COUNT(*) over () AS apxws_row_cnt)
    Help me out to resolve.
    Cheers,
    San

Maybe you are looking for