How do I...Conditionally control Replacement Path Query execution?

Hello SDN:
We are on BW 3.5 SP16.
We are currently using a replacement path Query(RP) with variables
to populate a variable in another Query(T).
The problem we are having is with performance.
The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
Users are free to leave the replacement path query variables empty resulting in a large set of data to be replaced. This is the worst performance case.
We would like to discover a way to conditionally execute the replacement path query. That is, if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
Does anyone know if this is possible within reason and in customer exit space?
We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
We are also exploring Customer variable exits to mimic replacement path functionality
(different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
Any help will be appreciated
Many thanks
David Schuh

Hello SDN:
We are on BW 3.5 SP16.
We are currently using a replacement path Query(RP) with variables
to populate a variable in another Query(T).
The problem we are having is with performance.
The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
Users are free to leave the replacement path query variables empty resulting in a large set of data to be replaced. This is the worst performance case.
We would like to discover a way to conditionally execute the replacement path query. That is, if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
Does anyone know if this is possible within reason and in customer exit space?
We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
We are also exploring Customer variable exits to mimic replacement path functionality
(different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
Any help will be appreciated
Many thanks
David Schuh

Similar Messages

  • How do I...Mimic Replacement Path with Query using Customer Variable Exits?

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

    My appologies-I posted this message with the wrong subject. I will repost it with appropriate subject.
    dave schuh

  • How to feed a query using a variable defined as Replacement Path-Query

    Scenario description : BI NetW 2004S - InfoCube with the following characteristics Customer, OrderDate, OrderYear and the following KeyFigure Number of Pieces.
    Objective: I need a query "QB" that shows how many pieces a set of customers has ordered in the year 2008. The set of customers is defined as all customers that in the previous years (the user can select one or more years) have ordered more than 500 pieces within the same year.
    Implementation: In general terms the idea is to build a query "QB" with the characteristic "Customer"  that is restricted (filtered) using a variable that is fed by another query "QA" (Replacement Path-Query).
    In order to have the selection of customers that for each of previous years (2007, 2006, 2005,...) have ordered more than 500 pieces, in the query "QA":
    - I put OrderYear as filter and defined a variable in order to ask the user which year/s he wants to analyse to define the selection
    - I put Customer and OrderYear in row
    - I put the KeyFigure Number of Pieces in column
    - I've defined the following condition: Number of Pieces > 500 with the option Caracteristic Assignment = All Characteristics in the Drilldown Indipendently
    Now if I run the query "QA" it works correctly showing me all customers that in the selected years have ordered more than 500 pieces within of the same year.
    If I run the query "QB" it shows a correct result only if I enter only one year (for example 2006) in the OrderYear field (coming from the query "QA"); if I enter more than one year (for example 2006 and 2007) the selection of customers showed is not the same defined by the first query "QB": I was expecting to see all customers defined from the first query less all customers that have no ordered any piece in 2008.
    Questions
    1) Why is query "QA" working on a different selection of customers when the user selects more than one year?
    2) Cosidering the scenario and the objective described above do you have any other idea?
    Thanks
    Ciao
    Roberto

    Hi Christophe,
         it's ok for me if I consider the customer only once in the final selection of customers that feeds the final query, this is my objective.
    However as test I've created 2 "input" queries, one related to 2006 and one related to 2007, and then in my destination query I've tried to restrict the customer using 2 variables of type replacement path-query (one attached to the 2006 query and one attached to the 2007 query). Unfortunately when I try to check and save the destination query, Query Designer tells me it is not possible to restrict the characteristic in this way.
    Could you please describe me steps you run in to order to restrict a characteristic using more than one variable of type replacement path-query?
    Thank you in advance for your answer.
    Ciao,
    Roberto

  • Replacement path -query level

    Hi Friends,
         1)       I have designing the two queries on query designer,  customer characteristics restricted for top 2
    customers (how to restricted the characteristics for top 2 )
    2)       second query revenue  values come to first query  customer used to replacement path  option ,how to
    do it.
    Thanks.

    Hello,
    For first query you can use the "Condition" where u can defined Top 2 customer.
    & for second query just go thru this link,
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Hope it helps u,
    Best Regards,
    Santosh

  • Passing Blanks instead of  ' # ' in Replacement Path query.

    Hi Experts,
    I have a main query which gets its cost center values from another query with replacement path variable.
    The variable should return BLANK to the main query inorder to display all costcenters. But blank is interpreted as '#' and the main query returns No application data found as it treats blank as '# /Not Assigned' instead.
    How to achieve this.
    Please suggest if anyone has done this before. This is we a Web report Not Excel.
    Thanks
    Sarah

    Thanks Arun, I understood the logic now for blanks.
    But,
    1) How to pass 'ALL' for the filter values.As the sub query returns no application data found instead of all cost centers. This is because in the data in ODS is
    <b>UserID CostCenter</b>
    A                   
    B        11234
    C        12345
    D     
    (Blank- representing all costcenters)
    2) Another option was thinkin to have the client fill in the ztable based on which the generic Datasource is made with costcenter values for each user instead will that help.
    Appriciate your help.
    Thanks
    Sarah

  • How to change condition control from C to E

    Hi all guys, need you hope on below question:
    I 've created a new condition type, which is a fix amount/accrual, and going to be used in billing plan sales order. but, when I issue the first invoice (30% of sales order), this accrual condition type is supposed to post 30% as well. but it posted full amount. I have checked all condition type, pricing procedure and copy control config. nothing is wrong. only one thing is condition control XKOMV-KSTEU = C when I check my invoice. but I think it's supposed to be E.
    Would any guy tell me how to make XKOMV-KSTEU=E, or any other solution can be provided.
    (by the way, I have read below link, but still dont know where to do that change? it belongs to config or coding change?
    http://wiki.sdn.sap.com/wiki/display/SD/Pricing+Conditions)
    Thanks in advance.
    Vic

    Hi,
    As per the standard,
    Billing plan will divide entire billing amount as per the  refernce  billing plan (Billing dates/milestones and %values).  All the condition values in the pricing procedure, including taxes, will be divided  proportionately as per billing plan only.
    Regards,
    Sharan

  • Replacement Path with query---error

    Hi
    I have one query 'B' which uses replacement path variable(with query  A) on 'Customer' infoobject in Global filter area.
    So everytime,I execute query 'B',first query 'A' runs and gives some customers list who are active yesterday and today.This active customers list is fed into replacement variable in query 'B' and query 'B' shows its own result.
    The problem,we have is,Query 'B' is showing some customers who are not in the list returned by query 'A'.
    Any ideas,how I can fix this problem?
    Thanks.............

    Hi
    Thanks for your reply.
    Both run on same Multiprovider.
    First thing is...this Customer infoobject is placed in Global filter area of Main Query and the infoobject has replacement path variable(with query on it).So the main query's data is limited to whatever customers that are given by replacement path query.
    how can Main query show some customers data thats not been given by this replacement path query?
    Second thing is...when user reported this error,he showed error in screenshots.When I ran query today,error is gone.Its showing correct.I reported to user and he informed that its happening now and then ....He gave one more example that happened today which is exactly of some type.....Main Query is showing customers that are not given by Replacement path query .....
    Any ideas?Thanks

  • Replacement path does not work for a specific query after migration 7.0

    Hello all,
    We have a problem with a replacement path variable in a query.
    After the migration, it seems this replacement path doesn't work.  This replacement path is defined inside a structure that is used in some other queries and for the other queries is working properly.
    Another think we have done is to make a copy of the query where the replacement path doesn't work and the copied query works ok.
    Did anybody find this kind of problem in a migration. Any help will be appreciated.
    Regards, Inma

    This is just for those who might have simmilar requirement &  would in case refer to this thread..
    Me too faced same problem of OLE DB for OLAP cant be released. I was using  replacement path query variable which was using result set from the other  query.
    I just had to uncheck 'Allow External Access' in release for OLE  DB for OLAP in query properties. This worked from me, my query using replacement path variable is giving desired results.
    Hope this might be useful for relevant users.
    Regards,
    Pritesh

  • Characterstics variable with replacement path?

    hi friends,
    what scenerio we use characterstivs variable with replacement path in reporting?
    Thanking u
    suneel.

    Hi Suneel,
    If you set a query as a replacement path, you can use that query to fill a characteristic's variable which is used in another query. In this way you can take advantage of the OLAP engine to perform e.g. complex selections on a characteristic's values. Obviously you need to format the replacement path query's layout appropriately. the replacement path technique is intended to fill a characteristic's variable. You use that variable on that characteristic in another query
    check this link for creating step by step
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Hope this helps,
    Thanks,
    Sudhakar

  • Identifying query execution time

    Hello,
    I would like to know how can I figure out the actual query execution time in Oracle.
    Regards

    Oracle Documentation is your best friend.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2113.htm#i1417057
    ELAPSED_TIME --> Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching
    Asif Momen
    http://momendba.blogspot.com

  • Crystal Report using BW Query that contains replacement path (control query

    I have a Crystal report built on a BW query.  The BW query contains a replacement path on a characteristic (as a control query).  The control query has additional variables that the main query is not using.  The crystal report is not recognizing any of the variables that the control query includes.  How do I get the crystal report to recognize the control query variables?

    Post your question BEX and B1 and/or classic SAP data source issues to the Integration Kit forum

  • How to get a replacement path variable working in same query

    Hi All
    I have a query in which the user enters a value for the 0fiscper variable. Our users want to display for the last 12 months the previous year same period sales.
    I do this by putting a value range offset restriction on 0fiscper varianle to -12 to 0fscper variable value. I have 0fiscper as drill down on the rows.
    Fiscal Year period                LY Month Sales
    010/2010                                  9999.89
    011/2010                                    8888.99
    To get the LY Month Sales I would like to set up a replacement path variable on 0fiscper so if the value of 0fiscper on the
    row is available in the replacement path var I can offset it ti -12 to get the LY Month Sales.
    Can someone share ideas how I can set up this replacement path variable.
    Thanks
    Karen

    Hi,
      Why u want to go for replacement path. You can attain your result bu just offsetting the fiscyear period variable.
    Regards,
    Raghavendra.

  • How to get Date Difference in Query with Replacement Path !

    I need to get nr of days between two days. I knew that we can do this by replacement path in the queries. But when Iam trying to use replacement path with
    this two chars and put it in a formula the result is not showing correctly.
    Eg: I have dates Date1, Date 2 and I created two variables calles DateA ,Date B with reference to Date1 and Date2.
    Now Iam creating a formula sayint that (Date2 <> 0) * (Date1 - Date2) ...Here Date2 has sometimes balnk value...Iam getting the values when there is dates for both chars...But if there is one value is blank
    then Iam getting a strange value ....
    can any body send me step by step on how to fix this...
    Thanks

    Hi Sam,
    another important think you have to remember when having aggregated information is to divide the date1 and date2 key figures with the number of lines used in aggregation.
    Remember that date1 (internally) is a numerical value from some initial date which is used as reference. E.g., if the reference date is 01/01/0001  and you have the date 15/01/0001 then key fig. date1 internally stores just the value 14. So if you have something like:
                             date1       date2        diff
    customer1  material1       14          18           4  <- correct
    customer2  material1       14          18           4  <- correct
    and then you make an aggregation by removing customer from your report then you will have the following situation:
                             date1       date2        diff
    material1                  28          36           8    <- wrong
    So, you would have to divide by 2 in the second case. Please try to check the above and proceed accordingly. Let us now if something else weird appears.
    Best regards,
    Theodoros

  • How to use independent replacement paths for same KF over several months?

    Dear Experts,
    I have a query requirement to show KF values for items that meet a condition on another KF for a five month period.  I know that I can accomplish this using a replacement path variable on item for one month at a time, however I am not sure how to do this for multiple months in one query.
    This is an example:
    Month 1
    KF 1 > 0 for Items A & B.........so show KF 2 for for Items A & B
    Month 2
    KF 1 > 0 for Items B & C.........so show KF 2 for for Items B & C
    Month 3
    KF 1 > 0 for Items A & C.........so show KF 2 for for Items A & C
    Thanks in advance for your help!
    Kathryn

    Ok, Nancy, code copy/ paste did work fine.
    what does this mean:
    "Change the image in the properties panel to display your new image."
    (the image is displaying ok)
    NEverthesless, I think I got Murrays old notes.
    Here is my new version of Murrays writing, easiest way I think:
    You open up a pre-existing html, say Chicago. Then drag over with pointer to the new jpeg you want (Buffalo). It replaces Chicago with the buffalo jpeg, all links work perfectly. Then do a save as called Buffalo.

  • Query Variable - Replacement Path

    Hi all,
    I would need to fill a query variable (based on calendar week characteristic) with specific list of values. I need all calendar weeks that are present in infocube, but only if key-figure > 0. So I've created a query with cal. weeks in rows and with suppressed zero rows. Output values from query contains exactly what I need.
    Than I created a variable (replacement path) with reference to mentioned query. But it seems to me that the variable does not contain all values displayed in the query, but only filtered values (if I use some restriction of cal. week).
    Is it possible to achieve this using replacement path at all?
    If not I would appreciate any idea or experiences how to accomplish this requirement.
    Many thanks,
    regards,
    Pavel

    Hi Pavel, I didn't get your requirement 100% . Still, I would like to tell How Replacement path works.
    First of all for the Source query you have given condition to restict the output of the query on particular keyfigure value > 0 ......  Right.
    Now on second query, you have created the Characteristic variable with Replacement path....here some important things to look at.
                    while creating the variable, select Processing Type as REPLACEMENT PATH, then in the "Replacement path" Tab,  give Replaced variable with.. "Query" ...and at bottom, For QUERY give the query name.
    If u want RRI facility from Source Query to Target Query, then u give RRI Connection in T-Code : RSBBS....
    ...and now when u execute the Second Query, First the first Query will be executed and those filtered values > 0 will be passed to the Second Query's variable input...then the second query will be executed...
    But, in your case check once again all settings in Variable in Second Query..and Conditions block in First Query..
    It should definitely work...
    ---Intros.
    Edited by: Intros on Apr 25, 2008 1:31 PM

Maybe you are looking for

  • [solved] Non-root program to create subdir in /run/lock

    Hi all, I am using and maintaining (more or less) the program logcheck. When the program is run (e.g. by a cronjob) and the directory /var/run/logcheck is not already present, it creates it. Since the recent update of the filesystem package, the lock

  • Textinput issue from external file in AIR application (Is it bcz of mask?)

    Hi I tried to load external swf in TabNavigator. In this file, I have some input text. I can key in external file's text input after load. But i got  "Security Sandbox Violation" error. Here is the code <s:WindowedApplication xmlns:fx="http://ns.adob

  • Adobe Reader Not responding on Mac

    I recently downloaded the Adobe Reader and the Adobe Digital Editions thing for school....everytime I try to use them they freeze up and do not respond...any suggestions for getting them to work?

  • Burst mode in Manual Mode?

    Hi all, Simple question again.. In Superior Auto mode there is a setting you can configure to set the "Burst with Long Press" either to High-Speed or Standard or Off. In Manual mode, I cannot find this feature. How to do burst shots with long press i

  • Can't figure out how to transfer songs from computer to ipod.

    Hello, I only know enough about computers to be very dangerous and i do not know the language of computers. I downloading songs from amazon onto my dell computer into i tunes and it also went to media player, i synchronized it to my i pod but it will