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

Similar Messages

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

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

  • Running Query on ODS Vs Multiprovider

    I would like to know the efficient method of running the queries on 1) OD'S directly 2)Create Multiprovider on ODS and run the queries using Multiprovider.
    Which method we have to adopt in which contexts. Please help me.
    thanks
    anuthalapti

    Dear Anila,
         You can always make use of Multiprovider to build queries, as the change in the data model would not impact on the Multiprovider and Query design. You can use a query on ODS , if its going to be only on that particular ODS , if you have Queries on two ODS Objects, always make use of Infosets, in this way you could eliminate any data mismatches..as they are both flat table structures.
    Hope it helps..
    Thanks,
    Krish

  • APD erases old ODS data

    I am using an APD to load a ODS from a query. However, the old data gets deleted every time I execute the APD and do a new load. How can I overcome this and keep the old data as well?

    That is how APD is going to do, but there is another feature which I haven't used. You could load the data from the Transactional ODS to the cube every time you load the data.
    thanks.
    Wond

  • APD -  Query metadata is incomplete

    Hi
    I have a problem with a basic APD made of a query as a data source and an ODS as a target
    When executed it ends with 'Query metadata is incomplete'.  Anybody know how to manage this 'query metadatau2019
    Thanks in advance for your answers.
    Thanks
    Sai

    HI
    I am facing problem with APD, when executed it ends with 'Query metadata is incomplete'. Anybody know how to manage this 'query metadatau2019
    Thanks
    Sai

  • 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

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

  • 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

  • Dates to compare in query from ODS

    Hello,
    I am just starting to use Bex Query Designer and don't know how to compare 2 dates.
    Example is ODS from PM-ORDERS area.
    For one order I have to compare 2 dates and count the total of orders if date 1 < date 2. These 2 dates are in the record PM-ORDERS.
    I tried with variables and replacement path as date 1 less than variable but replacement path only propose equal not less than option. Is there an other way to do this instead of exit user ?
    Thanks in advance.
    Valerie.

    Hello again,
    you can't compare values of 2 characteristics in BEx. You can compare only key-figures. Selections won't help in this case.
    You can create 2 key-figures of type DATS and add them to ODS, modify update rules and reload data. Then you will have each date stored twice - one as characteristic second one as key figure. Now you can create formula COUNT(K_DATE1 - K_DATE2) which is what you need. Count gives you 1 if the day difference is greater that 0.
    Or you can create 1 additional characteristic of type CHAR(1) that will indicate the condition. Add it to ODS, and create formula in update rule.  IF (C_DATE1 > C_DATE2, 'X', ' ') Then you're able to create selection on record count with 'X'.

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

  • FLASH CS5: JAVA RUNTIME ERROR

    Hi Guys! I'm facing a serious problem that I can't figure out how to solve it! I installed the Flash CS5 trial and each time I launch the application, a windows with the message (error initializing java runtime and may need to reinstall Flash ) That'

  • Cannot access external drive ITS INVISIBLE

    I just control clicked my external hard drive and I unintentionally changed something under ownership and permissions and now I can not see or access the drive. -I attempted to use disk warrior to restore and it did nothing. -Disk Utility was able to

  • Logic Pro system overloaded and MIDI clock problems with Intel

    Hi I'm not a super-powerful-rich music producer. I have owned an iMac G5 1GB of RAM for tree years with a lot of problems with the memory, but i could achieve a quite good knowledge of Logic Pro 7.1.1. The thing is that with my new iMac that has a la

  • WAAS / Active-Standby PIX Firewalls

    Hi - So we are exploring ways to implement WAAS in our network and our connection into our WAN contains two PIX firewalls in Active/Standby mode with a connection to a single 3560 switch. I understand WAAS can do failover when connected in a daisycha

  • Android phone

    I'm having trouble with Skype using my Android. Sometimes my friends try to call on Skype and i never receive their calls.