BEx query selection screen takes long time to popup

Hi,
I have a query which is taking long time to popup the selection screen. I have tried in RSRT the generate report option, the generating report takes 45 to 60 mins. After the report is generated the query selection screen comes up in couple of seconds. The first time I run the query everything its fine but then for the second time the problem comes back again.
The selection screen takes +/- 40 mins to comes up in RSRT and in the portal it times out.
I have run the statistics of the query and according to the statistics report the query takes a  lot of time for the following component :
OLAP: Query Gen.     2681,312682
I have removed the query from the cache monitor and after that regenerate the report. But these steps didnu2019t solve my problem.
I made two test queries, in one query I have made the CKFu2019s and RKFu2019s directly at the infoprovider, and dragged and dropped in the KF structure. In the other query I made the CKFu2019s and RKFu2019s in the query KF structure itself. The query where I have the CKFu2019s and RKFu2019s at the infoprovider that query times out, the other query where I put the CKFu2019s and RKFu2019s in the query KF structure doesn't has this performance problem.
What I donu2019t know is why the query is failing when I use RKFu2019s and CKFu2019s from the infoprovider, the other query donu2019t have this problem.
Please advise how to proceed.
Thanks in advance,
Arash

Hi,
Please check the following notes which should be useful.
1387593 - Performance optimization for query change/generation
1416737 - Performance optimization for query change/generation(2)
1396485 - Performance optimization for query check/save
Then please execute the SE38 report ANALYZE_RSZ_TABLES (see notes
1472915, 1506560) and repair/correct the different tables to optmize
the query definition tables.
Regards,
Amit

Similar Messages

  • Drop Down List in Query Selection Screen Takes Long Time.

    I open a report, refresh the query and get a selection screen. But when clicked on the drop down list it takes 4- 5 mins for displaying the drop down options.
    How can I speed up the displaying of drop down list in selection screen?
    Could any one please help regarding the setting to enable this?
    Thanks.

    Hi,
    I guess there is a setting to look up the master data tables or use the dimension,which would speed up the time that it takes to display the drop down selections
    Do you have any idea about the setting?
    Thanks.

  • BeX Analyzer Variable screen takes long time

    Hello,
    Recently migrated 3.5 workbooks/queries to 7x.
    When clicking on 'Change Variable values' button, the variable pop up screen takes about 10 seconds to appear for some users.
    It takes somewhere between 30-40 seconds for some users...
    All users are in same patch level. In 3x all users were experiencing same time delays.
    But from 7x it has got worse. Now we are on 730 release, Patch 7.
    Searched forums and SAP Notes. Didnt get any good solutions.
    Some said clearing %tmp% files helps. It works for 1 or 2 users only. Its not the solution.
    Any other solutions please?
    Thanks

    The problem is not associated with the selection/results.
    Problem is the time it takes to bring up the variable screen itself.
    Thanks

  • SELECT statement takes long time

    Hi All,
    In the following code, if the T_QMIH-EQUNR contains blank or space values ,SELECT statement takes longer time to acess the data from OBJK table. If it T_QMIH-EQUNR contains values other than blank, performance is good and it fetches data very fast.
    Already we have indexes for EQUNR in OBJK table.
    Only for blank entries , it takes much time.Can anybody tell why it behaves for balnk entries?
    if not T_QMIH[] IS INITIAL.
            SORT T_QMIH BY EQUNR.
            REFRESH T_OBJK.
            SELECT EQUNR OBKNR
              FROM OBJK INTO TABLE T_OBJK
              FOR ALL ENTRIES IN T_QMIH
              WHERE OBJK~TASER = 'SER01' AND
             OBJK~EQUNR = T_QMIH-EQUNR.
    Thanks
    Ajay

    Hi
    You can use the field QMIH-QMNUM with OBJK-IHNUM
    in QMIH table, EQUNR is not primary key, it will have multiple entries
    so to improve the performance use one dummy internal table for QMIH  and sort it on EQUNR
    delete adjacent duplicates from d_qmih and use the same in for all entries
    this will improve the performance.
    Also use the fields in sequence of the index and primary keys also in select
    if not T_QMIH[] IS INITIAL.
    SORT T_QMIH BY EQUNR.
    REFRESH T_OBJK.
    SELECT EQUNR OBKNR
    FROM OBJK INTO TABLE T_OBJK
    FOR ALL ENTRIES IN T_QMIH
    WHERE  IHNUM =  T_QMIH-QMNUM
    OBJK~TASER = 'SER01' AND
    OBJK~EQUNR = T_QMIH-EQUNR.
    try this and let me know
    regards
    Shiva

  • Query on Cube jumps to Query on ODS ; Query on ODS takes Long time

    Hi All,
    Perormance Issue:  Query on Cube jumps to Query on ODS.
    Query on ODS taking long time.(JumpQuery)  
    Specific to ODS Query: When i have checked the Query on ODS(individually) also taking longer time
    Actually ODS contains quite huge data. Indexes already maintained.
    I have checked the RSRT- Execute SQL and Debug Option also. Indexes maintained Perfectly .
    Order of objects in ODS indexes are matching the order of Objects in SQL stat of RSRT Trans. Inspite of that taking long time.
    I have checked both the ways jumpquery aswellas individually .
    My question is when the query is jumping from cube to query on ODS how to check the performance, how the query is executing in background when switching over to the second query, Moreover calculated keyfigure has been used for jumping to the target query.
    How can query(ods query)  time is optimized or improve performance when jumping  from query on Cube ?
    can any body help?
    Rgds,
    C.V.
    Message was edited by:
            C.V. P

    What i understand is that you need to optimise the Query jumping time . But this will be very less compared to the time taken by the query on the ODS.
    Ideally you shouldnt be making a BEx Query on the ODS , as this takes a long time. What you can do is try executing the Bex Query on the ODS to find out as to where the issue lies. If this query is taking a long time , there is not muich that you can do here.

  • Select statemnet takes long time

    Hello Experts,
    My select query takes a long time to give its output when I select and order type say PM15.
    It gives me the return message but takes a long time.
    Is there any other possibility to get output much faster.
    SELECT a~aufnr
           a~auart
           a~objnr
           a~werks
           b~stat INTO CORRESPONDING FIELDS OF TABLE itab1
                  FROM aufk AS A JOIN jest AS B
                  ON a~objnr EQ b~objnr
                  WHERE a~aufnr IN  s_aufnr
                  AND  a~auart in s_auart
                  AND A~werks IN S_IWERK
                  AND b~inact EQ  ' '.                     "can set incat = space(Active) OR incat = 'X'(Not Active)
    SELECT a~aufnr
           a~auart
           a~objnr
           a~werks
           b~stat INTO CORRESPONDING FIELDS OF TABLE itab
                  FROM aufk AS A JOIN jest AS B
                  ON a~objnr EQ b~objnr
                  WHERE a~aufnr IN  s_aufnr
                  AND  a~auart in s_auart
                  AND A~werks IN S_IWERK
                  AND b~stat  IN  ('I0002','I0340').
    READ TABLE ITAB INDEX 1.
    refresh: T_METH.
      clear: T_METH.
      clear :wa_meth.
    sort itab.
    DELETE ADJACENT DUPLICATES FROM ITAB COMPARING AUFNR.
    LOOP AT ITAB.
      wa_meth-refnumber     = 1.
      wa_meth-objecttype    = 'HEADER'.
      wa_meth-method        = 'ATPCHECK'.
      wa_meth-objectkey(12) = ITAB-AUFNR.
    *  wa_meth-objectkey(12) = ITAB-OBJNR.
      append  wa_meth to t_meth.
      clear  wa_meth.
       wa_meth-refnumber     = 1.
       wa_meth-method        = 'SAVE'.
       wa_meth-objectkey(12) = ITAB-AUFNR.
    *   wa_meth-objectkey(12) = ITAB-OBJNR.
      append  wa_meth to t_meth.
      call function 'BAPI_ALM_ORDER_MAINTAIN'
          tables
          it_methods   = T_METH
          return       = T_RET.
      call function 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT T_RET.
    write:/ T_RET-MESSAGE.
    EXIT.
    ENDLOOP.
    ENDLOOP.
    Thanks and Regrds,
    Nikhil.

    You can neglect the second query by pulling the values in first query itself
      SELECT a~aufnr
           a~auart
           a~objnr
           a~werks
           b~stat
           b~inact "New Addition
                  INTO CORRESPONDING FIELDS OF TABLE itab1
                  FROM aufk AS A JOIN jest AS B
                  ON a~objnr EQ b~objnr
                  WHERE a~aufnr IN  s_aufnr
                  AND  a~auart  in s_auart
                  AND A~werks  IN S_IWERK.
                  "AND b~inact EQ  ' '.  removed.
      now the itab1 will consists of inact EQ  ' ' and b~stat  IN  ('I0002','I0340').
      try to process the internal table.
      Dont know how far it will help you

  • Missing parameters on Bex query selection screen

    Hi,
    we are using BW3.5 (support pack 18) and one of our users has created a number of variants for a particular query which he executes via the Bex Analyser. The problem is, when ever he runs this query now, all the fields that he populated in his variants no longer appear on his selection screen - even if we delete all the variants.
    He did not choose to hide any fields (in the variant) and he has not set any personal values in personalisation.
    Can anyone please help?
    Thanks,
    John.

    Hi Ozan.
    Thanks for your reply however my problem was that the fields were no longer displayed on the selection screen thus there was no buttons to select for the personalisation settings therefore no way to turn off the personalisation.
    However I discovered that if I executed the query using transaction RSRT the full selection screen was displayed and I could access the personalisation buttons for the parameters that had personalisation.
    Thanks anyway.

  • F4 help on Bex query selection screen

    Hi,
    On the selection screen of a particular field of  Bex query , if the user selects F4 help (input value help), typically it picks up all values in the infoprovider for that field.
    Is there any way to retrict those values.
    Eg : Cube has values A, B , C for field A .
    When the user selects value help on field A of the Bex query written on the cube, the requirement is to show only A and B.
    thanks.

    Hi,
    We do this in our project:
    you can use BW Reporting Variable type Auth Exit.
    In the Step 0, you define what are allowed for that user. It will then automatically show only auth.zed values.
    Best Regards,
    Suan Liono.

  • Optimize the query as it takes long time

    hi dear please help to optimize thi sql and take more than 45minits to return out put. This has to be optimize at lease 3-4 mints.
    SELECT DISTINCT(ce.event_source) AS mobile_no
    FROM CUSTEVENTSOURCE ce,CUSTHASPACKAGE cp
    WHERE (cp.package_id =119 AND ce.customer_ref = cp.customer_ref)
    AND cp.end_dat IS NULL
    AND SUBSTR(ce.event_source,1,3) ='071'
    AND cp.customer_ref IN (SELECT CUSTOMER_REF FROM CUSTHASPACKAGE
    WHERE end_dat IS NULL
    GROUP BY CUSTOMER_REF HAVING COUNT(0) =1 )
    following are the indexs corrosponding to tables exist:
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    CREATE TABLE GENEVA_ADMIN.CUSTEVENTSOURCE
    CUSTOMER_REF VARCHAR2(20 BYTE) NOT NULL,
    PRODUCT_SEQ NUMBER(9) NOT NULL,
    EVENT_SOURCE VARCHAR2(40 BYTE) NOT NULL,
    START_DTM DATE NOT NULL,
    END_DTM DATE,
    EVENT_TYPE_ID NUMBER(9) NOT NULL,
    EVENT_SOURCE_LABEL VARCHAR2(40 BYTE) NOT NULL,
    CREDIT_LIMIT_MNY NUMBER(18),
    EVENT_SOURCE_TXT VARCHAR2(255 BYTE),
    EVENT_SOURCE_UPPER VARCHAR2(40 BYTE) NOT NULL,
    RATING_TARIFF_ID NUMBER(9),
    COMPETITOR_RATING_TARIFF_ID NUMBER(9),
    EVENT_FILTER_1_ID NUMBER(9),
    RECEIVE_ACCOUNT_1_NUM VARCHAR2(20 BYTE),
    RATING_TARIFF_1_ID NUMBER(9),
    ATTRIBUTE_NUMBER_1 NUMBER(2),
    MATCH_TYPE_1 NUMBER(9),
    ATTRIBUTE_VALUE_1 VARCHAR2(32 BYTE),
    GUIDE_RULE_1_DESC VARCHAR2(255 BYTE),
    EVENT_FILTER_2_ID NUMBER(9),
    RECEIVE_ACCOUNT_2_NUM VARCHAR2(20 BYTE),
    RATING_TARIFF_2_ID NUMBER(9),
    ATTRIBUTE_NUMBER_2 NUMBER(2),
    MATCH_TYPE_2 NUMBER(9),
    ATTRIBUTE_VALUE_2 VARCHAR2(32 BYTE),
    GUIDE_RULE_2_DESC VARCHAR2(255 BYTE),
    EVENT_FILTER_3_ID NUMBER(9),
    RECEIVE_ACCOUNT_3_NUM VARCHAR2(20 BYTE),
    RATING_TARIFF_3_ID NUMBER(9),
    ATTRIBUTE_NUMBER_3 NUMBER(2),
    MATCH_TYPE_3 NUMBER(9),
    ATTRIBUTE_VALUE_3 VARCHAR2(32 BYTE),
    GUIDE_RULE_3_DESC VARCHAR2(255 BYTE)
    CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK1 ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (EVENT_SOURCE, EVENT_TYPE_ID)
    CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK2 ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (EVENT_SOURCE_LABEL, EVENT_TYPE_ID)
    CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK3 ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (RECEIVE_ACCOUNT_1_NUM)
    CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK4 ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (RECEIVE_ACCOUNT_2_NUM)
    CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK5 ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (RECEIVE_ACCOUNT_3_NUM)
    CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK6 ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (EVENT_SOURCE_UPPER, EVENT_TYPE_ID)
    CREATE UNIQUE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_PK ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (CUSTOMER_REF, PRODUCT_SEQ, EVENT_SOURCE, START_DTM, EVENT_TYPE_ID)
    CREATE INDEX GENEVA_ADMIN.SAN_CUSTEVENTSOURCE_IND1 ON GENEVA_ADMIN.CUSTEVENTSOURCE
    (EVENT_SOURCE, EVENT_TYPE_ID, START_DTM, END_DTM)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    CREATE TABLE GENEVA_ADMIN.CUSTHASPACKAGE
    CUSTOMER_REF VARCHAR2(20 BYTE) NOT NULL,
    PACKAGE_SEQ NUMBER(9) NOT NULL,
    PACKAGE_ID NUMBER(9) NOT NULL,
    START_DAT DATE NOT NULL,
    END_DAT DATE,
    SUBS_PRODUCT_SEQ NUMBER(9),
    SUBSCRIPTION_REF VARCHAR2(20 BYTE)
    CREATE UNIQUE INDEX GENEVA_ADMIN.CUSTHASPACKAGE_PK ON GENEVA_ADMIN.CUSTHASPACKAGE
    (CUSTOMER_REF, PACKAGE_SEQ)
    CREATE INDEX GENEVA_ADMIN.UDARA_CUSTHASPACKAGE_PK1 ON GENEVA_ADMIN.CUSTHASPACKAGE
    (PACKAGE_ID)
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    please help me to optimize
    Thanks
    DBA

    hi Karthick
    following is SQL plan as u requested:
    rows,plan
    ==== ====
    ,SELECT STATEMENT
    ,SORT UNIQUE
    ,FILTER
    ,SORT GROUP BY
    ,TABLE ACCESS BY INDEX ROWID CUSTHASPACKAGE
    ,NESTED LOOPS
    ,NESTED LOOPS
    ,TABLE ACCESS BY INDEX ROWID CUSTEVENTSOURCE
    ,INDEX RANGE SCAN SAN_CUSTEVENTSOURCE_IND1
    ,TABLE ACCESS BY INDEX ROWID CUSTHASPACKAGE
    ,INDEX RANGE SCAN CUSTHASPACKAGE_PK
    ,INDEX RANGE SCAN UDARA_CUSTHASPACKAGE_PK1
    I higly appriciate if any one help to optimied this sql
    sql for plan:
    EXPLAIN PLAN FOR
    SELECT DISTINCT(ce.event_source) AS mobile_no
    FROM CUSTEVENTSOURCE ce,CUSTHASPACKAGE cp
    WHERE (ce.customer_ref = cp.customer_ref)
    AND cp.end_dat IS NULL
    AND ce.event_source LIKE '071%'
    AND cp.customer_ref IN (SELECT CUSTOMER_REF
                   FROM CUSTHASPACKAGE
                   WHERE package_id =119
                   AND end_dat IS NULL
                   GROUP BY CUSTOMER_REF
                   HAVING COUNT(customer_ref) =1 )
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    this one hase change according to request. but original sql is in first in this session
    Thanks
    dba

  • Opening Bex analyser on Excel takes long time on some client

    Hi,
    We have installed BEx analyser on several PC client, on my PC BEx is opening in 2 or 3 seconds, on others it can takes 30 or 40 seconds.
    We have checked the configuration and the problem is the same on two PC having same parameters.
    Has anyone seen this problem and solved it ???
    Thank you for your help !

    Hi,
    The OS installed for everyone is XP SP2 and we are using sap logon 710 Final Release, 7100.1.3.1029 version.
    Every user works on a pc with 512 Mo RAM and 2,8 Ghertz.
    We try to maintain the same configuration for everyone that why I don't understand this difference when opening Bex Analyser .
    Thank you for your help.

  • Application Builder takes long time and Popup messages during Build

    Hi All,
    My application is slightly bigger with over 300 VI's. In between the build process I receive pop up messages asking GMath library  files etc.. are modifies would u like to save the files..? When clicked on OK button it starts saving these library files and when it saves almost half the number of files the application builder crashes and causes LabView to close. As the build process is taking more than 2 hours and end result is always an unsuccesful build due to the application builder crash I am loosing my time.
    Regards,
    Pavan
    Solved!
    Go to Solution.

    Hi,
    I recently upgraded from LV 7.1 to 2009, both the Professional versions. My program consists of several hundred vi's. Building an .exe in LV 7.1 was a snap and took maybe 30-50 seconds (not including an installer). Building the same thing in LV 2009 (build script converted to project) takes nearly 30 minutes, not including creating an installer... most of the time is spent 'processing' and then saving vi's, which LV 7 did not appear to do. I've tried the Ctrl+Shift+Run suggested by JB but this does not help. I've also applied the 2009f patch. It still takes a fair amount of memory, 0.5 GB, but my core 2 duo PC has 2 GB and there is plenty available RAM. Any suggestions/details on the differences and something I could do to cut down on the build time?
    thanks,
    Dan

  • NAC Agent takes long time to run

    Cisco NAC agent takes long time to popup or run on Windows 7 machine.
    The client machine is windows 7, running nac agent 4.9.0.42, against ISE 1.1.1
    Any ideas how to reduce NAC Agent timing?

    Hi Tariq,
    I'm facing the same issue with ISE 1.1.1 (268) with Agent 4.9.0.47 for Windows XP clients. I have already configured "yes" to disabled the l3 swiss delay and reduced the httpa discovery timer from 30 to 05 sec but still clients get aprox 2.30 minutes to popup and finished the posture discovery.
    Can you please advise if this is the minimum time or what is the minimum time and what are the parameters to set to a minimum time to complete agent popup and posture discovery..?
    Is there any option that we can run this on backgroup..?
    thanks in advance..

  • CV04N takes long time to process select query on DRAT table

    Hello Team,
    While using CV04N to display DIR's, it takes long time to process select query on DRAT table. This query includes all the key fields. Any idea as to how to analyse this?
    Thanks and best regards,
    Bobby
    Moderator message: please read the sticky threads of this forum, there is a lot of information on what you can do.
    Edited by: Thomas Zloch on Feb 24, 2012

    Be aware that XP takes approx 1gb of your RAM leaving you with 1gb for whatever else is running. MS Outlook is also a memory hog.
    To check Virtual Memory Settings:
    Control Panel -> System
    System Properties -> Advanced Tab -> Performance Settings
    Performance Options -> Adavanced Tab - Virtual Memory section
    Virtual Memory -
    what are
    * Initial Size
    * Maximum Size
    In a presentation at one of the Hyperion conferences years ago, Mark Ostroff suggested that the initial be set to the same as Max. (Max is typically 2x physical RAM)
    These changes may provide some improvement.

  • Why update query takes  long time ?

    Hello everyone;
    My update query takes long time.  In  emp  ( self testing) just  having 2 records.
    when i issue update query , it takes long time;
    SQL> select  *  from  emp;
      EID  ENAME     EQUAL     ESALARY     ECITY    EPERK       ECONTACT_NO
          2   rose              mca                  22000   calacutta                   9999999999
          1   sona             msc                  17280    pune                          9999999999
    Elapsed: 00:00:00.05
    SQL> update emp set esalary=12000 where eid='1';
    update emp set esalary=12000 where eid='1'
    * ERROR at line 1:
    ORA-01013: user requested cancel of current operation
    Elapsed: 00:01:11.72
    SQL> update emp set esalary=15000;
    update emp set esalary=15000
      * ERROR at line 1:
    ORA-01013: user requested cancel of current operation
    Elapsed: 00:02:22.27

    Hi  BCV;
    Thanks for your reply but it doesn't provide output,  please  see   this.
    SQL> update emp set esalary=15000;
    ........... Lock already occured.
    >> trying to trace  >>
    SQL> select HOLDING_SESSION from dba_blockers;
    HOLDING_SESSION
                144
    SQL> select sid , username, event from v$session where username='HR';
    SID USERNAME     EVENT
       144   HR    SQL*Net message from client
       151   HR    enq: TX - row lock contention
       159   HR    SQL*Net message from client
    >> It  does n 't  provide  clear output about  transaction lock >>
    SQL> SELECT username, v$lock.SID, TRUNC (id1 / POWER (2, 16)) rbs,
      2  BITAND (id1, TO_NUMBER ('ffff', 'xxxx')) + 0 slot, id2 seq, lmode,
      3  request
      4  FROM v$lock, v$session
      5  WHERE v$lock.TYPE = 'TX'
      6  AND v$lock.SID = v$session.SID
      7  AND v$session.username = USER;
      no rows selected
    SQL> select MACHINE from v$session where sid = :sid;
    SP2-0552: Bind variable "SID" not declared.

  • INSERT INTO TABLE using SELECT takes long time

    Hello Friends,
    --- Oracle version 10.2.0.4.0
    --- I am trying to insert around 2.5 lakhs records in a table using INSERT ..SELECT. The insert takes long time and seems to be hung.
    --- When i try to SELECT the query fetches the rows in 10 seconds.
    --- Any clue why it is taking so much time

    vishalrs wrote:
    Hello Friends,hello
    >
    >
    --- Oracle version 10.2.0.4.0
    alright
    --- I am trying to insert around 2.5 lakhs records in a table using INSERT ..SELECT. The insert takes long time and seems to be hung.
    I don't know how a lakh is, but it sounds like a lot...
    --- When i try to SELECT the query fetches the rows in 10 seconds.
    how did you test this? and did you fetch the last record, or just the first couple of hundred.
    --- Any clue why it is taking so much timeWithout seeing anything, it's impossible to tell the reason.
    Search the forum for "When your query takes too long"

Maybe you are looking for