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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • Issue with text variable by replacement path

    Hello All
    I have a date field called ZDATE1 (it is based on 0DATE). I have used this this IO in a query and have create variables on it (ZSTARTDT and ZENDDT), Start and End date. And my KFs are based on these 2 dates: Quantity - Start Date & Quantity - End Date  / Product Value - Start Date & Product Value - End Date. Those are my descriptions for my KFs.
    Now, I want the replace the descriptions "Start Date and End Date" with the actual values that I am entering like 09/01/2010 and 09/10/2010. Ex: Quantity - 9/01/2010 & Quantity - 9/10/2010.
    Therefore, I create 2 Text Variables,
         1. ZSTART, Replacement Path, Ref Char (ZDATE1), Replace by Variable ZSTARTDT, with KEY, offset - blank
         2. ZEND, Replacement Path, Ref Char (ZDATE1), Replace by Variable ZENDDT,      with KEY, offset - blank
    And I put these text variables in the descriptions. But when I run the query, I still see: Quantity - &ZSTART& and Quantity - &ZEND&.
    Note that my ZDATE1 which is based on 0DATE does not have a master data table or text table; it is purely transaction data. Does that mean, my text replacement path variables wont work.
    Any suggestions??

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • 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

  • Averages in a query using a variable with Replacement Path: Replacement wit

    I have two queries. Query1 has a handful of characteristics, one of which is used in a formula where I used replacement path in order to be able to use it in some calculated key figures. I also have a couple of key figures that are not calculated and they are averages.
    The second query has a characteristic value variable that is replaced with the first query. This replacement value variable is placed into the filter section and the characteristic itself is placed in the rows section. I am bringing in the same calculated key figures that were in my first query as well as the normal key figures that are averages.
    The issue I am having is the regular key figures that I am bringing in are coming in summed up instead of as averages. Is it possible to bring the normal key figures in Query1 as averages into Query2?
    There is more information in the thread below if you need more background.
    [Replacement Path and Aggregation;
    PS - I am using 7.0.

    Hi Satyakam,
    In the text variable properties make sure that in the replacment path you have chosen "Text" to appear date as per user setting . Other wise as in your case it must be set to "Key" which always shows in the format YYYYMMDD.
    Hope that helps.
    Regards
    Mr Kapadia

  • Issue with Using Replacement path to pass values after condition in BI 7.0

    Hi All,
    I am using a replacement path variable in a query (Query 2) which is populated from another query (Query 1).
    Query 1 has a condition based on formula variables which works fine when I run Query 1 separately. It filters to display only entries that satisfy the condition (from 6 entries to 5 after condition).
    But the replacement path variable in Query 2 is getting populated with all the 6 values from Query 1 irrespective of the condition. I need only the filtered/valid records (5 records) to be passed..
    Does anyone have this issue? System seems to ignore the condition altogether.
    As a test, I changed the condition in Query 1 to TOP 2 entries. Only 2 entries showed up in Query 1. However, Query 2 contained 6 entries (initial list before condition).
    My condition setting in Query1 is set to "Most Detailed Characteristic Along the Rows".
    I am on BI 7.0 Support Pack 20. Is this a BI 7.0 issue?

    Hi,
    Your 1st query brings all the rows and just applies condition on front end / Analyzer for display purpose.
    If you check Over All Result it will show data for all 6 rows even.
    If you want to see proper result on analyzer you must have to set the properties -Calculations-Calculate Result As- Summation or Sum.
    I donu2019t think condition will help you to filter the number of rows and use as input query. It will work on analyzer only. Try to apply the condition on your final query (2nd query).
    Regards,
    Jd

  • 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

  • Passing Selection Variables via Replacement Path

    I need a query(main) with list of Debits and Credits. I am pulling list of credits(side) from a seperate query for a specific selection and a condition in main query via replacement path, both on same ODS infoprovider. But in the side query, I cant put any selections or restrictions as they are dependent on main query result.
    The side query itself when running is taking more than 5 mins due to large number of records on ODS.
    My question is Can I pass selection variables from main query to side query?

    It's always nice to see someone resolve their own problem. 
    It's even nicer if they explain what they did/changed/learned to solve it so that the rest of the community can benefit.

  • Query - Replacement Path for a Customer Exit Variable

    Hi
    New to the field and the board.  Any and All help is greatly appreciated.
    I have created a query which runs based on a date selection. The query have few customer exit variables whose values are set in ABAP. All Key Figures in the query are brought depending on the date ranges that each of the CE returns. Ex - one column is sales for first 10 days, 2nd for second 10 days, 3rd for first quarter, 4th for 2nd quarter and such.  There are about 20 - 25 columns with KF in the query and all are Customer Exit date driven.
    The challenge:- Each column heading should have the name of the month. I tried using Replacement Path. But it works when the selection is based on a constant value but not on value based on variable which is a customer exit. Ex - If I say restrict Cal/Month for July 2013, the replacement path for the Col Heading works fine. But if I say restrict Cal/Month for "ZVAR_SecondQtr_First_Month" the replacement path doesn't work.
    Help Please
    Thanks
    Vidya

    In the text variable that you are using , i guess you have a replacement path. In this instead of using your characteristic for specifying how the value has to replace, use the variable option and give the variable name there
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/565cd22fc95f6ce10000000a1553f6/content.htm
    Hope it helps
    Regards,
    Rathy

  • Query replacement path generates error

    Hi experts, I need to filter the contents of a query based on another query so I created a replacement path variable. My source query has a number of restrictions but only has my characteristic in rows and a keyfigure in collumns. I created the replacement path value on that characteristic and use it to filter my final query.
    When I try to run the final query in BEx analyzer or RSRT I get the following error:
    "System error in program SAPLRRK0 and form RRK_LIST_NOTIFY-01- (see long text)"
    Any thoughts on what is wrong or should I just post a message to SAP support? By the way, I'm on BI 7.0 SP 17.
    Thank you.

    In the text variable that you are using , i guess you have a replacement path. In this instead of using your characteristic for specifying how the value has to replace, use the variable option and give the variable name there
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/565cd22fc95f6ce10000000a1553f6/content.htm
    Hope it helps
    Regards,
    Rathy

Maybe you are looking for