APD query issue

hello all,
                I have a BEx query showing net revenue by profit center. profit center has hierarchy and the data is displayed at third level. I need to transfer the dataset at this level to an external system. tried using Analysis process designer, but looks like it does not support hierarchies..I can only get data at the lowest level..any ideas..
         I idea was to use APD to get data into the ods and use open hub to get data into ext. system...but without apd...we need to build comples routines to build the same logic into the ods...
thanks
sri

Hi there
I realise your issue was from a while ago, but I am experiencing the same.  Did you ever get to the bottom of this?
Rgds
Anton

Similar Messages

  • Dataset query issues twice if the dataset is connected to matrix and used in multilookup function

    hello everybody.
    could not find any information if this is an intended behavior:
    dataset query issues twice if the dataset is connected to matrix and used in multilookup function
    parameters in both queries are the same
    ssrs: 2008 r2, sharepoint 2010 integrated
    sharepoint 2010: september 2014 cu
    thanks in advance
    Sergey Vdovin

    Hello, Wendy.
    I prepared a very empty sample report for you to demonstrate the problem - with this report, i hope, there is no place to discuss the shrinking of time data retrieval.
    There is one dataset, one parameter and one lookup function. The query is executed twice.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>http://t005/ProjectBICenter/DocLib/IntegrationDBVdovin.rsds</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>7e554344-d6c2-48a5-a7f4-1d24608cb4b5</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>select 1 as temp, '$' as tempname</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="temp">
    <DataField>temp</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="tempname">
    <DataField>tempname</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportSections>
    <ReportSection>
    <Body>
    <ReportItems>
    <Textbox Name="ReportTitle">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Lookup(1,Fields!temp.Value,Fields!tempname.Value,"DataSet1")</Value>
    <Style>
    <FontFamily>Verdana</FontFamily>
    <FontSize>20pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:WatermarkTextbox>Title</rd:WatermarkTextbox>
    <rd:DefaultName>ReportTitle</rd:DefaultName>
    <Top>0mm</Top>
    <Height>10.16mm</Height>
    <Width>139.7mm</Width>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>57.15mm</Height>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Body>
    <Width>152.4mm</Width>
    <Page>
    <PageFooter>
    <Height>11.43mm</Height>
    <PrintOnFirstPage>true</PrintOnFirstPage>
    <PrintOnLastPage>true</PrintOnLastPage>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </PageFooter>
    <PageHeight>29.7cm</PageHeight>
    <PageWidth>21cm</PageWidth>
    <LeftMargin>2cm</LeftMargin>
    <RightMargin>2cm</RightMargin>
    <TopMargin>2cm</TopMargin>
    <BottomMargin>2cm</BottomMargin>
    <ColumnSpacing>0.13cm</ColumnSpacing>
    <Style />
    </Page>
    </ReportSection>
    </ReportSections>
    <ReportParameters>
    <ReportParameter Name="ReportParameter1">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>1</Value>
    </Values>
    </DefaultValue>
    <Prompt>ReportParameter1</Prompt>
    <ValidValues>
    <DataSetReference>
    <DataSetName>DataSet1</DataSetName>
    <ValueField>temp</ValueField>
    <LabelField>tempname</LabelField>
    </DataSetReference>
    </ValidValues>
    </ReportParameter>
    </ReportParameters>
    <rd:ReportUnitType>Mm</rd:ReportUnitType>
    <rd:ReportServerUrl>http://t005/ProjectBICenter</rd:ReportServerUrl>
    <rd:ReportID>cd1262ef-eca7-4739-a2ce-d3ca832d5cd6</rd:ReportID>
    </Report>
    Sergey Vdovin

  • Web Query issues

    Hi All,
    I have created a web query and assigned it to a role. I have moved the role, web templete and the query from dev to QA was able run the query fine without issues.
    The problem I am having is when I make changes to the query and transport it to QA...when I run the query from the role menu it still shows the old query instead of the changed query.
    Can someone please explain what are the steps I need to take when I make changes to exsisting web query in dev and move to QA and be able to see the changes. What are all the objects I need to collect. Also would like to know if there are any settings on the role menu or web templete that need to be changed and also any buffers that I need to cleared??
    Any help is appriciated and will give max points.
    Thanks

    BWdesi,
    please avoid reposts - it could be that due to network issues the post got posted twice... close one of them as answered and then proceed with the other one...
    Web Query issues
    Arun

  • 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

  • Query issue

    I had query issue on planning layout
    Sold    mat   price   qty   amount
    100      3        5        5          25    layout 1
    100      4       10       5          50    layout2
    when I should removed  material  cal has to come  like this
    100             15        10          75
    but I getting value like
    100        15       10       150
    can u plz tell me how to slove this
    regards
    raju

    Dear Raju,
    In the query, for the Calculated Key Figure (Amount)
       Select properties, enhanced and change to:
                          "BEFORE AGGREGATION"
    It seems to be doing after aggregation, which is  default.
    it is aggregating:
        price = 5+10 = 15
        qty   = 5+5 = 10
        Amount = 15 * 10 = 150
    Good luck, BB

  • 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 )

  • Physical query issued by Obiee when cache is on is different and slow

    When the same report runs in OBIEE 10g and cache is OFF it takes less then 1min to get results. If cache is turned ON physical query issued by Obiee is totally different and it takes 2h to get results. Has anyone experienced this with having cache on that some queries are performing poorly.
    Thanks,
    Tatjana

    We are using BI Apps Order Management and Fulfillment Analytics and all tables are cached anyway. Dimensions used are not that huge up to 40K rows. What should I check when it comes to DB query? As I said is different than one generated when cache is disabled although both have the almost the explain plan.

  • APD - Query output on to a Flat file

    All
    We are on BI 7.0 with SP13 and NWS 12. I am trying to create a new APD with source as "Query" built on Info object and target as "Flat File". There is no requirement of transformation so I am trying to map directly from Source to Target with a direct link with out using any transformations in between,
    I could check and found no errors in APD definition and when I run APD, the file is getting created both on application server and local workstation but with 0 records.
    The volume of records are expected to be around 4 millions on this query and am just wondering why APD is not writing any data on CSV file.
    Pls let me know the following;
    - What is wrong in the above process and why it is not writing data on to flat file
    - Can APD handle volume of 4 million rows even though job runs in the background?
    Your inputs in this are highly helpful and thanks for your time to provide solution.
    Thanks - Sriram

    Hi
    Thanks for your reply and I could solve this issue and found the root cause.
    The very purpose of this APD is to provide a list of business partners to an upstream systerm with few attributes and in this process one of my consultant has deactivated the key figure in the query which is an input for APD process.
    When the key figure is inactivated ( this is the only key figure in the query ), APD does not recognize query as a valid one and sends out an error message.
    When we re activate the key figure ( I have hidden this later using APD transformations to hide the column and send output to a flat file on to unix server ) in the query, the APD runs fine and could deliver the output in flat file.
    Thanks

  • APD timeout issue in execution

    Good afternoon,
    Please anybody knows about this issue? the problem description is the following:
    We have an APD in a Process Chain, this chain was running well in previous dates, but when we run it yesterday and a issue happened.
    The message that appears in common in the 3 APD's that failed when double-click is the following:
    And the process monitor shows the following log:
    As we can see the duration of the Job was 20.787 Seconds and that is not normal because when
    we run the query using RSRT or BEX the result of the query appears in 15
    seconds, so the problem is in Data Source of each APD because the time out
    problem is in execution of the Query that is the data source.  in the next 3 screens we can see it:
    When we check in the TX ST22 The list of Runtime Errors shows that is an TIME_OUT error:
    As we can see the APD is composed by the datasource in this case is a Query and there is
    an aggregation and then the data of the selected fields are written in a DSO.
    When right click and select the option "Display Data" in the APD the execution
    begins but never ends, there is the Time_Out Error.
    The properties of the Data Source in the APD about Extended Settings Tab is the following:
    When we check the TX SM50 In the following screen we can see that is a CL_SQL_RESULT_SET
    Thank you very much if anyone can help or advice to discover the cause of this problem
    and how to solve it.
    Kind regards,
    Luis Jorge

    Hi, I see you have an object aggregation. My recommendation is to redefine the query you delete this object and subtract rows to the query.
    I hope help. Regards.

  • APD : Query to ODS ?

    Dear All,
    I have to push data coming from a query report on Stock to a transactional ODS using APD.My aim is to make a multicube of this ODS and another cube. In APD the structure I made
    Query-----Filter--
    ODS.
    But in the query there is a keyfigure : Total Stock Issue Vol : (CK_TSIVOL) which is used many times using different conditions and exceptions e.g. it is used to find TRF out , F2b Issue Vol , Total Issues , Sales which are all different columns in the report . In my ODS I have included this key figure. But how do I link the different fields in query as shown above to 1 field(CK_TSIVOL) in ODS?
    Regards,
    Ratish

    Ratish,
    APD would not work with conditions.... and the best way to check the same would be to extract the query using rscrm_report or rscrm_bapi and that is the data that will go into the transactional ODS...
    As for your ODS design - create key figures in your transact ODS for the other fields and then map the query to the same...
    Arun

  • 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

  • APD Performance Issue

    Hi Experts,
      I have create an APD with Query ( on a multiprovider ) as a datasource. This query is a complicated one with lots of preaggregations and stuff and it has to read through a bulk of data.
      When I run this query in RSRT I get the output in around 45-50 minutes.
      But when I use this query as data source for the APD the query takes a lot of time ( 5 hrs ) to execute
    i.e the APD gets stuck in CL_SQL_READ step. There's a routine step and an aggregation step within the  APD and these two steps hardly take time.
    What I find to be strange about this situation is that how could a query that takes 45-50 mins to execute in rsrt takes 5 hours when used as a data source of an APD?
    Has any one faced this problem before? Any help from you guys will be appreciated.

    Hi Adviat,
    I faced simillar problem when used Query as a source for the APD.
    In order to overcome the perfromance issue i have used the InfoProvider as the Source in APD insteadof Query.
    The performance is even better than the query.
    You can perform Calculated Key figures & Restricted Key Figures using the ABAP Routine within APD.
    You can write to me if you need more help on this.
    Regards
    Ramesh
    [email protected]

  • 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.

  • 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

  • APD Query with estructure

    I guys
    I have a query with estructure and selection, but when use this query in the process APD how datasource, show the next issue...
    The technical field name KYF_0001 for field 48PZJIN0JCKGZKDDE2NCD3WUA may only appear once per input or output structure
    Technical key for message: CX_RSAN_SVC_CHECK_ANALYSIS_N=>NODE_FIELDNAME_NOT_U
    I saw the name´s of each element in the APD process and have two elements with the same name  KYF_0001, but I don´t know where changue these.
    Thanks by your help

    Hi Marcos,
    well, there are some restrictions when using a query in APD. Please see note 751577 for details. A query needs to have one structure (namely for keyfigures) only. APD tries to generate a table with columns just on basis of the query definition, i.e. a fixed table structure. Hence, the drill down is put into the rows. And in the drill down, only characteristics are allowed, not structure members.
    Cheers,
    Thomas

Maybe you are looking for