Formula variable problem on replacement path

Hi all,
I created a characteristic value variable for the 0CALDAY (ZVAR1) with the following details.
- Characteristic Value
- Customer exit
- Calendar day
- Mandatory
- Variable is ready for input  unchecked
Now i need to give the calculated value in customer exit by I_STEP 2 in a new formula variable (ZVAR2).
So:
1) I create in columns a new Formula (zFormula)
2) In edit mode I create a formula variable (ZVAR2)
3) in edit mode of the formula I set the following details:
  - Replacement path
  - Replace variable with: Variable
Here the problem: when I open the popup on selected box to choose the vcharacteristic value variable I don't see the ZVAR1.
I don't understand where is the problem.
May you help me ... regards, Roberto

Ok solved.
Roberto

Similar Messages

  • A formula with a formula variable with a replacement path delivers X

    A formula with a formula variable with a replacement path delivers X as a result if the characteristic of the replacement is not in the drilldown
    I have Created on ( date ) on which I have a Formula variable . I have used that Formula Variable in my calculated Key figure .
    Now the Problem is If I use Created on in ROW , The calculated key figure works . But if I don't use in Row , The calculated Key figure shows X . Situation is Users don't want to see Created on in ROW .
    If I use in row and hide also , then number of Records  will be same .
    Pls guide me what shoud I do .
    Is this problem related to support pack .

    hi
    i would like to know how to create the replacement path and authorisation variables.
    what are the steps we need to follow in rsa1.
    Edited by: vasu reddy on Apr 9, 2008 11:28 AM

  • Formula variable of type replacement path not working

    Hi Folks,
    I have created formula variable of type replacement path and replaces with characteristic key.I wanted to use charecteristic infoobjects in coluns so that i have created formula variable for that.But when excecuting the query in web it is not displaying values for that formula.
    Can anyone plz solve this,if u come accross this situation before.
    Thanks and Regards,
    Ravikiran
    Edited by: MRK@SAPBI on Jun 11, 2011 1:13 PM

    Thanks vineet, for your quick reply.
    yes,i have used the characteristic in a row and it is a number.
    Still it is not displyaing values.But i need to calculate the couter for the same formula created on that charateristic and need to put condition in the query.
    thanks,
    Ravikiran

  • 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

  • Variable entry for replacement path

    Hi Guys,
    This is my scenario. I have query A which uses a set of results from query B via replacement path. I have a mandatory variable entry for Query A which I have used also for query B. I was under the impression that when I made a user entry for the variable for query A, that value would be copied over to query B and perform the filtering in Query B too. Is this not the case.
    If I need to perform this operation, i.e use the value that I enter for variable entry in Query A in Query B, how can I do that?
    Thanks,
    Doniv

    Hello Doniv,
    we are using this scenario in our queries too, if we define the same variable in the query A and B,
    this value is used for the selection in the query B.
    Did you tried to search in OSS? (this could be the SAP error)
    Regards,
    Kirill

  • Variables coding for replacement path customer exit

    i have to look up values in query for restricted keyfigure ..
    the values are stored in an ods table as below, as the values changes often during the year.:
    zdate123.......value1.....value2
    1/1/10............90..............91
    1/2/10............94..............87
    in a query i have to grab all the data for Value1 for different dates,
    so i created a variable ZVAR_VALUE1
    and write the customer exit for it as below
        DATA: l_s_table TYPE /BIC/AZODS00.
        data: l_s_range_low,    l_s_range,    l_s_range_sign,    l_s_range_opt.
        DATA: v_today type sy-datum.
        v_today = sy-datum.
    CASE i_vnam.
      WHEN 'ZVAR_VALUE1'.
        IF i_step = 1.
          CLEAR L_S_RANGE.
          SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
          WHERE /BIC/ZDATE123 EQ v_today.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    this gives error
    WInitial RANGE-OPT for customer exit variable zvar_value1 is corrected..
    Error for variable zvar_value1...
    i tried replace variable with query but i cannot use it in restricted keyfigure as it gives error...variable cannot be used in structure
    can anybody help correct the code??

    thank you
        DATA: l_s_range TYPE rsr_s_rangesid.
      and it works
    but now in query outpu t the value comes up as 0.00 for everything
    this is my code exactly as below
    ATA: l_s_table TYPE /BIC/AZODS00.
    DATA: v_today type sy-datum.
    v_today = sy-datum.
    CASE i_vnam.
    WHEN 'ZVAR_VALUE1'.
    IF i_step = 1.
    CLEAR L_S_RANGE.
    SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
    WHERE /BIC/ZDATE123 EQ v_today.
    l_s_range-low = l_s_table-/BIC/ZVALUE1 .
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    and there exist the value for today for Value1 in ods

  • CR XI formula / variable problem

    I am working on a formula with declared variables. In the first iteration of the formula it prints the variable correctly. In the second iteration of the formula when I include a view, it does not print out the contents of the variables. If you can look at the following code and figure out what is wrong, please let me know.
    (Iteration 1: Working code)
    If {?IncludeNationality}='y'
    then
    local numbervar b:={Constituents.BeginDate};
    local numbervar e:={Constituents.EndDate};
    local stringvar born:=if b>0 then totext(b,0,'') else '';
    local stringvar died:=if e>0 then totext(e,0,'') else '';
    if (b>0 and e=0) then 'b. 'born''
    else
    if (b>0 and e>0) then ''born'-'died''
    else
    (Iteration 2: Does not work)
    If {?IncludeNationality}='y'
    then
    local numbervar b:={Constituents.BeginDate};
    local numbervar e:={Constituents.EndDate};
    local stringvar born:=if b>0 then totext(b,0,'') else '';
    local stringvar died:=if e>0 then totext(e,0,'') else '';
    local stringvar bl:={vwArtistGeography.Birth_Locale};
    local stringvar ll:={vwArtistGeography.Living_Locale};
    local stringvar dl:={vwArtistGeography.Death_Locale};
    if (b>0 and e=0) then 'b. 'born' 'bl''
    else
    if (b>0 and e>0) then ''born' 'bl' - 'died' 'dl''
    else

    I suspect that the field values from the view might be null.  Modify the formula thus and see if it works.
    If {?IncludeNationality}='y'
    then
    local numbervar b:={Constituents.BeginDate};
    local numbervar e:={Constituents.EndDate};
    local stringvar born:=if b>0 then totext(b,0,'') else '';
    local stringvar died:=if e>0 then totext(e,0,'') else '';
    local stringvar bl:= if not isnull({vwArtistGeography.Birth_Locale}) then {vwArtistGeography.Birth_Locale} else ' ';
    local stringvar ll:=if not isnull({vwArtistGeography.Living_Locale}) then {vwArtistGeography.Living_Locale} else ' ';
    local stringvar dl:=if not isnull({vwArtistGeography.Death_Locale}) then {vwArtistGeography.Death_Locale} else ' ';
    if (b>0 and e=0) then 'b. '+born+' '+bl+''
    else
    if (b>0 and e>0) then ''+born+' '+bl+' - '+died+' '+dl+''
    else
    If bl, ll or dl come out as a space then the values are null.  In CR if one value is NULL then the result is null.

  • Formula variable with replacement path to another input variable

    Hi @ all,
    i have a question regarding "Formula variable with replacement path to another input variable".
    My Problem is that in selection screen and for info-fields the input variable is shown with its key and not with its description.
    Scenario:
    A formula variable (X) is used to get an input value of a characteristic variable (Y) for 0Fiscper3 to realize a IF-Then scenario.
    The formula variable (X) uses replacement path by variable (Y) replace by "key".
    In selection screen of the query variable (Y) is named with its key "ZAB_BUPE01" and not with its description " fiscal period". Same as for info-fields where the description is "ZAB_BUPE01" and not " fiscal period".
    Does anybody have a solution to display the selection variable correctly?
    Regards
    Tobias

    Issue Solved!
    The input varaible (y) for 0Fiscper3 was saved globally on the InfoProvider. This results in that the formula variable with replacement path only shows its technical name. I put the input variable in the query itself and it soved the problem. The variable is displayed with its description in selection screen.
    Regards

  • Formula Variable with replacement path on 0CALDAY

    Hi,
    I am trying to enhance an existing query.
    I am creating a new formula variable processing by replacement path.
    In Reference Characterisitic I have choosen 0CALDAY.
    In the tab options , I selected replacement path.
    In the replacement path tab, in Replacement Rule /replace variable with I am trying to select the variable. But in the variable list I am not able to find 0CALDAY variable, which we have already created and restricting in some other key figures.
    Please help me in this regard.
    Thanks & Regards,
    Madhav

    Hey in the replacement path tab you need to choose either its infoobject or variable from which the value needs to be taken.
    If you choose infoobject you get the options of choosing its attributes etc.
    If you choose variable you get option to choose variable associated.
    But under "General Tab" under reference characteristic you need to choose your CALDAY.
    Hope this helps.
    Edited by: Praveen G on Sep 26, 2008 5:53 AM

  • Replacement Path Formula variable

    Hi
    I have a doubt regarding formula variables created using Replacement Path .
    Suppose I create such variable on some characteristic say A then what will be the value in the variable when the value of characteristic A is '#'  ? Will it be 0 or something else?
    Also what will be the value in the formula variable when A is not equal to # and has some value in it?
    Thanks,
    Ninad

    For formula variable # will be 0.
    Other values are truncated based on your offset start and end of your ref char.
    Hope this helps.

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

  • Regarding Variable Proc. Typ REPLACEMENT PATH

    HI EXPERTS,
    CAN ANY ONE EXPLAIN HOW THE REPLACEMENT PATH VARIABLE TYPE HELPS IN REPORTS AND IN WHT SENARIOS WE CAN USE. PLZ EXPLAIN THIS WTH AN EXAPLE.
    REGARDS
    RAMAKRISHNA K

    Hi Ramakrishna,
    just go throw the below description.
    Replacement Path
    Use
    You use the Replacement Path processing type to specify the value that automatically replaces the variable when you execute the query or Web application.
    Integration
    The processing type Replacement Path can be used with characteristic value variables, text variables and formula variables.
    Features
    The following options are available:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variables editor, on the General tab page under Reference Characteristic, specify the characteristic that is to be referenced by the replacement. In 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 Query
    Characteristic value variables with the processing type Replacement Path are replaced with the results of a query. In the variables editor, on the Replacement Path tab page, select the query whose result you want to use as the variable. You can now process the data result of the selected query as a variable in a different query.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables and formula variables with the Replacement Path processing type can get 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 variables editor, on the Replacement Path tab page, 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 variables screen upon each data release.
    Activities
    In the variables editor, on the General tab page, choose the processing type Replacement Path.
    Example
    If you specify a variable as a characteristic value, you do not have to give a text for the characteristic value right away. Instead, you can fill the text field dynamically, according to the characteristic that you use for the variable when you execute the query. To do this, define a text variable with automatic replacement.
    Regards,
    Shailaja

  • Replacement Path and Aggregation

    I need to use a characteristic in a formula so I used the replacement path trick that I found using these forums. Thanks! I have an issue though. In order for the replacement path to work it seems like I have to have the characteristic in my "rows" section. I don't want to see the characteristic in my result set so I have it flagged as "no display". Now the data doesn't summarize correctly.
    My data is showing up like:
    ABC,123
    ABC,234
    DEF,123
    DEF,234
    I want it to show as:
    ABC,357
    DEF,357
    I know the reason ABC and DEF are showing multiple times in the first example is because there are two different values for the hidden replacement path characteristic, but I don't want multiple rows. Is there a way around having hidden characteristics preventing summarization?

    Let me give you a better example...
    We sell paint. I have an infocube that is at the cans sold grain. If I were to do a query on Color and Cans sold it would return
    ColorSold, CansSold
    Red, 1
    Green, 1
    Blue, 3
    Orange, 2
    Yellow, 3
    We don't really have green and orange on stock, we make it upon request by blending the two primary colors. We don't have the data at that level though, only cans sold level. The customer wants to have the data summarized by the base stock colors sold. I know the components though, so I created a table that looks like this...
    ColorSold, ColorStock, ColorFactor
    Red, Red, 1
    Blue, Blue, 1
    Yellow, Yellow, 1
    Green, Blue, .5
    Green, Yellow, .5
    Orange, Red, .5
    Orange, Yellow, .5
    I made a data store out of the table and joined it to my infocube using an InfoSet. I need to be able to do a left outer join, but that isn't really important. Even though ColorFactor is a number, I made it a characteristic because it always tried to aggregate improperly.
    My new data set would look something like this. Notice if you were to total it up, you would get double the cans sold for the blends...
    ColorSold, ColorStock, ColorFactor, CansSold
    Red, Red, 1, 1
    Green, Blue, .5, 1
    Green, Yellow, .5, 1
    Blue, Blue, 1, 3
    Orange, Red, .5, 2
    Orange, Yellow, .5, 2
    Yellow, Yellow, 1, 3
    I made a formula variable with a replacement path of ColorFactor called ColorFactor% and made a caculated key figure from multiplying CansSold * ColorFactor% and named it AdjustedCansSold
    ColorSold, ColorStock, ColorFactor, AdjustedCansSold
    Red, Red, 1, 1
    Green, Blue, .5, .5
    Green, Yellow, .5, .5
    Blue, Blue, 1, 3
    Orange, Red, .5, 1
    Orange, Yellow, .5, 1
    Yellow, Yellow, 1, 3
    What I want to end up with is...
    ColorStock, AdjustedCansSold
    Red, 2
    Blue, 3.5
    Yellow, 4.5
    The problem is, when I simply hide ColorFactor it yeilds.... because it is still in the characteristics.
    ColorStock, ColorFactor, AdjustedCansSold
    Red, 1
    Blue, .5
    Yellow, .5
    Blue, 3
    Red, 1
    Yellow, 1
    Yellow, 3
    When I pull it out completely it hoses up the calculated key figure.
    So I either need to be able to remove ColorFactor from the characteristics or figure out a different way to get to the end state that the customer needs. Hopefully this helps. I appreciate your responses thus far.

  • Formula Variables in 'Condition' Screen

    Hi
    I have 'Date1' as a characteristic. I want to apply for condition on this 'Date1' characterstic.
    So i created a 'formula variable by using replacement path' for this 'Date1' characteristic . And i included this 'formula variable' in an NewFormula in Columns of Query Designer.
    Then im trying to put 'Condition' on this   New Formula . When i try to give the Formula Variable in the condition screen at bottom.
    Then it says that the Formula Variable doesn't exists . Why it is like that
    Cant we use the formula varaibles in condition screen (at bottom of condition screen). Please let me know
    kumar

    I am not very sure but I think we cannot use Formula variable with replacement path in condition.....
    The variables with replacement path cannot be used everywhere as we use the customer exit variables. May be that is the reason but still I would say I am not very sure about this

  • Formula variable - Maximum Date in result output

    Hello Guys,
    Scenario -
    Data in Cube
    *Reseller      Sales Date*
    RS1          01.01.2010
    RS1          01.01.2011
    RS1          01.01.2012
    RS2          01.01.2008
    RS2          01.01.2009
    RS2          01.01.2010
    Required Output - Display one record for each Reseller with recent Date.
    *Reseller      Sales Date*
    RS1          01.01.2012
    RS2          01.01.2010
    What I did till now --->
    Created a Formula and included a Formula Variable (replacement Path ref char - Sales Date) hence I got the date as keyfigure.
    Reseller      Sales Date     Sales Date Formula
    *RS1          01.01.2010     201,00,101*
    *RS1          01.01.2011     201,10,101*
    *RS1          01.01.2012     201,20,101*
    *RS2          01.01.2008     200,80,101*
    *RS2          01.01.2009     200,90,101*
    *RS2          01.01.2010     201,00,101*
    For the Sales Date Formula (Calculation tab - Calculate result as Maximum) to display the result as maximum.
    The issue is that when I remove the Sales Date from Drilldown the Sales Date Formula display X. I was expecting the result row to be displayed i.e  the maximum value for RS1 and RS2.
    Can you guide where I am going wrong... or any other method to achieve the above output is appreciated.
    -Amit

    Hi,
    Through replacement path you can achieve this.
    On row side put *Reseller.
    on Column side create a formula(and  on Aggregation Tab: Exception Aggregation: Last Value, Reference Characteristics: Sales Date)
    and there create formula variable and use replacement path.
    Details
    Type of variable: Formula
    Processing By: Replacement Path
    Reference Characteristics: Sales Date
    Replace variable with: InfoObject
    Replace With: Key
    Dimension: Date

Maybe you are looking for

  • What is the best way to protect it?

    I HATE getting scratches or any sort of cosmetical damage on my devices, I am getting my first MBP on Friday, and want to know what the best way to keep it like new is? It won't be leaving the house regularly for a while, but I do have a neoprene cas

  • Can't play more then 4 stream at a time

    We are doing the project called player. In this we have tried to play actual call and its related calls ( in and out voice separately) But we can play 4 stream at a time, but if it reaches more then 4 its throwing below error. In this we are using JM

  • Once I've saved a PDF document in Adobe Reader is there a way to add additional documents later?

    Once I've saved a PDF document in Adobe Reader is there a way to add additional documents later? If not is there a way to combine lets say 100 documents into another PDF file at once (Batch export) in PDF Pack software or do I have to add each docume

  • Display and driver issues with Windows 7 on i5 MBP

    Hello- I just purchased one of the i5 Macbook Pros, and set out to get Windows 7 working through boot camp. I did this on an older model (32-bit) previously with no problems. This time around, installation of Windows worked fine, but I have had some

  • Need help:my dialog can't work

    My dialog's code: var myDialog = new Window('window', 'find',undefined); myDialog.lstbx=myDialog.add("listbox"); myDialog.show(); It doesn't work. Anybody can tell me why and give me some examples let it work?