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

Similar Messages

  • Formula variable in condition

    Hello gurus,
    I have a requirement where i need to provide the selection option in the variable screen for the key figure. for this i hav created the fomula variable of type user entry at the condition level. I am getting the variable  in the selection screen but when i pass the value its not filtering it on that value and i am getting the same whole result.
    Pls let me know i am missing any thing
    thanks in advance
    Regards

    Hi KK,
           If you would have followed the below procedure correctly, it should work for you.
            Go to Conditions-> Right click -> New Condition -> Edit -> New -> Select the Key figures from the drop down( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
    Save & Execute, you will find it in your selection criteria.
    Re: How to create a variable for key figure (value will be entered by the user
    Regards
    Sunil

  • Formula variable is a user entry ??

    Hi All,
    I have created formula variable as a number and how i can use this formula variable is a user entry variable
    Please help me this
    Regards,
    Ravi

    Thank you very much I have used this formula variable in condition so I was missing some Key figure values, now I am getting total Key figure values 
    I appreciate your help
    Regards,
    Ravi

  • Formula variable using date char - unable to use conditions

    Hello Experts,
    I am sure I am making a silly mistake here - but after spending lot of time I am unable to rectify this - please help if you can:
    I basically want the report to show only latest employee actions for a selected period (usually month).
    1. I am using formula variable that is based on 0CALDAY and defined as number.
    2. A calculated keyfigure uses this formula variable. Both calculated keyfigure and CALDAY char are included in the report / navigation.
    3. There is a condition defined using calculated keyfigure. No matter what logic I use, I just cannot use calculated keyfigure to filter records on the report. My original idea was to use Top N - 1 with char combination as 'Employee' to get me the latest employee records for each employee.
    Can anyone help spot where I am going wrong?
    Thanks.

    I haven't looked at that, but as a first guess idea- why not use the picker to get a date, then save it as a number of seconds from a given date?
    See:
    dateWithTimeIntervalSince1970:
    Creates and returns an NSDate object set to the given number of seconds from the first instant of 1 January 1970, GMT.
    + (id)dateWithTimeIntervalSince1970:(NSTimeInterval)seconds
    Or you could store it as a string, but I think the number would be easier.

  • Formula variable used in exception and condition - gives a check error

    The same formula variable is used in a condition and exception within a query. When I click on "check", I get the message "Variable <myvar> Is Used By More Than One Infoobject". The variable is a formula variable, processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01.  However, the query still saves, generates and executes without problem.
    This is with BW 7.0, SP 14.  And with query designer 3.5, version 3500.7.572
    I'd be grateful if a few people could try to reproduce this, letting me know their version.  To reproduce it:
    Create a query. Create formula variable processed by User Entry/Default Value, with optional entry, ready for input, Dimension "number", default value -0.01. Create a condition using the  variable. Create an exception using the variable. Click on Check. Save and execute the query.
    Thanks
    Matt

    It is a warning and you can ignore it , if in query execution you get correct result / output...(then it implies u r on safe side)
    But if you are so much concerned about warning then as a workaround just create another Formulae variable and use it in Condition and use the previous formulae variable for Exception.
    This way you will have 2 variables for 2 different purposes
    and you will get rid of the warning message.
    So far if you get the correct output of query then there is no need to worry.
    Edited by: kartikey on Dec 20, 2007 1:45 PM

  • Condition formula variable on date key figure

    Hello, I would be grateful for any help on this
    I want to have a condition that has a user input formula variable
    But the Key Figure on which I want to base the condition is a Date
    And when you create the formula variable it allows only the following Dimensions :
    Amount
    Number
    Price
    Quantity
    ie Date is not one of the allowable Dimensions - is there any way round this apart from an Exit variable ?
    thanks
    Jon

    Hi,
    You have to create a formula variable with replacement path based on the date you want.
    so that you can get the date for calculation.so you can apply condition.
    check the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    Regards,
    Ranganath

  • Formula variable as reference value for condition

    Hi,
    I am trying to use a formula variable (user entry, Optional) for a condition. I use all characteristics in drill down independently while defining the condition. I have 2 issues here
    1. If I give a default value for the variable to display as 500, the report displays only 5 and even in the variable I see default value changed to 5.
    2. If I enter a two digit number for the variable even if there are records matching the condition, I am getting message "No data was found meeting the above conditions"
    Would appreciate any help on why this is happening. We are on BW 3.0B Support pack 20.
    Thanks

    Unni,
    this sounds like a program error. Please check SAP notes. If you can't find a solution, open an OSS message.
    Regards,
    Marc
    SAP NetWeaver RIG, US BI

  • Condition on CKF (based on replacement type formula Variable) not working

    Hello Friends,
    We have a reporting requirement where in we want to find out vendors who are being paid with the multiple currancies.For this I have created a replacemnent path formula variable with reference to currancy and created a CKF with the help of this variable.
    Now as I want to display only multiple currancies I want a condition to display value > 1 on this CKF but
    this condition is not working as the replacement path variable contains value 1 for every currancy passed to it although it shows in the report for 2 currancies value as 2.
    Can anyone guide us in this matter?
    Thanks,
    Suyog.

    Friends found the Solution so closing this thread....:)

  • If condition in Formula variable

    Hi forum,
    Can anybody please help me write the formula below in formula variable.
    *If A >=0
    then
    result = (A/B100365)
    Else
    result = (A/B100365-1)
    Thanks in advance for the efforts.
    Regards,

    (A>=0)(A/B100365)+(A/B100365-1)
    do a formula check.
    Khaja

  • Default multiple values for formula variable on variable selection screen

    Hi All,
    Suppose 'A' is formula variable with customer exit as processing type then i want four default values for this variable eg: 3, 6,9, and 12 as selection options, when we will execute query user can able to pick any one of the default value.
    is it possible in BEx for formula variables?
    I also tried with ABAP code in 'cmod' t-code, but it is not working properly for 4 default values....but for single default value, code is working fine.
    I am using following code ::
    When 'ZCSIMCTB'. // variable name
    IF i_step = '1'.
    CLEAR : l_s_range.
    l_s_range-low = 3.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 6.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 9.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 12.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    Thanks in advance

    Hi Sankar,
    Thanks for reply...
    With single quotes also its not working.......
    Also as I am using Formula Variable so by default "Single Value" is coming on Variable Details....
    Regards,
    NIlesh

  • Formula variables based on conditions

    Hi,
    I am facing following problem with formula variables.I am explaining the result which I am trying to achieve in BEx Query Designer.
    For Example:
    I am having a result output with following columns
    Country          Customer      KeyFigure(Revenue)
    IND            A                1000
                  B                2000
                  C     
                  D                3000
                  E                4000
                  F     
    For C and F Cusotmer there are no Revenues available in BI system.So they are blank in the report.
    My 1st requirement here is to write a formula variable which will display below result in 'Formula Col1' for which I have used COUNT function in formula to achieve this.
    Country     Customer     KeyFigure(Revenue)     Formula Col1
    IND     A                1000                     0
         B                2000                     0
         C                                  2
         D                3000                     0
         E                4000                     0
         F                                  2
    So when data is available for a Customer in above table,  'Formula Col1' should display value 0 and when there is no data for a particular Customer, 'Formula Col1' should display value 2.
    My exact requirement here is to display a final report output as below, based on the above calculations of 'Formula Col1'
    Country     FormulaCol2
    IND            1
    If Formula Col1 consists of all 0's then FormulaCol2 should display value 0,
    If Formula Col1 consists of all 2's then FormulaCol2 should display value 2,
    If Formula Col1 consists of all 0's and 2's then FormulaCol2 should display value 1.
    I tried applying Exception Aggregation = Average, Red Char=Customer on Formula Col1but still could not achieve the required result in FormulaCol2.

    Create a Calculated Key Figure using Boolean Operators which will be your Formula Col1
    CKF1 = (Revenue <= 0 ) * 0 + (Revenue > 0 ) * 2
    Goto the properties of the CKF1 and set the exception aggregation as Average and refernce to the characteristic Country.
    Now create another Calculated Key Figure using Boolean Operators which will be your Formula Col 2.
    CKF2 = (CKF1 == 0) * 0 + (CKF1 == 2)*2 + (CKF1 > 0 AND CKF1 < 2) * 1

  • To create variable on condition

    Hi,
    In my report, I created condition on key figure, I want to create variable on this condition. How can I create it. Please give me steps to follow.
      Actually, I am trying pass the values through this variable to R/3 report using RRI concept.
    Please help me in this regard,
    Thanks,
    Jaswantha

    Hi,
    In condition creation screen itself,You can also use formula variables instead of fixed values. By choosing  <i>Entry of Variables</i>, the input help appears and you can select the required formula variable. The variables act as placeholders and are filled with fixed values when the query is executed.
    So you need to create a Formula  varible first with user entry as processing type.
    With rgds,
    Anil Kumar Sharma .P

  • User input formula variable with greater than/less than operators for KFG

    Hello all,
    I have used a formula in my query that is a difference of two key figures .For e.g:
    Difference = tax from system A  -  tax from system B.
    Now when the users run the report they should be prompted for the 'Difference' threshold for seeing the report say where difference is greater 100 or equal to 10 and so on.Currrently I have created a formula variable with 'user input' and created a 'condition' to display 'Difference' greater than the user entered value.
    However,it is required to have various selection options for setting the threshold of difference.For e.g User should be able to set say 'equal to'/'greater than/less than/not equal to operator for 'difference' in the initial selection screen of the report.
    With the current user-input formula variable I am not getting these 'greater than' etc operators.Any ideas on how to achieve this?

    Ya know, that's all well and good ... BUT ... WHAT IF you do want to sort text type columns with Greater Than and Less Than operatiors??
    SQL does it just Fine ... so WHY does APEX have the limit??? This is an Oracle BUG ... it SHOULD NOT limit the operators ... I realize "they" may be trying to be helpful with proper constraints to field searches ... but ... if SQL can do it, then ... no need for a limit.
    EG ...
    Show the records where
    the "Begin_Year-Wk" data is less than or equal to "2009-09" AND
    the "End_Year-Wk" data is greater than or equal to "2009-04"
    ... to give everything that was running in that 5 week period whether or not it starts within that time frame
    I can run this query perfectly fine via SQL ... but not in APEX ... unless I reconvert a lot of strings back to numbers, and for sorting / formatting / explain-to-user purposes, I really don't want them to be numbers.
    So ... there's gotta be a hidden tweak for operators somewhere ...

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    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

  • Formula variable in Report painter

    Hi
    Normally when ever you create a formula varibale for year or period system will
    check the period and year from current system year and period(S001 and S002)
    I am looking for a solution where i can create variable which is independent of
    current year and period.
    Lets Say if i give 2006 and period 7(of 2006)system has to give results
    in the predefined columns like 2006 of period 7 and 2005 of period 7 and 2004 of period 7 and 2003 of period 7(I have 4 columns)
    Can any one tell me how to create this using the formual variable,which will allow
    me to select in the input screen any period and year and display the results  as per my own requirement.
    Thanks
    Lily

    Hi Ramachandra
    Sorry for late reply
    As per your reply,i am not still clear,can i put in more clear my question again
    Selection screen 
    Year-2006
    Period-6
    I have 5 columns ,can you specify me the formula for 5 columns in your reply.
    Column1- (it has to display 2nd  quarter of 2006)
    Column2-(it has to display 1nd  quarter of 2006)
    Column3-(it has to display 4nd  quarter of 2005)
    Column4-(it has to display 3nd  quarter of 2005)
    Column5-(it has to display 2nd  quarter of 2005)
    Pls specify me FYEAR and Period from and period to which formula variable i need
    to use,how many variables i need to create for this purpose.
    Keep in view that selction screen i can give 2006,or 2005 or 2007,but system has to display 5 quarters back data in in 5 columns.
    This is urgent,can you pls help.
    Thanks
    Lily

Maybe you are looking for

  • I-Tunes Auto-Restart After Closing Program

    My i-Tunes began automatically restarting when I close the window on my desktop. It is pretty annoying. It only restarts after I have had it open. If I have not opened i-tunes it behaves. But, if I open i-Tunes to listen to music on by desktop, and t

  • SOLMAN_DIRECTORY :Mass downloading of documents not possible in solution manager

    We have maintained various solutions in solution directory under solution structure in solman 7.10 SP10 . Tcode to access solution directory: SOLMAN_DIRECTORY Various test cases and documents are stored under this structure. We can only download sing

  • Static content in iAS 6.5 (for JavaWebstart)

    Hello, I'm using iAS 6.5. I want to serve a jar file for JavaWebstart in a J2EE App (including a war file) That works, but it tooks a very long time before Webstart is loading this Jar and it is fully reloaded every time i access that App from Websta

  • JDeveloper and SuSE linux

    Hi all Does anybody else use JDeveloper 10.1.3 with SuSE linux ? I currently have SUSE linux 10.0, (kernel 2.6.13-15.8-smp), JDev version 10.1.3.0.4 SU2I with jdk 1.5.4 and I am facing various problems where JDeveloper hangs or behaves unexpectedly.

  • Can't connect when on campus

    I have no problem with my secure wireless network at home. Likewise no issues connecting to a friend's wireless at their home. However, when I take it to school it cannot connect. My macbook pro has no problems at school, nor does my ipod touch. I ha