Analyzer Query Execution vs. APD Query Execution

hi gurus,
i have a problem with an execution of a query in BI 7.0. the query is based on a DSO.
if i execute the query in bex analyzer, i get the result within 30 seconds.
but if i execute the query in an APD, it will take several hours to complete the job.
i checked the RSRT to view the query execution plan - here it is:
SELECT "O1"."COMP_CODE" AS "K____240" ,"O1"."RECONTRACT" AS "K____301" ,"O1"."FISCVARNT" AS "K____181"
,"O1"."/BIC/ZIMIMNPER" AS "K____535" ,"O1"."BUSENTITY" AS "K____237" ,"O1"."/BIC/ZIMIMGEBL" AS "K____1098"
, COUNT( * )  AS "Z____131" , SUM (  "O1"."/BIC/ZIMIK_113"  )  AS "Z____1886" ,
SUM (  "O1"."/BIC/ZIMIK_183"  )  AS "Z____1908" , SUM (  "O1"."/BIC/ZIMIK_201"  )  AS "Z____1998"
FROM "/BIC/AZIMODSSM00" "O1"
WHERE
( ( ( ( "O1"."/BIC/ZIMIMNPER" = '2010009'
) ) AND  ( ( "O1"."/BIC/ZIMIMZBR" IN ( 'BEQ' ,'REFX3' ,'REFX4' ,'REFX6') ) ) ) )
GROUP BY "O1"."COMP_CODE" ,"O1"."RECONTRACT" ,"O1"."FISCVARNT" ,
"O1"."/BIC/ZIMIMNPER" ,"O1"."BUSENTITY" ,"O1"."/BIC/ZIMIMGEBL"
but when i check the SQL statement for the APD in SM51, i found this statement:
SELECT   "S0000"."SID" ,"P0000"."COMP_CODE" ,"P0000"."BUSENTITY"
FROM   "/BI0/PBUSENTITY" "P0000" JOIN "/BI0/SBUSENTITY" "S0000" ON  "P0000" . "BUSENTITY" = "S0000" . "BUSENTITY" AND "P0000" . "COMP_CODE" = "S0000" . "COMP_CODE"
WHERE   "P0000"."OBJVERS" = 'A' AND "S0000"."SID" IN ( SELECT "S"."SID" FROM "/BIC/AZIMODSSM00" "O" JOIN
  "/BI0/SBUSENTITY" "S" ON  "O" . "BUSENTITY" = "S" . "BUSENTITY" AND "O" . "COMP_CODE" = "S" .
  "COMP_CODE" )
ORDER BY
  "COMP_CODE" ASC , "BUSENTITY" ASC#
could you help me understanding the difference and the cause for it?
i think, there are some validitycheckings executed for masterdata!? is it possible to disable these steps?
here some more information:
in the query, i'm using two compound characteristics and an constant selection for a restricted keyfigure. the characteristics all have access type for result values: posted values.
regards,
philipp

Hello,
Check this note:
Note 751577 - APD-FAQ: Data source query
This note helps with the following problems:
Question 1: Query execution terminates or takes too long. What can I do?
Question 2: The data in the analysis process does not correspond with the data in the Business Explorer. What is the cause of this?
Question 3: When you execute the analysis process, the system issues error message B1 888: "For the ISO code &1 there is no unique SAP currency code for ALE". What does this mean?
Question 4: When you execute the analysis process, the system issues error message RSAN_WB 010 (CX_RSAN_SVC_CHECK_ANALYSIS_N=>NODE_FIELDNAME_NOT_UNQIUE). What does this mean?
Regards,
Jorge Diogo

Similar Messages

  • How can I get the elapse time for execution of a Query for a session

    Hi ,
    How can I get the elapse time for execution of a Query for a session?
    Example - I have a report based on the procedure ,when the user execute that it takes say 3 min. to return rows.
    Is there any possible way to capture this session info. for this particular execution of query along with it's execution elapse time?
    Thanks in advance.

    Hi
    You can use the dbms_utility.get_time tool (gives binary_integer type value).
    1/ Initialize you time and date of beginning :
    v_beginTime := dbms_utility.get_time ;
    2/ Run you procedure...
    3/ Get end-time with :
    v_endTime := dbms_utility.get_time ;
    4/ Thus, calculate elapsed time by difference :
    v_elapsTime := v_endTime - v_beginTime ;
    This will give you time elapsed in of 100th of seconds...
    Then you can format you result to give correct print time.
    Hope it will help you.
    AL

  • Getting an error when i am execution a BI query using ABAP.

    Hi Expert,
    I am getting an error when i am execution a BI query using ABAP. Its Giving me this Error "The Info Provider properties for GHRGPDM12 are not the same as the system default" and in the error analysis it saying as bellow.
    Property Data Integrity has been set differently to the system default.
    Current setting: 0 for GHRGPDM12
    System default: u2019 7 u2018
    As I am very new to BI and have very limited knowledge, so I am not able to understand this problem. Can any one help me to resolving this issue. Previously it as working fine, I am getting this error last 2 days.
    when i am debugging , I am getting error from
    create instance of cl_rsr_request
    CREATE OBJECT r_request
    EXPORTING
    i_genuniid = p_genuniid.
    this FM. Its not able to create the object. Can any one please help me out.
    Thanks in advance.
    Regards
    Satrajit

    Hi,
    I am able to solve this problem
    Regards
    Satrajit

  • Can we suppress execution of a query so as to optionally execute queries in data modl

    Can we suppress execution of a query so that we optionally execute queries?0
    I have a combo box in Parameter Form. It has 3 options. I have 3 queries in Data Model.
    I want to execute only one of these 3 queries based on user's selection from combo box.
    I want that other 2 queries do NOT execute at all for that processing cycle. Next time user selects other option and an other query is executed and other 2 are NOT executed and so on.
    Is it possible in Reports 6i in Client/server?
    Pl. guide.
    Tariq

    Include:
    AND :parameter = <this query's value> (e.g. 1 or "SALES" or whatever)
    in each query's where clause. Because this is 2 constants (as far as the SQL interpreter is concerned) it will evaluate it first. If the parameter is set to a value not for this query then it will return no rows with minimal overhead.

  • Execution time of query on different indexes

    Hello,
    I have a query on the table, the execution time has hugh difference using different indexes on the table. The table has about 200,000 rows. Any explaination on it?
    Thanks,
    create table TB_test
    ( A1 number(9),
    A2 number(9)
    select count(*) from TB_test
    where A1=123 and A2=456;
    A. With index IDX_test on column A1:
    Create index IDX_test on TB_test(A1);
    Explain plan:
    SELECT STATEMENT
    Cost: 3,100
    SORT AGGREGATE
    Bytes: 38 Cardinality: 1
    TABLE ACCESS BY INDEX ROWID TABLE TB_test
    Cost: 3,100 Bytes: 36 Cardinality: 1
    INDEX RANGE SCAN INDEX IDX_test
    Cost: 40 Cardinality: 21,271
    Execution time is : 5 Minutes
    B. With index IDX_test on column A1 and A2:
    Create index IDX_test on TB_test(A1, A2);
    Explain plan:
    SELECT STATMENT
    Cost: 3 Bytes: 37 Cardinality: 1
    SORT AGGREGATE
    Bytes: 37 Cardinality: 1
    INDEX RANGE SCAN INDEZ IDX_test
    Cost: 3 Bytes 37 Cardinality:1
    Execution time is: 1.5 Seconds

    Additional you should check how many values you have in your table for the specific column values.
    The following select might be helful for that.
    select count(*)  "total_count"
           ,count(case when A1=123 then 1 end) "A1_count"
           ,count(case when A1=123 and A2=456 then 1 end) "A1andA2_count"
    from TB_test;Share your output of this.
    I expect the value for A1_count still to be high. But the value for A1+A2_count relatively low.
    However 5 minutes is far to long for such a small table. Even if you run it on a laptop.
    There must be a reason why it is that slow.
    First thing to consider would be to update your statistics for the table and the index.
    Second thing could be that the table is very sparsly fillled. Meaning, if you frequently delete records from this table and load new data using APPEND hint, then the table will grow, because the free space from the deletes is never reused. Any table access in the execution plan, will be slower then needed.
    A similar thing can happen, if many updates on previously empty columns are made on a table (row chaining problem).
    So if you explain a little, how this table is filled and used, we could recognize a typical pattern that leads to performance issues.
    Edited by: Sven W. on Nov 28, 2012 5:54 PM

  • Getting an error when i am execution an BI query

    Hi Expert,
    I am getting an error when i am execution an BI query using ABAP. Its Giving me this Error  "The Info Provider properties for GHRGPDM12 are not the same as the system default" and in the error analysis it saying  as bellow.
    Property Data Integrity has been set differently to the system default.
    Current setting: 0 for GHRGPDM12
    System default: u2019 7  u2018
    As I am very new to BI and have very limited knowledge, so I am not able to understand this problem. Can any one help me to resolving this issue. Previously it as working fine, I am getting this error last 2 days.
    when i am debugging , I am getting error from
    create instance of cl_rsr_request
      CREATE OBJECT r_request
        EXPORTING
          i_genuniid = p_genuniid.
    this FM. Its not able to create the object. Can any one please help me out.
    Regards
    Satrajit

    Hi,
    I am able to solve this problem
    Regards
    Satrajit

  • Query to know number of executions of one day

    Hi,
    i need a query to get number of executions of the sql per day

    What database version ?
    You mean there is one sql statement you want to check daily executions ? Does it have the same sql ID each time ? If so then you could select from v$sql / v$sqlarea every 24 hours and compare counts from the previous runtime.
    Are you collecting statspack and awr snaps ? If so then you may be able to run a report to view executions in 24 hour periods.

  • APD - Query as Datasource

    Hello,
    We have an APD, that uses Query as a Data source. The query is built on Inventory Inforpovider and contains the Non-cumulative KYFs.
    We have used partitioning due to large result set returned by the query.
    This APD seems to be executing for very long time (over 15 hours)- we haven't seen a successful end to this run.
    However, when tried to execute to one or two plants, the execution time is quite less(less than 10 mins).
    Any suggestions to reduce the runtimes. we are currently on SAP 7.4 BW on HANA.

    Hi Anass,
    The cube is an In-memory cube. The cube is not compressed - since we are in QA and have started with our initial loads.
    By Partitioning I meant, using extended settings in APD.
    We had referred the document. Thanks!
    Cubes have been loaded fine. our issue lies with the APD runtime. Its taking more than 24 hours.to complete for a single month.
    Our further analysis referred to the process getting stuck at CL_RRMS_APPL_LOG==============CP in SM50. we could see all the records loaded in Direct-Update DSO in less than an hour but the process gets stuck at this process and takes more than 24 hours to complete.

  • Did analyzing of a table make faster execution????

    Did analyzing of a table make faster execution?????I have written a package and it is taking 30 minutes to execute.....Plz help me.....

    - I assume you mean "Does analyzing a table improve the performance of queries?"
    - What version of Oracle?
    - Are you using the rule-based optimizer (RBO)? Or the cost-based optimizer (CBO)?
    - Have statistics ever been gathered on the table(s) involved in your procedure? If so, are the statistics still accurate? Or has there been a substantial amount of change to the table since statistics were last gathered?
    - How do you normally gather statistics.
    If you are using the CBO and your statistics are missing or out of data, gathering fresh statistics should give the optimizer better information from which it should generate better query plans. If your code is slow because a particular SQL statement is using a suboptimal plan because statistics are incorrect, that would improve the performance of your procedure. Because there are many other reasons that code might be slow, and because we don't know whether the optimizer has made an incorrect decision or whether the existing statistics are misleading or even whether the statistics matter to the optimizer you're using, we can't say anything more definitive than "maybe".
    Justin

  • Problem in Query change in APD

    Dear All,
    I have created APD  using one query. but according to business requriments i have modified the query and Transactional ODS, but i am facing problem in adding sames query with New changes in my existing APD.
    is there any way to add same or New query in existing APD.
    please help.
    Thanks & Regards,
    Omkar

    Try this ?
    T.Code--->RSANWB
    1.Select  APD from Apllication server
    2.Create
    3.Application   -
    >Genaral
    4.Continue
    5.Select Data Source (Which You want to Transform)
    6.Select the Datatarget
       Drag &Drop on the work area
    7.Select your Target Area
        Overwrite complete content filter icon
    8.Double click on the Transfermation icon
    9.Make link Between source query & Filter & Target
    10.Double click on filter
    11.Filed selection for range value
         --->All fileds
         --->Transfer the Fileds
      Doulble click on Transfermation icon Field assigment
    >Select Automatic assigmnet icon-->Save
    >Continue -
    >SAVE

  • APD Query populating Transactional ODS

    Hi ,
       1) How do we find out if a Transactional ODS is populated by an APD Query. Where will this information be mentioned?
       2) If we dont know the name of the APD Query, but we know the transactional ODS, can we find out the APD query name.
       3) Is an APD Query created like a normal query?
       4) If we know the name of the APD Query, then where do we go and check it?

    Hi,
    You can chek the APD using Tcode RSANWB. Check your particular APD and dbl click on that you will get all information where it is picking and where the data populating.
    check this
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/96939c07-0901-0010-bf94-ac8b347dd541
    and sap help
    http://help.sap.com/saphelp_nw2004s/helpdata/en/39/e45e42ae1fdc54e10000000a155106/frameset.htm
    and service.sap.com/bi
    https://websmp206.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000585703&
    The SAP course that covers APD is BW380 - SAP Business Intelligence: Analysis Processes
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/frameset.htm
    Reg
    Pra

  • APD query key date with variable for time dependent MD display attributes

    Hello,
    In a APD I use a query as a source with a query key date that is filled with a customer exit variable.
    When I run the query as a user, the time dependent MD display attributes look fine. However, when I use the query in an APD, I get no values for the time dependent display attributes.
    Any suggestions?
    Thanks

    Hi,
    Try to run query using RSCRM_BAPI Tcode, this you can also schedule in background
    Thanks
    Reddy

  • Query Variant in APD not working properly

    Hi
    Guyz,
    I have an issue using a Query Variant in APD.
    My APD has data populating from a Query to a DSO.
    When I run the query itself by using the variant it runs fine
    but when i use the same query variant in the APD its giving an error.
             I am saving the  varaint  for current Fiscal year period
    i.e say 0072008 (as july 2008) and when i run query itself with this variant its fine but when i use the same in APD its giving the following error.
         *" Value "08007" for variable "Fiscal Year/Period (Selection Options, Optional)" is invalid "*     
    Its interpreting the variant in a wrong way.
    We are on BI 7.0 patch 14.
    Your help is Appreciated.
    Thanks
    Jay.

    Shashi,
    I think thats not my issue because I can use that variant but its interpreting the Fiscal year period in a wrong way.
    Thanks
    Jay.

  • Can we run APD query on Forground

    Hi
    can we run APD query on Forground   is it possible

    you can execute the same from RSANWB and this executes the same in foreground ( dialog work process )

  • APD Query against ODS - BI7

    Hi,
    Executing a query in APD against an ODS is causing it to first do 'subselects' for each characteristic  - scanning the whole ODS to find all values - before it does the main select (again scanning the ODS I think).
    If I have a FISCPER field in ODS and query, it is first selecting all the FISCPER values by joining the ODS and SID table (which is useless in my view) and seems to repeat it for each char in the query.
    This happens consistently - in APD and RSCRM_BAPI, so I assume it is to do with the MDX generated for the query. The same query in Bex goes to select all the query fields in one table scan of the ODS and runs much faster (this is a huge ODS).
    The same used to run fine in 3.5.
    We are on SP14 and there are no notes for MDX on ODS that we could find relevant.
    Any ideas?

    Ajay,
    Did OSS note 1016067 correct the issue?  I am experiencing the same problem at BI 7 SP16 and I doubt we will be able to apply 1016067 since it was included in SP13.
    Please let me know as soon as you can.
    Thanks,
    Michael

Maybe you are looking for

  • Key fields in a cube?

    Hai all,           If we have an invoice, in ODS, its can be uniquely identified with a key(combination of, for example, company code, customer, sales district etc.) But how can we identify a unique invoice in Cube. I know that the basic model of ods

  • How to develop most economical source in BMM layer

    how to develop most economical source in logical table under BMM layrer->Logical Source

  • Getting a SQL exception when trying to coonet to SQL2000.

    Hi, I am getting the follwoing error when I run my Jrun on the server. My application is trying to talk to IPC(Internet Pricing COnfiguration) using TDS Driver. Now we upgraded the server to MSSQL2000 and OS as Window2000. here is the error. com.sap.

  • SLD (CIM_ERR_ALREADY_EXISTS : INSTANCE ALREADY EXISTS )

    Hi All, While creating SLD at Step 6 Select one or more Software product and then software component that are installed in this system I have selected below items Installed product                    Installed Component SAP Web AS 7.00 ;            

  • Two running instances of Weblogic on the same machine

    I need to run at least two instances of Weblogic on the same machine. My Company GE Capital purchases the Clustered version and the BEA Engineer who did the install did not know Unix and could not intall the instances. Could you please give pointers