Date Formula variable

Dear All,
I have created Date formula variable and i have applied some exception aggregation on that to find Last bill date.
Now i am creating formula and applying following condition :
((If quantity > entered quantity) AND (Quantity2 ==0) ) * Sale date whr Sale date is exception aggr on date formula variable.
But when i apply this date format is changed to Number format.
Plz help ASAP.
Regards,
SS

I am using Billing date so it has reference to 0DATE.
So in this case how do i achieve this?

Similar Messages

  • Date formula variable with replacement path.

    Hi ,
    I have date formula variable with replacement path.
    Variable pop up with date format yyyymmdd. but i want dd.mm.yyyy.
    I have checked my user profile setting and it is dd.mm.yyyy.
    Can u please suggest it .
    Thanks
    Pramod

    Thanks for the rely , but basically i need a variable only for selection.
    thats why i have created formula variable processing my cutomer exit.
    But i think customre exit variable comes with text format .
    any1 has an idea for the same.
    Thanks
    Babu

  • Date Difference between to date formula variable

    Hi Expert,
                    I have create two formula variable one for Document Date and another one for Goods reciept date
    and through formula variable I am subtracting these two formula variable and getting the no. of days between
    document date and GR date.
    This Shows me the correct value for one document date because i am filtering my query according to document
    date,
    while i am giving the date range for document date is shows me incorrect result. bucause document date formula
    variable contains only one date.
    Eg. i am giving the document date range like 01.02.2010 - 28.02.2010.
          In document date formula variable it contains only 01.02..2010 and GR date formula variable it contain correct
    value, thats why the date difference is incorrect because those PO which has PO date like 12.02.2010 for that Doc
    formula variable bring the same date like 01.02.2010.
    Please tell me the solution
    Thanks and Regards
    Lalit Kumar

    Hi Expert,
                     Actually i have created two formula variable on for PO date and another for GR date
    and i've restrict the query through PO date.
    while i am taking the single PO date in Selection parameter it showing me correct difference
    eg: Selection Parameter for PO: 01.01.2010
    But while i am taking the date interval for PO date
    eg: 01.01.2010-30.01.2010
    PO No: XXXXX123 , Doc date: 01.01.2010 GR date: 7.01.2010 then date difference is : 6
    PO No: XXXXX432, Doc date: 03.01.2010 GR date: 8.01.2010 then date difference is : 7 but it is 5
    Thanks and Regards
    Lalit Kumar

  • Date formula variable in BEx output

    Dear All,
    In Bex , I made a formula variable F_CURDATE and used it in formula. I fill it with current date
    l_s_range-low = sy-datum.
    My value in BEx comes 201,40,604. This is 04 Jun 2014.
    Why isn't it coming in date format. I then, used data function [date]'process value as date. The output shows value X.
    How can I show  date in date format in BEx?
    Regards,
    cleo

    Hi Cleo,
    The bit l_s_range-low = sy-datum must be coming from the customer exit code, right?
    And should this code not be used for populating a cust exit variable? How do you populate sy-datum to a formula variable in the query? Pls correct me if i m missing something in your question.
    However if it is a formula variable on 0CALDAY, there are standard SAP variables giving current date.
    Can you not use them in your query as per your requirement?
    Regards,
    Srilakshmi B

  • 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

  • Formula variable not displayed in proper format

    Hai,
         I used a keyfigure formula variable, that gets current date, in a query (In columns, key figure structure to calculate no. of days). The no. of days are calculated peoperly and everything is just perfect.
    But after executing the query, when I display text element=> variables, the system is displaying the variable as 20,060,803 as opposed to date format like 8/3/2006.
    Question: Is it how the date formula variable is displayed or there is a system error?
    I remember seeing it in date format.
    Can somebody comment on this or suggest a solution.
    I couldn't find notes on this too!

    In the restricted key figure formula definition, use the Data function "Process Value as Date DATE" and enclose your restricted key figure calculation inside the date parenthesis.
    I have another related problem.  I am trying to use dates to calculate 30 days before a (date formula variable), 60 days after, etc.  Some of the dates are calculating correctly, but some are just returning an X.  All appear to be extracting with the same format.
    Anyone have a similar problem?

  • 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

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

  • Formula variable to find week name for a date

    hi,
    i want to get the week name for a date value and i want to do this in query designer.can anybody tell me whther ican create any formula variable for this and if yes how can i do it???

    y dont use text varaible processing by customer exit

  • 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 to add three char. date value together?

    We've been struggling to use formula variable (Replacement Path), but never been sucessful!
    We have three row date type of char which are c1, c2, and c3.  Now users would like to see a summation of the three date char.  We believe we will have to use Replacement Path formula variable for each of the char., but somehow the formula variable always show "X" in column.
    Any idea?
    Thanks!

    Hello Kevin,
    you can not summ characteristics but only key figures.
    if you want to see the summ of a key figure for certain characteristic values you need a restricted key figure (with aggregation type sum) and a selection for your characteristic for the 3 values.
    regards
    Cornelia

  • How to create formula variable on system date.

    i want to calculate inventory age as on today. i have create formula variable on inventory creation date. i want to create <b>formula variable on system date.</b>

    simply create a formula variable and set the processing to "by user exit"
    in the user exit assign sy-datum to the variable

  • BW - problem with formula variable (date format)

    Hi,
    (sorry if I'm using different term than yours.. this is my 2nd query.. still new with BW)
    I need to create 1 query: Support Message Aging Report.
    Basically it will have 5 columns: Not Due, 0 Day, 1 Day, 2-10 Days, >10 Days.
    and 1 input selection is: key date.
    the formula is: number of aging day = key date - due date.
    I have no issue on the 1st and 2nd column. For that I just create 1 customer exit.
    My problem is on how to separate the over due support message by day (due date < key date).
    I tried create 2 formula variable for key date and due date. Then from these 2 vars, I can get the number of days.
    Problem comes when the calculation is cross month/year. I suspect maybe because the return from the formula var is in number format and not date... yyyymmdd. Then, I change the dimensions from number to date.. it is working for key date.. dd.mm.yyyy.
    but for the due date, I got problem... it keeps give me warning saying: value 'D' invalid for property dimension of element etc.///
    below are details for both formula variable.. please advice which area should I fix or maybe you can suggest any good idea for my query.. thanks so much
    1. ZKEYDATE - customer exit (value  input data) - dimensions date - NO ISSUE (OUTPUT: dd.mm.yyyy)
    2. ZDUEDATE - replacement path (ref char ZBW02C08) - replacement rule: infoobject, key - dimension date - GOT WARNING...
    ZBW02C08: contains due date and the type is date: yyyymmdd

    If I were you, I'd try two things:
    best way - have the infoprovider changed to have a new key figure for the number of days difference
    - to do this with formulae (especially crossing months and years - what about leap years) is hard to maintain and develop
    other way - make a virtual key figure - i did this once but I forget how exactly. There's a userexit or BADI somewhere which can be used for this.
    Either of these ways allows the calculation to be done in ABAP itself where date1 - date2 gives you the number of days difference.
    By the way though, this is in the wrong forum. I'd bet if this was in a BI forum, you'd have an answer already.

  • 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

Maybe you are looking for

  • How to write EJB-QL query with IN notation and list values EJB3.0?

    hi, I would like to write an EJB-QL query where the query would return the objects whose name equals to one of the names in the list. SELECT DISTINCT OBJECT(feature) FROM MAPSHEET_LOCK feature WHERE feature.name IN ?1 For ?1 I would like to pass in a

  • Set-up Airport Extreme 6thG

    How do I set-up my Airport Extreme 6th generation with AT&T U-verse ARRIS NVG589 router? Would this be a difficult task? Any help appreciated! Thanks

  • WAG120n as a wireless client

    Hello, I have 802.11n wireless network at home. Unfortunately my TV box requires internet to work and it doesn't have wifi card installed (only ethernet port). It's very unconfortable to connect tv box with the router through cable. So is it possible

  • Need help in OO programming

    Dear experts, I am looking a way out by which i provide a single value as a parameter to a method .Assume single value is N. and which could return me an internal table.I read it is not possible with returning.Any other way ?. Also,What is returning

  • Error in BDocs:SMOH_REPLICATION_WRAPPER_MSG

    Hi When I am downloading customer data to CRM, following errors are being displayed. although customer is replicated completely, but following error message is displayed in smw01 1) Service that caused the error: SMOH_REPLICATION_WRAPPER_MSG 2) Could