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.

Similar Messages

  • BW Query as datasource for generic extractor...

    Hi,
    I want to use a BW Query as DataSource for a generic extractor, the objective is fill an InfoCube from the result of that query. It is possible? If can it be done, how?
    Thanks.
    Enrique.

    Hi Enrique,
    You can achieve this with the APD. See this for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Hope this helps...

  • 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

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

  • One Query, Two Datasources

    Is there a way to run a query on two separate datasources? I
    would like to compare the data in two separate MS Access databases.
    Thanks.

    You won't be able to combine two datasources in one cfquery,
    so one way might be for you to query each datasource, then compare
    the two results using a Q-of-Q.
    Phil

  • 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

  • Load Master Data InfoObject using Query as Datasource

    I there a way to use a BW Query as a Datasource to load a Master Data InfoObject.  I have a query that calculates DSO for a customer and would like to update a custom DSO attribute in 0Customer

    As Bhanu mentions, Analysis Process Designer would be an option.  I did not use it before 3.5, but I know it did not have all the capabilities it has with 3.5.
    I don't think there is any need for transactional ODSs in the process however. You can specify your query as the DataSource, specify any filtering / transformations needed, and then specify the InfoObject that is the data target.  I haven't used a query to create Master Data with it but I do use it to take Master Data as input, manipulate it, and then update that Master Data.
    The APD is covered in BW380 along with Data Mining - which is a good class if anyone is interested.
    Is it easy enough for someone to pickup without training on it? I don't know - I think it would be for someone that has experience with the BW Admin Wkbench and has time to experiment. I think the related Data Mining features would require training.
    APD has a lot of powerful capabilities that could be used to solve a variety of challenges not readily solved with the Admin Wkbench tools.  I'm not sure why SAP hasn't done more to promote it.

  • 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

  • Query for Datasource problem

    I have made an database based xfl function as:
    declare function tns:add_months($da as xs:dateTime,$val as xs:int) as xs:dateTime? external;
    and when i am calling this function in an Data sService is is giving me this error:
    The function is defined for the following datasources: [null]

    i am using a Database based xfl function for incorporating add_months function of sql:
    declare function tns:add_months($date as xs:dateTime,$value as xs:int) as xs:dateTime? external;
    This was working fine when i called it in another funcition where clause(see attacment for it's query plan-CorrectQueryPlan.xml)
    But after changing the JNDI name when i am using it in the same function where clause i am getting this error:
    Unable to generate SQL for XQuery expression: Cannot generate SQL for the user-defined function {lib:ShipmentsDataServices/XqueryLibrary/Test}add_months for datasource pg.dtmg101DS. The function is defined for the following datasources: [null]
    see attacment for it's query plan-Error.xml)
    I have also trie to create a new Database based xfl and trie to use it in a where clause of some other data Service then also it is showing me the same above error.
    please help me solving this.
    thanx
    Anand

  • Infoset Query in Datasource.

    I'm using a Infoset query based on an ABAM program as a datasource. For passing parameters, form Infopack to the program I defined the parameters in the Infoset (SQ02 -> Extras -> Selections -> parameters). After doing this, when I include this Infoset in my new Datasource and save it, I'm not getting the paramter defined in the Infoset. All other fields in Infoset look fine. The parameter defined should appear in Datasource as PARAM_P_<param name>, which can be used as selection parameter in the Infopack. Can anyone tell what I'm missing out and where?
    Thanks in advance!
    - Sree

    Hi Sree,
    Try testing your datasouce in your source system with tcode RSA3? Can you get data back from that?
    Have you defined that field as a selection field in RSO2?
    Hope this resolves the issue for you. Cheers!

  • 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 3 Datasources at once

    I need to have the user of my application type in a search string into a field and then show the results of three different queries on the web page.
    Currently I'm trying to use DataTags to do this. Ideally I'd like to associate three Datasource datatags to one DataQuery Datatag. This looks like I would have to modify the tag library to accomplish this.
    Is there an easier way to do this? Or, can somebody please point me the in the correct direction to make modifications to the Data Tag tag library.
    Thanks.

    Try using a single view object + one data source. You can create view objects that join a number of entity objects. You can also parameterize the view object with query parameters.

  • 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

  • BW query as datasource

    Hi all,
    When i am using BW query as a datasource and connecting to universe ,
    the settings are
    1)BW query must be released to OLE DB for OLAP
    2)You allow external access to Bw query.
    I know how to do the 2 nd setting but how do the 1st setting.
    1)BW query must be released to OLE DB for OLAP.
    Please help me out.
    Thanks,
    Kiran.

    i got the solution

Maybe you are looking for

  • Can't reach recovery on 10.6.8 and lost discs

    Hi, My friend has a Mac which I am guessing is from around 2010 / 2011, which has 10.6.8 installed. It will boot to desktop OK, but hangs shortly after with the rainbow wheel, but you are still able to move the mouse around, but just not click on any

  • Displaying 4 as tick mark in pdf in mozilla firefox 20.0

    I am displaying a pdf in aspx page. In mozilla firefox 20.0, instead of tickmark , 4 is displaying. i.e. when a radiobutton is selected, instead of Tick mark pdf is getting displayed with 4. i am not facing this issue with older mozilla firefox versi

  • Synchronization Oracle10g DB tables to OID

    hi,all I am configuring oid to synchronize with Oracle10g DB tables. As the document in: http://download.oracle.com/docs/cd/E10773_01/doc/oim.1014/e10528/odip_db.htm said ,I do all the configuration right after it's guidance. But there are some probl

  • LR5 stopped moving files between folders

    Hi everybody, I've noticed today that my LR5 stopped moving files between folders, I select files I want to move and drag them over to a new location like I always did before with only difference is now nothing happends, no messages with errors, noth

  • Slow to load webpages over Airport, but not Ethernet

    I just bought a Macbook (basic configuration) and am frustrated when using the internet. Every time I try to load a webpage, it takes a long time to load, but once the images start appearing, the rest is very fast. This only happens when using Airpor