Steps to create Replacement path

Hi Gurus,
Kindly provide me the steps to create Replacement path in Query Designer.
My requirement:
Have to replace the Charac.var  ZVAR2 by Charac.var ZVAR2.
Thanks.

Hi,
you use replacement path variable method for it ..
for the detail, you check this link.
In over-there is also explained how-to make it & overview.
<link farm removed by moderator>
Hopefully it can helps you a lot,
Regards,
Ravindra.
Edited by: Siegfried Szameitat on Jan 22, 2009 3:25 PM

Similar Messages

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

  • Formula variable with replacement path on system date

    Hi Experts,
    I got a requirement to calculate "Days without payment" in report level.
    Days without payment = System Date - Payment Date.
    (Payment date field is available in CUBE, but system date field is not available in the CUBE)
    As we know, the difference b/w 2 dates is not possible directly.It can be possible by creating 2 formula variables with replacement paths on the dates and by writing aformula on these 2 formula variables.
    But the thing is I dont have system date readily available, and I tried by using SAP Exit. But we cant create formula variable replacement path on another variable (SAP EXIT).
    Do we have any SAP variable  for formula with replacement path readily avaliable to get system date (or) any other suggession.
    Please suggest me.
    Thanks,
    Sai Chand.S

    Hi Arminder,
    Thanks for your valuable answer.
    I tried doing the same previously.As u said we can get system date by creating customer exit variable.
    But the thing is to find difference b/w 2 dates, we cant do it directly, we need to create 2 formula variables with replacement path.
    1) Var1 = Formula variable with replacement path on system date(custoer exit variable).
    2) Var2 = Formula variable with replacement path on paymanet date.
    Number of days = var1 - var2.
    But as in 1st point, we cant create formula variable with replacement path on another variable, as system date is already a variable of type customer exit.
    We can create replacement paths only on characteristics.
    Please suggest me .
    Thanks,
    Sai Chand.S

  • Replacement path with text variable

    Hi experts,
    My client requirement is " when he enters the current year or current day then it should display the Description of that particular year r month r day."
    Can anyone explain me in detail how to create replacement path with text variable on FISCAL YEAR?
    Hope will solve my issue soon.
    Thanks in advance
    Jani Sk.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

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

  • Formula variable in replacement path is showing N/A

    Hi,
    I have a DATE characteristic which I want to add as key figure in my query.
    I created replacement path formula variable for it but I can only see N/A in the report.
    I  checked the cube and there is data for the date characteristics.
    any idea how I can resolve this.
    thanks

    Hi,
    I understand, I said just check that...have you checked, this works or not?
    you can go to display properties of that charcteristic and say hide.
    If this works then u can hide it and keep it in query...
    Regards,
    Ashish

  • Error while creating a Characteristic Variable with Replacement Path

    Hi all,
        I am trying to create the Characteristic Variable ZVLOWDT (Low Date') with Replacement Path on characteristic ZSTARTDT (Start Date) and it gives the error 'Source to replace 'Low Date' is not defined.
       I have created a User Entry Variable VAR_DATE (Start Date) with interval like '01/01/2009 - 01/15/2009'  and  Customer Exit variable ZVCPDAY (does some calculation based on the input of VAR_DATE) on the same ZSTARTDT characteristic. I want to get the 01/01/2009 (lower range date of the selection) into this Characteristic Variable ZVLOWDT. We are in BI 7.0 and the following are it's properties:
    General Tab:
    Description: Low Date
    Technical Name: ZVLOWDT
    Type of Variable: Characteristic Value
    Processing by: Replacement Path
    Reference Characteristic: ZSTARTDT Start Date
    Details Tab:
    Variable Represents : Single value
    Variable is: Mandatory
    Variable is Ready for Input : unchecked
    Replacement Path Tab: Replacement Rule
    Replace Variable with : Variable
    Variable : VAR_DATE
    Replace with : KEY
    Why I am getting this error, PLEASE ?
    Thanks,
    Venkat.

    Hi Khaja,
       We could derive a Variable value from another Variable with out Customer Exit. There is a white paper.
    First have the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next create the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we could get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error  'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path, PLEASE ?
    Thanks,
    Venkat.

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Is there a posibility of creating a variable on Replacement path value?

    Hi all,
    We have 2 characteristics 1)Posting date 2)System Date, using Replacement path option i could create a formula saying No: of Days= System Date - Posting Date.
    Requirement has come in such a way that ,we want No:of Days in variable screen, so that if we enter No: Of Days > 21, we get all the values which are greater than 21.
    Pls advice us.
    Thanks all in avance.
    Regards,
    Praveen

    use another varaible on screen with replacement path customer exit and ready for input with dafault value 21., then in code do the logic of enter data < or > No: of days.,
    Hope this helps.,

  • Create a formula variable using replacement path for current date

    Hi All,
    I created a formula variable using replacement path for current date.
    But when i used this variable am getting an error message saying .
    " This Variable cannot be used in this query".
    Could you please let me know the reason?
    Thanks,
    Zehra

    Hi All,
    Thanks for all your help...
    I just found a solution via the below link
    in Bex Formula variabel, Current calander day(sap exit) missing.
    Here he is trying to use the existing formula variable.
    My doubt here is, Even i could not find this varaible in BEX formula variable, But could see this in BI Content path as mentioned in the above link.  DO i have to transport this varaible , or i simply can activate it in production?
    I just could find this in BI Content but not in MetaData Repository.
    Thanks,
    Zehra

  • Steps to create an Evaluation Path

    Hi Gurus
                 I am not so much sure about evaluation paths.I want to create one evaluation path by myself.Please tell me if there is some document for step by step approach for the same.

    Hi Vivek,
    Here is a useful link from SAP Help on creating evaluation paths:
    http://help.sap.com/saphelp_bw/helpdata/en/c5/e4b2c8453d11d189430000e829fbbd/content.htm
    I hope this helps,
    Trevor

  • 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

  • Regarding text variable with replacement path.

    Hi Friends,
    Please can any one tell me good scenario where we can use text variable with replacement path..
    i have already searched in forum,but that scenario's i did not under stand.
    Please send.
    i will assign points.
    Thanks in advance.
    Thanks & Regards,

    Hi,
    There is a scenario:
    One has to show, a Period like May 2008 for a report. i.e the report which u r showing is common for May 2008. So u create a text variable on this Fiscal Year Period. When u do this, the Text appears on the Top of the report. So later, whenever u execute a report for a particular month, u get that Header as Jue, July etc etc.
    Its just a header. Text Variable promts u to display the Header with our own uploaded Desire Data.
    Steps.
    1) Edit your query
    2) Right click 'keyfigures' or other structure, choose 'new selection',
    3) beside description there is 'variable' button, click and then choose 'new', a variable screen will come out, type in your variable name, description, choose 'replacement path' for processing by. click 'next'.
    http://help.sap.com/saphelp_nw04/helpdata/en/ac/789b3c4d4d8d15e10000000a114084/content.htm
    Assign Points if helped
    Thanks
    Edited by: Noor Ahmed khan on Jul 21, 2008 5:43 PM

  • Regarding Characteristics variable with Replacement path

    Hi Masters
    I have created one replacement path variable on characteristics for 0material for first query. This query contains the details of material number only(50 values are available). My second query contains material numbers and material price are there (53 values). When I executed my query, im getting only material number field of second query only(50 values are displayed as output, I hope datas are retrived which is common on both query for material number, Please confirm my this). I couldn't get second query's rest of fields like material price of material number. I don't know, what is wrong...?
    Could u please help me
    Thanks in advance
    Raja.S

    Hi
      I don't think so, i have to create the characteristic value for material price.
    Not only I think, we can't create  characteristic value for material price.
    If it is possible, Please give step by step solution
    Thanks in advance
    Raja

  • Regarding Characteristics variable with Replacement path error

    Hi Masters
    I have created one replacement path variable on characteristics for 0material for first query. This query contains the details of material number only(50 values are available). My second query contains material numbers and material price are there (53 values). When I executed my query, im getting only material number of second query only(50 values are displayed as output, I hope datas are retrived which is common on both query for material number, Please confirm my this). I couldn't get second query's rest of fields like material price of material number. I don't know, what is wrong...?
    Could u please help me
    Thanks in advance
    Raja.S

    Hi
      I don't think so, i have to create the characteristic value for material price.
    Not only I think, we can't create  characteristic value for material price.
    If it is possible, Please give step by step solution
    Thanks in advance
    Raja

Maybe you are looking for