Replacement Path variable cannot be used in filter

After creating a variable of type replacement path with query I get the error message:
Errors: Variable ... cannot be used in 'Filter' 'Default Values'; remove
Does anyone know what is causing this message and how to prevent it?
Thanks.
Regards,
József.

Thanks for your response Bhargava,
Your answer did help me find the solution. When using a replacement path variable with query, you can only use the variable in the Characteristic Restrictions part of the Filters (not in the Default Values).
The characteristic itself can still be used for navigation.
p.s. Found that when copying a query some links to structures, like restricted key-figures, are kept in the metadata repository, even after removing them from the query. This can also cause error messages.
Regards,
József.

Similar Messages

  • Using Characteristic value with Replacement path variable

    Hi All,
    Could you please let me know if it is possible to use charecteristic value instead of key figure with replacement path variable. My requirement is to use factory calendar id as the replacement variable on plant characteristic, now when I choose replcaement variable with Attribute value, the dropdown menu only gives the list of key figures assigned as an attributes to Plant.
    Now I am looking for a solution to use factory calendar id as the attribute.
    Thanks for your help in advance.
    Regards
    SS

    Hi sachin
    U can use it
    Look at these links
    Re: Customer exit &  Replacement path........?
    Variable with Replacement Path
    Re: Replacement Path for Charastrictics Variable
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/frameset.htm
    Regards
    KR

  • How to use Replacement Path Variables to perform Date Calculations

    Hi Experts,
    Can anyone make me clear about:How to use Replacement Path Variables to perform Date Calculations???????
    Thankyou in advance..
    shankar

    In left panel select the time Dimension
    Then hit new variable in that
    give the Name and Description for the Variable
    In processing by hit Replacement Path
    In reference characterisitcs use Calendar Day...
    As ur intention is to use it for Date
    Then in adjacent tab use
    Replace variable with Query / Variable
    Then u can use Offset length and offset start for controoling the display of your variable.
    Use as single, multiple single, interval, selection option as uwish
    HIt okey
    and you are good to go

  • Issue with the Replacement Path Variable.

    Hi,
    I have an issue in using the Replacement Path Variable.
    Issue: I have Sales information in the Sales Cube and AR information in the Accounts Receivable cube. Now we have a requirement to show the open AR documents with Sales information in it.
    Apparently the system generates same number for both AR and Billing document.
    So I thought of using the Replacement path variable in the Sales Query on Billing Document, so that it runs the AR query to get the list of open AR documents into the Sales query. But the system is complaining:
    "System error in program CL_RSR_OLAP and form IF_RSR_OLAP~MODIFY_VQUERY_SETTINGS-01- (see long text)".
    I searched OSS note on this and found the note: 1432062. Implemented, but now it complains:
    "Abort Variable XXX cannot be replaced in this query".
    I am trying to return the result from Accounting Document to the Billing Document. I know this is an issue, but after implementing the Note, i thought it would be fixed. But no luck.
    Did anyone come across this situation. If you have any solution for this, pls let me know.
    Thanks.

    Hello;
    Why don't you try to add the billing document in your financial cube;
    mapping it with the a ccount document number?
    This should make the replacement path work fine.

  • Replacement path variable is not working

    Hi Experts,
    I have created a input ready query & assigned it to a  Web template.
    In query filter, I have used char. 0SALESORG restricted with manual input variable.
    In row, I am using custome defined char. Market with master data as a access type. Market is display attribute of 0SALESORG.
    My requirement is whenever user selects a value for 0SALESORG through variable same values should be displayed in row for char. Market.
    I tried to achieve this requirement using replacement path variable on char. Market.
    But, I am not getting the required output.
    Correct me if I am doing any mistake / suggest any other feasible option.
    Thanks in advance,
    Shamkant.

    solved on own.

  • Replacement Path Variable with Another Variable

    Hi,
    I am currently trying to create a report that would need me to have the same values for different characteristics (e.g. clearing date, posting date, net due date). I have seen that there is a way in the replacement path variable that would replace its value with another variable that is ready for input. I also looked into SAP help but I can't seem to figure out on how to do it specifically. Does anyone know a step-by-step process on how to do this? How does this work?
    Thank you in advance!

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • Issue with Replacement path  variable

    Hi all,
    I had created a formula variable with replacement path for this i had created a variable with replacement path and i had used it in the formula but i am unable to get the value of the replaced objects can any one thru some light on this.
    Regards

    yes the ref char having value. another thing do i need to include the char in the row r columns which has been replaced in the formula variable.
    regards

  • Replacement path variable with offsets

    Hi experts,
    I have the requirement to report receivables (open items) historically by fiscal year / period.
    More precisely, each period should show the open items that are open at the end of the period.
    Example:
    001.2010 (shows open items from 31.01.2010)
    002.2010 (shows open items from 28.02.2010)
    ...etc.
    The idea is that the user enters a fiscal year/period using a manual entry variable.
    The open items should be calculated as follows:
    KF: Amount
    Posting Date <= Variable
    Clearing > Variable or unassigned
    Variable is a replacement variable that is replaced by attribute "Date To" from the user entry Variable (Fiscal year period)
    E.g. if the user enters 008.2010, then this value is automatically replaced by 31.08.2010.
    Generally this works.
    However, to view the values for the last 12 months, a structure is needed consisting of 12 elements with offsets in order to show the 12 months prior to the selected period (e.g. 001.2010 - 002.2010 - 003.2010 ....etc.)
    The problem is that the replacement only considers the user's variable entry and ignors the offsets.
    Example:
    User enters 008.2010.
    In the column strucure I show 3 months 006.2010, 007.2010, 008.2010.
    Then all columns would show items open on 008.2010 - the offsets are ignored.
    Any idea, why this happens and how it can be resolved?
    This problem has given me a headache for days.
    Your help is much appreciated.
    Thanks and regards,
    Alex
    The user should be able to enter a fiscal year / period and

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • Replacement Path variable with query

    Hi all,
       I have a replacement path variable in a query that use the result from other query (a pre-query), both of them use the same variables, exactly the same, although the query ask me for the values of the variables twice (for the query and for the pre-query), is possible that the query ask me for the  variables only one time (re-use the same values for both queries)?
    Thanks,
      Javier

    If possible use only the variable with replacement path on the query. Since the Pre-query has all the same variables as the main query, the user would enter all the required input on the pre-query one time. The result of the pre--query feeds the main query. If the main query has no other selection variables except for the replacement path, the selection screen will not pop up again.
    Thanks
    Vineet

  • Replacement Path variable--not working

    Hi All,
    I am using replacement path variables in a query. The scenario is like this:
    In Query 1 I have Region, Market, Group, Item in the rows and in columns I have a keyfigure and fisper. All the user-input variables. And I have a condition which shows only those records where keyfigure = 0 for the range of periods entered.
    In Query 2, I am using same char's in rows but they are replacement type variables. Also the fiscper is RP variable all from result of query 1. Key figure is different here. So, my query 2 should return all the chars from query 1 result and should give the values of the query 2 keyfigure for the results of query 1 for the same range of periods.
    But for some reason I am not getting the result values of query 1 but getting all the values entered in the selection screen.
    Can anyone please help me out of this issue.
    <removed by moderator>
    Thanks and Regards..
    Edited by: Siegfried Szameitat on Nov 7, 2008 9:05 AM

    Hi Rahul,
    This issue almost drove me to distraction and I found no solution. It appears as soon as you are working with mor than one variable with replacement by query results.
    Simplified :
    In Query1 you have two combinition for region and market in query result e.g.:
    regionA  market1
    regionB  market2
    In Query2 the replacement is
    regionA  market1
    regionA  market2
    regionB  market1
    regionB  market2
    i.e. all possible combinations from result of Query1.
    Good Luck
    Joe

  • Query View in Replacement Path variable

    When selecting the query for a replacement path variable there is an option 'Use View for Query Start'.
    Does anyone know what this is (supposed) to do?
    Whatever setting I use during testing, the result is always the same.
    Thanks,
    József.

    I, too, have this same question.  I have looked for an explanation of the "Use View for Query Start" checkbox and its usage, and while I would expect that to be explained in one of the following links, it is not...
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/bd/589b3c494d8e15e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/ee/1e9b3c334d8c15e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/2c/78a03c1178ad2ce10000000a114084/content.htm

  • Replacement Path Variable on InfoSet

    Hello people,
    I have some queries based on InfoSets and I am not being able to use already existing replacement path variables on any date-type infoobjects of the infoset.
    These date infoobjects do exist in the infoset (are flagged as part of the infoset definition),  however it seems that the Query Designer does not recongnize them as the real infoobject (consider that within the query designer each infoobject of the infoset appear not with its real tech name, ex 0DOC_DATE, but with a different tech name specific for the infoset,  example: ZPUR_I05__F91;  F92 and so on..). 
    So it seems that because of this, the Query Designer thinks I'm trying to use a Replacement Path variable on an InfoObject that doesnt exist in the InfoSet,  which is not true.
    Does anybody went through this situation,  and how can it be solved?
    Many thanks to all in advance.
    Fernando

    Hi there,
    solution I found is to create new Replacement Path variables, based on the InfoSet objects. 
    Although they are technically the same infoobjects the Query Designer treats them as different objects.
    cheers,
    F.

  • Replacement Path Variable

    I have one variable for 0CALWEEK which is an input variable.
    Now I want to extract week number from this variable value.
    Ex. 0CALWEEK = 200850
    I want to extract 50 from this variable for calculation purpose.
    How to proceed for the same using replacement path?
    Thanks,
    Sharayu

    Hi........
    Check this.....
    http://teklink.co.uk/sap/sap-bi-bw-how-to-use-replacement-path-variables-to-perform-date-calculations-in-the-bex-analyzer/
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/008d15dc-f76c-2b10-968a-fafe5a121129
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/EN/2c/78a03c1178ad2ce10000000a114084/content.htm
    Hope this helps.....
    Regards,
    Debjani......

  • Replacement Path - Variables

    Dear Experts,
    I am new to Bi(experienced in ABAP), so please do explain in Laymans language.
    I have already gone through Help and SAP PDF Documents.
    1. Can anyone explain me the Replacement Path Clearly with very simple exmaple.
    Regards
    BI Learner.

    Hi,
    Characteristic Replacement Path Variable - Let us assume that there is a requirement that Query2 should be executed for all those materials which are present in the output of query1 (query1 might be using some conditions or anything else). In this scenario, we will create a replacment path variable on Material for Query2 which will read Material Values for Query1 output.
    In another case, replacement path variable can also be created to read value from another variable. For example, we are using a user input variable (V1) for Calendar Year/Month in a query and we need to get the year from this variable. For this, we will create a replacement path variable on Calendar Year which will get the value of Calendar Year/Month from V1 and using offset will give us the year value.
    Formula variable using replacement path - here is an classical example where we can use replacement path formula variable. Let us say we need to pick up standard price of a material from Material Maste data and use it for some calculation in query. In this case, we will create a formula variable type replacement path which will get the attribute value (Price) from Material master data.
    I hope that gives you some understanding of Replacement Path Variables.
    Regards,
    Gaurav

  • Replacement path variable for date not working

    We have a formula variable using replacement path (BEx 7.0) for a date field and after that we have calculated key figures to perform date difference calculations.
    This was working perfectly well until recently when the calculated key figures displayed an "X" instead of the value.
    The value seems to appear only when the date fields are drilled down in the report.SO this works like a formula instead.
    Is this just an unnatural case where something just stopped working ?
    We have checked the calculated key figures and the formula variables , they havent been changed in the recent past.
    Is there any other solution you could offer to get date differences without having the date fields in the rows ?
    Edited by: ABCD on Jul 29, 2009 2:28 PM

    How to use Replacement Path Variables to perform Date Calculations
    A Step-by-Step guide
    Have you ever wanted to perform calculations using dates defined as characteristics but have never worked out how it can be done? Replacement Path Variables are the key.
    Using Replacement Path in your Text and Formula variables, replace values held in a characteristic. The Characteristic value variables are replaced by the results of a query at run-time.
    The steps detailed below show a technique to enable a BEx query user to determine the number of days between two dates.
    Scenario:
    The group HR administrator wants a detailed line item report that lists all employee absences in a given period. The report is to show the employee number, the absence start date, together with the end date of the absence and show the number of calendar days the employee was absent.
    The good thing about using this technique is that no redesign work is needed from your technical BW team, no ABAP is involved and best of all, it quick and easy.
    Solution:
    For this example I created an ODS object called Absence that holds basic employee information along with individual absence record data.
    Follow the steps below:
    1.     Open the BEx Query Designer and create a new report on your chosen InfoProvider.
    2.     Drag the Employee, Valid from and Valid to characteristics into the Rows section of the screen.
    If needed, apply data selection restrictions to the characteristics as shown in Figure 1.
    3.     Right click on the Key Figures structure and select New Formula (Figure 1).
    Figure 1
    4.     
    5.     In the new formula window right click on Formula Variable and choose New Variable ( Figure 2 ).
    Figure 2
    6.     
    7.     The Variables Wizard will launch and will require you to specify the variable details.
    ( Click the NEXT button if the Introduction screen appears )
    8.     Enter the variable details on the General Information as shown in Figure 3 .
    Enter the Variable Name , Description and select Replacement Path in the Processing by field.
    Click the Next Button.
    Figure 3
    9.     
    10.     In the Characteristic screen (Figure 4) select the date characteristic that represents the first date to use in the calculation (From Date).
    Click the Next Button.
    Figure 4
    11.     
    12.     In the Replacement Path screen (Figure 5) select Key in the Replace Variable with field. Leave all the other options as they are (The offset values will be set automatically).
    Click the Next Button.
    Figure 5
    13.     
    14.     In the Currencies and Units screen (Figure 6) select Date as the Dimension ID.
    Click the Next button.
    Figure 6
    15.     
    16.     The Save Variable screen (Figure 7) displays a summary of the new variable.
    Click on the Finish button to save the variable.
    Figure 7
    17.     
    18.     Repeat steps 4 to 11 to create a second variable for the second date to be used in the calculation.
    In the example shown, the characteristic 0DATETO is used to create the variable ABSEND (Absence End Date).
    Define the Calculation
    We can now use our two new replacement variables to define our new calculated key figure that generates the number of absence days for each record.
    1.     You will now be back at the New Formula screen (Figure 8). Drag and drop the two new variables into the formula section of the screen and insert the subtract sign (u201C-u201C) between the two.
    2.     Give the new formula a description and click the formula syntax check button  to ensure the formula is valid.
    Figure 8
    3.     
    4.     The new calculated key figure will now show in the columns section of the BEx query designer (Figure 9).
    Figure 9
    5.     
    6.     Save the query and execute it.
    In the example shown the Number of Calendar Days Absent is calculated correctly. See the table of results below.
    Employee     Valid From     Valid To     Number of Calendar
    Days Absent
    50000001     17/04/2004      21/04/2004      4
    50000002     16/07/2004      29/09/2004      13
    50000003     07/01/2004      09/02/2004      33
    50000004     04/08/2004      05/08/2004      1
    Cheers:)
    Vivek

Maybe you are looking for

  • How to return more than one object from SwingWorker

    I am using a SwingWorker to call 3 different methods of another class (data fetch class). Each of these 3 methods returns a String array. I am able to get the first array outside the thread code using the get() method of the SwingWorker class, final

  • Accessory Goods as Free Items

    Dear All, Pls suggest the SAP best practise for the below scenario. We are suppling the material to the customer along with accessroies. As accessory material is not included in the sale order, stock for the same is not getting deducted. Neither BOm

  • Data load from to datasources to InfoCube via common Infosource in BI7

    Hi all, I need to load data from two diffent DataSource to one Infocube. Between this Infocube and DataSources there is one infosource common for both Datasources. Between Infocube and Infosource there is one transformation and between each DataSourc

  • SyncBo Example - cannot find message associated with key

    Hi, I followed the tuturial to create a SmartSync Project. And when I run the project I've got a Servlet Exception: javax.servlet.ServletException: cannot find message appropriated with key: dispatcher.forwardException. What I need to change? Thanks

  • Satellite A300 Overheating

    Hi, I am trying to run a virus scan on a friends A300 (PSAG4A 02E00M, Vista) and unless I place the laptop such that the fan opening on the base is clear it will overheat and shut down. Also, I find the fan is quite noisy. Is this typical of this uni