Conditions in APD

Hello All,
Is it possible to use conditons in a query to be used in the APD process? We are on BW version 3.1 and are trying to use the APD process but it seems as if the conditions are not used when we do our extraction using the APD process.
Many Thanks
Bryn

Hello Bryn,
I worked in the past with the APD and conditions in the query. It worked but you have to consider some restrictions which drove me crazy at that time. Details can be found in the following OSS notes:
605208     RSCRM - Restrictions
605208     RSCRM: Performance 
I hope it helps.
Best regards,
Stefan

Similar Messages

  • Performance of APD with source as 'Query with conditions'

    Hi,
    I have a question regarding the performance of an APD query with conditions when it is run in the background.
    I have an infocube with 80 million records.I have a query to find Top 15 (Condition In query) Customers per territory.
    With the help of an APD Query (Source) i wanted to populate the details (customer category , etc) of the Top 15 Customers into a DSO (Target)
    Right now it takes 6 minutes to run the query in web.
    I wanted to know how feasible it is to use an APD (run in backgrnd) to dump the results of the BEx query (which has conditions Top 15) into DSO.
    Also , what other options do i have ?
    Appreciate your answers.
    Regards

    Thomas thanks for the response.  I have checked the file on the app server and found that the lines with more than 512 characters are being truncated after 512 characters.  Basis team is not aware of any such limits on the app server.  I am sure few on the forum would have extracted data to a file on the application server using APD.  Please note that the file extraction to the client workstation is working as expected (posts lines more than 512 characters).

  • APD with Query (conditions ) !

    Hi,
    1. I am trying to run a Query (with Top 15 Condition) using the APD and dump the results  into a file on   Application server.
    The query takes 5 min when run on BEx web and retrieves 35,000 records with just 3 columns.
    But when i run APD its short dumps after 2 hours
    Is it because i am using Conditions in the query  or because  of APD cant handle 30 million of records from the cube which i have ?
    I appreciate if you any one can  throw some light on this
    Thanks

    I did remember some note that said that conditions were a big no in terms of using the same in an APD...
    Maybe this will help
    Note 751577 - APD-FAQ: Data source query
    Edited by: Arun Varadarajan on Mar 19, 2009 10:28 PM

  • APD Failure with  Exception condition "OBJECT_NOT_FOUND" raised.

    Dear All,
    I am executing an APD in my system to clear the contents  of 2 of its Fields in a Master data by loading data to itself and initializing  the 2 fields that needs to be cleared off.
    I have executed the APD  few times and am getting the same error message.
    Any pointers for the same are really helpful.
    Thanks & Regards,
    Ganesh Thota.

    Do a RSRV test for master data object then try to run the APD.

  • Urgent: Performance problem with where clause using IN and an OR condition

    Select statement is:
    select fl.feed_line_id
    from ap_expense_feed_lines_all fl
    where ((:1 is not null and
    fl.feed_line_id in (select distinct r2.object_id
    from xxdl_pcard_wf_routing_lists r2,
         per_people_f hr2
    where upper(hr2.full_name) like upper(:1||'%')
              and hr2.person_id = r2.person_id
    and r2.fyi_list is null
              and r2.sequence_number <> 0))
    or
    (:1 is null))
    If I modify the statement to remove the "or (:1 is null))" part at the bottom of the where clause, it returns in .16 seconds. If I modify the statement to only contain the "(:1 is null))" part of the where clause, it returns in .02 seconds. With the whole statement above, it returns in 477 seconds. Anyone have any suggestions?
    Explain plan for the whole statement is:
    (1) SELECT STATEMENT CHOOSE
    Est. Rows: 10,960 Cost: 212
    FILTER
    (2) TABLE ACCESS FULL AP.AP_EXPENSE_FEED_LINES_ALL [Analyzed]
    (2) Blocks: 8,610 Est. Rows: 10,960 of 209,260 Cost: 212
    Tablespace: APD
    (6) TABLE ACCESS BY INDEX ROWID HR.PER_ALL_PEOPLE_F [Analyzed]
    (6) Blocks: 4,580 Est. Rows: 1 of 85,500 Cost: 2
    Tablespace: HRD
    (5) NESTED LOOPS
    Est. Rows: 1 Cost: 4
    (3) TABLE ACCESS FULL XXDL.XXDL_PCARD_WF_ROUTING_LISTS [Analyzed]
    (3) Blocks: 19 Est. Rows: 1 of 1,303 Cost: 2
    Tablespace: XXDLD
    (4) UNIQUE INDEX RANGE SCAN HR.PER_PEOPLE_F_PK [Analyzed]
    Est. Rows: 1 Cost: 1
    Thanks in advance,
    Peter

    Thanks for the reply, but I have already checked what you are suggesting and I am pretty sure those are not causing the problem. The hr2.full_name column has an upper index and the (4) line of the explain plan shows that index being used. In addition, that part of the query executes on its own quickly.
    Because the sql is not displayed in an indented format on this page it is a little hard to understand the structure so I am going to restate what is happening.
    My sql is:
    select a_column
    from a_table
    where ((:1 is not null) and a_column in (sub-select statement)
    or
    (:1 is null))
    The :1 bind variable is set to a varchar2 entered on the screen of an application.
    If I execute either part of the sql without the OR condition, performance is good.
    If the :1 bind variable is null with the whole sql statement (so all rows or a_table are returned), performance is still good.
    If the :1 bind variable is a not-null value with the whole sql statement, performance stinks.
    As an example:
    where (('wa' is not null) and a_column in (sub-select statement)) -- fast
    where (('wa' is null)) -- fast
    where (('' is not null) and a_column in (sub-select statement) -- fast
    or
    ('' is null))
    where (('wa' is not null) and a_column in (sub-select statement) -- slow
    or
    ('wa' is null))

  • Loading complex report data into a direct update DSO using APD

    Dear All,
    Recently, I had a requirement to download the report data into a direct update DSO using an APD. I was able to perform this easily when the report was simple i.e it has few rows and columns. But I faced problems If the report is a complex one. Summing up, I would like to know how to handle the scenarios in each of the following cases:
    1.   How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
          key fields of DSO and the remaining to the data fields? Correct me.
    2.   What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
          system and then include these in the DSO data fields to accommodate the extracted data ?
    3.   How do I handle the Free Characteristics and Filters ?
    4.  Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
         use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
         shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    I would appreciate if someone can answer my questions clearly.
    Regards,
    D. Srinivas Rao

    Hi ,
    PFB the answers.
    1. How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
    key fields of DSO and the remaining to the data fields? Correct me.
    --- Yes , you can use the elements in the ROWS in the Key fields,  but in case you get two records with same value in the ROWS element the data load will fail. So you basically need to have one value that would be different for each record.
    2. What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
    system and then include these in the DSO data fields to accommodate the extracted data ?
    Yes you would need to create new Infoobjects for the CKF's and RKF's in the Report and include them in your DSO.
    3. How do I handle the Free Characteristics and Filters ?
    The default filters work in the same way as when you yourself execute the reoprt. But you cannot use the Free characterisitics in the APD. only the ROWS and cloumns element which are in default layout can be used.
    4. Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
    use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
    shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    --- Yes you would need to create 10 different APD's. Its very simple to create, you can copy an APD. but it would be for sure a maintance issue. you would have to maintain 10 APD's.
    Please revert in case of any further queries.

  • How to pull the text for InfoObject in APD

    Hi All,
    I have a requirement where in I have to combine the data from 2 InfoObjects using an APD based on some conditions.
    I need to bring in the text for these infoObjects and there attributes too.
    The proposed solution from my side for pulling the text is
    u2022     Getting the text from the text table u2013 this is working fine but the performance is not good.
    u2022     Making a query above the object and taking the output as the APD input. Now, in the query , I have selected the display option u2018key and textu2019 but when I am using this query as input for the APD, I am not getting the text.
    Please let me know how to get the text using the query output and/ or are there any other approach to get the text of an infoObject.
    Thanks & Regards
    Abhi

    Hi,
    It is possible to read the text tables of the infobject, for eg  In material you can use table /BI0/TMATERIAL
    You have to select a Datasource as the 'Database table  and use /BI0/TMATERIAL  as one of the underlying tables and then choose another datasource with /BI0/MMATERIAL as the underlying table.
    Now that you have all the data that is needed you can use the join to connect the above two datasources .Select the join condition (material in this case) and the fields that you would like to be have to the next level from the individual tables that you have selected earlier.
    I guess if you work in this way you might get the results that you are looking forward quite easily without writting code.
    Let me know if it helps.
    Regards
    Ankit

  • Running APD for multiple variants of a query

    Hi all,
    I am trying to create an APD with a query as the data source and an ODS as the data target. My requirement is such that i need to run the APD for various values of the characteristic combinations present in the selection screen of the query. I observe that we can only specify a single variant while defining the Data source of type query under RSANWB.
    Is there any way i can use multiple variants with the same query in a single APD , so that the APD runs for different variants of the same query at different run times ?
    Any help would be appreciated !
    Regards
    Snehith

    Hi Snehith,
    As per my knowledge, multiple variants with the same query in a single APD is not possible.
    However you can create different APDs for different combinations of characteristics value and then can use all these APDs in a single process chain to automate the load.
    For Example, Say you have query Q001 whose data you want to load in DSO DSO_001 and then to Cube C_001 for the characteristics combination. Now without filter in your query, you have Controlling Area = IN000,CN000 and Company code IN01,IN02, IN03, CN01,CN02,CN03. Now you want the data for (Controlling Area = IN000,Company code IN01,IN02)and (Controlling Area = CN000,Company code CN01,CN03).
    Create the two APDs with filter conditions between Q001 and DSO_001 as above. Now design the process chain as below:-
    Start varian>First APD>Data load in cube C_001 from DSO_001>Second AP> Data load in cube C_001 from DSO_001.
    Please note that when we execute the APD, old data in data target is deleted.
    Hope it helps.
    Regards,
    Prakash

  • Facing problem in transferring data in APD

    Hi All,
    I have a query which has 2 structures and so the in normal conditions also when the query is executed it takes a lot of time to execute and the output file is also huge.
    Now the client wants to automate this query by adding one new field in it by using the APD.
    I tried using the approach
    Query -> hide columns -> Routine(to add the new field) -> hide columns -> PC file
    This thing was working when there was a filter condition for only 2 sales offices but after removing the filter there are 22 sales offices and I am getting a "Run time error" or "Memory low error".
    So i tried the 2nd approach i.e.
    Query -> transformation -> DSO1(direct update) -> DSO(standard)
    but here also i am facing the same problem.
    Please give me a good solution as this issue has to be completed ASAP.
    Thanks in advance.

    Hi,
    For trial purpose I have set a filter in which only 3 sales offices will be used out of 20. But still I am facing the same "Memory low" error. The sales offices I have considered have less data as compared to other sales offices but still I am facing this issue I dont know is this happening.
    Can you guys share some info on this.

  • 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

  • APD : Linking different columns to 1 Keyfigure??

    Dear All,
                    I have to push data coming from a query report on Stock to a transactional ODS using APD. 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

    My understanding is this is a DVD slide show you've created. It is not a movie of photos that you created in some other application and then added to iDVD.
    In iDVD Preferences be sure to uncheck the box in the Slideshow panel to always add original photos because this takes up more space on the disc.
    Save the project as a disc image. This disc image file should be small enough to fit a single-layer disc unless you added an audio track. If you did add audio then the audio is taking up more space on the disc than are the photos. If the disc image is too large for a single-layer DVD then you either need to use DL media, remove some of the audio or recreate your slide show as two projects to be burned on two DVDs. There is no way to compress a DVD slide show to fit a single-layer disc.

  • APD read data from Web Analyzer or BEx Analyzer?

    Dears,
    We are on SAP BI7.0, recently we upgraded to enhancement package1. SInce then, "suppress zeros (all values=0)"  setting in the query is not working properly in Web Analyzer while it's working correctly in BEx Analyzer.
    We are transfering data from this query to a table in CRM system usin APD. In CRM system, we are getting the output as in web analyzer (it contains zero value records).
    My questions are -
    1. Do APDs always read values from Web analyzer or we have some setting somewhere? (can we read from BEx Analyzer also?)
    2. What exactly is the background process sequence which is followed when an APD is executed?
    Your help is really appreciated.
    Thanks in advance.

    When we execute APD , MDX statement generated and which will execute and bring data from the data targets .
    Bex Query Conditions will not be applied to the MDX statements, we need to filter those records in the APD process , using ABAP program Process or any other filter process ..
    Ravi

  • Error in APD if we used variables 0fiscper.

    Hi All,
    In APD  if I give filter condition on OFISCPER with Offset -1 I am getting error . If i remove variable from both Query and APD no error is coming.
    But if I give varibles in any area either query or apd I am gettng error 0FISCPER is not replaceable .
    Please suggest.
    Regards,
    Asim

    Hi
    Kindly check your variable in Query, create a new variable and try executing it again with offset -1. May be this is the issue with variable at query level itself.
    Regards
    Jeeth

  • APD Join Transformation Error

    Hello,
    I am attempting to do a join transformation in APD.  I am joining query results with a flat file with an inner join.  I am joining on one field that resides in the query and the flat file.  I am getting the following error:
    Analysis process must not contain any open connections
    Message no. RSAN_WB010
    Diagnosis
    Technical key for message: CX_RSAN_SVC_CHECK_ANALYSIS_NN=>OPEN_CONNECTORS
    Procedure
    If you require further assistance, look for a SAP Note containing the key words CX_RSAN_SVC_CHECK_ANALYSIS_NN=>OPEN_CONNECTORS or RSAN_WB010.
    It seems like the system is complaining because not all the fields are used in a join condition which makes no sense to me.  It seems the whole purpose of the join is to be able to join fields that dont reside in both sources.  Can anyone explain this error message and the fix to me?
    Regards,
    TMS

    Hi TMS:
       Please check if the SAP Note below helps you in solving this issue.
    Note 919435 - "APD: Incompatible join fields (Join)"
    Regards,
    Francisco Milán.

  • URGENT How may no of queries can be used a datsources in APD

    hi
    could any one pls let me know how many no of queries can be used at once as datsource to load in to transactional ODS in APD CONCEPT
    Regards,
    N

    You can do one (or more) join in the APD which will let you merge data from two previous nodes. This should allow you to get data from two or more queries (as long as you have a logical join condition to connect the data).
    There is nothing like a union though.

Maybe you are looking for

  • Windows 8 upgrade

    I recently upgraded my HP Touchsmart 310-1020 Desktop PC from Windows 7 to Windows 8.  After the upgrade, I received a message that ATI needs to be upgraded.  When finding out how to do that, I found out I should have upgraded drivers prior to the Wi

  • MTS with batch management, serialization and Handling unit

    Hello All, I am testing a scenario for MTS with batch management, serialization and Handling unit for discrete manufacturing. Everything worked fine till I created the Handling unit for the finished product. The production order has a quantity of 3 E

  • Kernel / cpu Panic Macbook 1.1

    Hello, On my old MacBook (1.1) i am running Snow Leopard. Everytime when i connect a Firewire Device to the MB it completely freezes after a few seconds, also when i start it in HDD Mode, there as soon as i connect it to another Mac the MB freezes. I

  • ICloud keychain setup

    I have iphone 5 with ios 8.1, I change my number and when I want to set up my iCloud keychain code, the verification code sent to old number that does not exist anymore .How can I setup my apple I.D. with new number to let apple sent me the verificat

  • Setting the sql statement

    http://www.egbolig.dk/drift_bo_syd.rpt (HERE IS THE REPORT) We are using SAP Crystal Report .NET Runtime files (http://scn.sap.com/docs/DOC-7824 newest version 13.0.9.1312) in our web asp.net application. Everything have been working fine, but we hav