Formula Variable: Current Date

Can somebody let me know the SAP Delievered Current Date Formula Variable Name.
Cheers!!
Amit
9990800302

Hi.......
As already said....you can use 0F_ADAY.....
Usually global variables (as formula) are available for every query (and not specifically to a single provider)...in addition, you can find all the formulas when you build a new object (new formula) in your query (you can choose from formula hierarchy)...
Check this..........
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/324de5a1-0201-0010-dc9a-a093cde87bb5
Customer Exit.......
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm
Regards,
Debjani.........
Edited by: Debjani  Mukherjee on Oct 29, 2008 4:47 PM

Similar Messages

  • 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 for date in report

    Hi All,
    I have to display the last date value of a particular date in the report.
    For a better understanding,
    I have Customer, Equipment, Service date, Amount
    In the report, I have to display
    Customer, Equipment, Last Service date, Last Service Amount.
    I have created a formula variable (Formula variable for Service date) for Service date with Replacement path.
    Replace Variable with Infoobject, Replace with Key, Dimension dates.
    And in Key figures, I have created a formula (Last Service date) with Last value in the Aggregation using the "Formula variable for Service date".
    The Last Service date is displayed as 'X' in the report since the Service date is not in the row. I cannot have the service date in the row either (not even by hiding the display).
    Kindly tell me how to rectify this problem.
    Thanks and Regards
    Adhira Anand.

    The X is appearing because, with the drill downs you have added, you have more than 1 date value to choose from when you attempt to aggregate.
    Have you tried using APD instead of exception aggregation?
    Have you built the exception aggregation calculated key figure globally or just locally (i.e. as a structure element)? It must be built globally to work properly.

  • 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 for Date/year not possible

    Hi, I have a query where I want to create a formula variable for a year that I can use in a user exit to populate other variables.  When I go to create a formula variable there is not option for a date or year variable.  I only see Amount; Quantity; Price; Number.  Is it possible just to create a formula variable for a year input without having a year time characteristic in the query?
    Thanks!

    I just ended up creating a Formual Variable as a number.  Thank You

  • 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

  • Change Formula Field Current Date

    Can someone show me how to change the current date and subtract by 1 year. Ex: Current Date - 1 I would like to take the value of the current date 20090318 and change its value to 20080318
    Thabks for your help.
    Jim Dyer

    Hi
    Create a formula field and put the below formula:
    Year(datefield) - 1;
    Hope this helps!!
    Regards
    Sourashree

  • Formula variable for dates

    Hi gurus,
    I am trying to fill a formula variable of type date via manual entry, but I cannot find which is the correct way to do it. I can introduce any other type of data (amount, prices...) via manual entry but I can´t do the same with dates. Any help about this??
    Thanx.

    Hi Ortiz,
    You can do it like this:
    1. Create one variable based on any date field.
    2. In you query In column create 1 selection, restrict any key figure with this variable (created above). In display property set Hide.
    3. Create 1 formula variable with processing type customer exit and choose dimension as date.
    4. Now in CMOD, write the below code for your formula variable:
    Suppose the source variable name is ZDATE1,
    Forumla var name is ZFinal_date
    Code it like this:
    when 'ZFinal_date'.
    READ TABLE i_t_var_range INTO wa_value WITH KEY vnam = 'ZDATE1'.
            wa_range-low    = wa_value-low.
            wa_range-opt    = 'EQ'.
            wa_range-sign   = 'I'.
            APPEND wa_range TO e_t_range.
    Now u will get the date inputed value in your formula cariable.
    5. Create 1 CKF and do the subtraction in there:
    if ur key figure name is KF1 then type forumal as:
    KF1 - ZFinal_date.
    Hopefully u wil get the desired output.
    Thanks
    Dipika

  • Formula variable for date calculations with date-characteristics (2004s)

    Hi SDN,
    I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
    I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
    I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
    If other people experience the same problem, please respond. Then I know it's probably a bug.
    Kind regards,
    Daniel

    Daniel,
    Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
    If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
    I hope this helps.
    -Bala

  • Is it possible to use charecterestic used in formula variable

    Got a boolean logic in a formula of the  structure in BEx, i could create a formula variable for date , it works .However, i have to bring payment method into the logic ,( e.g.. if the payment method is 'C'-weekly then late payment logic is different then if it is not weekly) , Any idea how to achieve this in BEx.

    You could create a key figure that always displays a fixed value example 1.
    You then restrict this individual key figure to payment method C.
    The key figure is now only 1 for payment method C.
    In your calculation you now say: if key figure = 1 then ... else ...
    If statements are not directly possible, you can only do if statemements indirectly by a similar formula:
    (key figure = 1) * value
    if key figure is one -> result of (key figure = 1) is 1
    1 multiplied by value = value
    if key figure is not one -> result of (key figure = 1) is 0
    0 multiplied by value = 0
    You now have an indirect if clause.
    Please assign points if this solved your problem,
    Best Regards,
    Filip

  • Trying to find selling price based on most current date

    Need help on finding the selling price based on the most current date.  I'm able to get the current date but not the selling price for that date.  Any help will be appreciated.
    Thank you in advance.
    This is the pivot table I'm working with.  The price should be 5.81 but it's picking up the highest price and not the last price.
    Formula for current date is =LASTDATE('Product Cost'[EFFDATE])
    Formula for current price is  =LASTNONBLANK('Product Cost'[STDCOST],LASTDATE('Product Cost'[EFFDATE]))
    Row Labels
    Current Date
    Current Price
    1152
    09/29/2014
    6.01
    Should be 5.81
    1/1/2009
    01/01/2009
    5.5
    7/9/2009
    07/09/2009
    5.11
    1/4/2010
    01/04/2010
    5.15
    4/12/2010
    04/12/2010
    5.18
    7/12/2010
    07/12/2010
    5.18
    10/27/2010
    10/27/2010
    5.18
    12/21/2010
    12/21/2010
    5.48
    12/27/2010
    12/27/2010
    5.18
    1/5/2011
    01/05/2011
    5.48
    1/17/2011
    01/17/2011
    5.47
    4/4/2011
    04/04/2011
    5.56
    8/22/2011
    08/22/2011
    5.45
    1/2/2012
    01/02/2012
    5.9
    1/2/2013
    01/02/2013
    6.01
    1/6/2014
    01/06/2014
    5.84
    9/29/2014
    09/29/2014
    5.81

    Hi Mike,
    Something like this should give you the behaviour you're after:
    Current Price:=
    CALCULATE(
    MIN(Product Cost[STDCOST]),
    FILTER(
    ALL(Product Cost),
    Product Cost[EFFDATE] = MAX(Product Cost[EFFDATE])
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com
    Blog: http://www.nimblelearn.com/blog
    Twitter: @nimblelearn

  • Calculated Key figure and formula variable issue - Urgent

    Hi,
    I have created a formula variable on dates. When I run this locally it returns results. Now I have created a calculated key figure on this formula variable. It is not returning any results. Any idea on why this is happening.
    Thanks,
    Kal

    Hi Kal,
    Can you paste your Formula & Calculated Keyfigure calculation.
    If possible give information on ur formula variable ( processing by , charactesristic , replace variable with ( if it is replacement path ) , Dimension id )
    Regards,
    SRIKANTH

  • How to assign current date/time to a formula variable in Query Designer

    How do I assign the current date to a formula variable in Query Designer? I need to use current data in a calculation and just need the date the report was run.
    Thanks

    Hi Philip,
    There is an SAP formula variable to supply the current date in a formula. I think it is 0F_ADAY...install it from business content if you cannot see it in the query designer (formula box, under formula variables) and try using it.
    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

  • Default current date in the variable

    Hi Friends,
                     I have developed an Ageing Query. Now the requirement is, as soon as the query is executed, by default the variable should have the current date. I have the restricted Keyfigures as 0-10, 11-25 etc in the Column. Can someone tell me, how to go about it.

    If u want to populate it through variable then-
    Create a formula variable
    In processing by give customer exit.
    Then goto T.code CMOD
    Create a project and assign the component RSR00001 to the project(Do not repeat if already done).
    Open components.
    Goto include of exit.
    Writ the code in include.
    Sample code
    CASE i_vnam.
      WHEN 'DEF_DATE'.
        IF i_step = 1.
          l_s_range-sign = 'I'.
          l_s_range-opt  = 'EQ'.
          l_s_range-low  = sy-datum.
          APPEND l_s_range TO e_t_range.
       End if
    ENDCASE.
    Then use this variable in the report.
    Assign points if usefull.
    regards,
    Rajendra

Maybe you are looking for

  • Issue w/ Facebook website

    So I bought a 32gb iPad and the first couple of nights I bought it I used the Facebook website chat w/o a problem. The online friends list showed up, I could tap the chat boxes and talk back and forth, etc. Just like I would on a normal desktop brows

  • Latency(ASIO Buffer)Issues, Share Your Support! On Behalf of newbies......!!

    I think most of us here gone through these problems. Especially a newbie who just started with his or her home Studio or Composition. What we face most is a Delay on real time recording of the instruments or if you creating music through MIDInterface

  • I want to add a graphic signature in mail that contains hyperlinks.  Can this be done?

    I've created an e mail footer/signature in Illustrator, chooped it up into slices, inserted slices into the signature window within Mail and have added links to some of these slices. But that's where things go wrong.  The slices are all over the show

  • How do I process Infrared photos in Elements?

    I have been using Elements 11 to enhance my photos. Recently I purchased a camera modified for 720nm IR from Kolari Vision. I'd like to process IR photos in Elements or an add on program. Kolari has a Infrared False Color program compatable with Phot

  • Photoshop CS5 Extended Trial Download

    I want to download Photoshop CS5 Extended trial version, but when I click download the download manager only lets me choose from the 3 suites.  How can I download Photoshop CS5 Extended trial version without downloading the entire suite??????