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

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

    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?

  • Formula Variable in Bex , Urgent

    Hi Experts,
                        I have created a formula variable on 0Material with replacement path as processing type. I am using this formula variable in a formula that i have created. The formula works fine.
    However , when i create another formula variable on 0Prod_hier ( which has a navigational technical name 0MATERIAL__0PROD_HIER ) with replacement path as processing type, The formula which i have created doesnt work.
    Ex:
    1) ('MAT_FORM' == 100010001)'NET_SALES'10  , This works fine
    2) ('HIER_FORM' == 10000010000001)'NET_SALES'10    . This fails.
    Iam using the same formula process but with different formula variables , i cant understand why the formula is failing
    I have checked the data, in the cube and the infoprovider (0Material has 0PROD_HIER data) , but i am stuck as to why the system is not recognizing the prod hier values,
    Kindly help me on this,

    Hi,
    Please read the following:
    BEx Query Designer: Creating formula variables
    You have loaded data into your InfoProvider. To be able to use sign reversal in reporting, you have to define a formula variable in the query definition:
           1.      You are in the Query Designer. Under Key Figures, use the context menu to choose New Formula. The Formula Builder opens.
           2.      Under Formula Variables, choose New Variable from the context menu. The variables wizard appears.
           3.      Enter a name and a short text for the variable. Choose Replacement Path as the processing type.
           4.      Choose your hierarchy basic characteristic.
           5.      Choose Hierarchy Attribute as the replacement. The attribute Sign Reversal is automatically displayed.
           6.      Save your formula variable. When defining the formula variable, you get the factor 1 or –1, with which you can multiply the required key figure.
    Regards,
    Subha
    If you find it useful, pleae grant me points

  • What is a formula variable in bex

    hi friends,
      can anybody tell me about what is a formula variable. how can we use formula variable. give me one simple example. thankk u.
    thanks,
    sree

    Hi..
    Here is the sap link which will gives u the best about variable...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0a/cd6e3a30aac013e10000000a114084/frameset.htm.
    Here is some examples  how u can use formula variable...
    1) If u want to multiply the key figure in the data target(DSo or CUBE) with an attribute of masterdata which is used in the Data target.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc.
    2)caliculating the aging.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    3) the difference in the dates at the query level
    Re: Calculate no.years/months/days in Bex formula
    Regards....KP
    Edited by: kundan.sap on Jul 3, 2010 5:41 PM

  • Formula variables from BEx to WebI

    Hi,
       I have a formula variable(manual input) in a Bex Report, based on this variable only the result output is displayed using conditions.But when i create a webi report on this , the formula variable is coming as a default prompt, but the condition doesnt work.
    Thanks,
    Praveen

    Hi ,
        Can anyone please give me suggestions on this
    Thanks
    Praveen Kuamr

  • Creation of 4 new formula variable in bex.

    Hi All,
    i have one requirement from my customer.Can you please suggest me to achieve on this.
    All,
    Please can 4 new Formula Variables be created in SAP BW for all relevant structures
    Can the Pipe Test Date, Gas On Date, Completed Date and Abandoned Date be all based on Working days rather than calendar days
    My queries to the above requirements is:
    1.Do we need to write a code in customer exit(EXIT_SAPLRRS0_001) to achieve this.
    Please advice.
    Regards,
    Sakthivel S

    Hi,
    Do you have Working days field or data in your system? I think you are talking about Factory calendar.
    You can create 4 Formula variables by taking reference chars as Pipe Test Date, Gas On Date, Completed Date and Abandoned Date
    Yes, you need to write CMOD code to consider Working days.
    Can you explain requirement much more clearly?
    Regards,
    Suman

  • Drop-Down-Box (F4 Input Help) for formula variable in BEx Analyzer (BI 7.0)

    Hi Gurus,
    is it possible to get a drop down box for a ready for input formula variable in the BEx Analyzer (not BEx Web!)?
    We want to let the users choose scaling factors 1, 1000 or 1000000 (implemented via this formula variable). In the settings of the formula variable you can only choose a default value but there seems to be no option to provide all three factors in a drop down box like the ones for characteristic value variables.
    We could prevent other entries in the variable pop up via customer exit (i_step 3) but the business is wishing an F4 input help like the ones for characteristic values.
    Thanks for your help,
    Marco

    Hi Macro,
    Its not possible to get drop down box for a ready for input formula variable. Because it is possible only for characterstic value variables but not formula variable.u donnot get any drop down box like ready for input for formula variable.
    Regards,
    Premalatha.C

  • Change the description dynamically for formula variable in Bex

    Hi Everyone ,
    I need to change the description of my formula variable that i have created in coulmns.
    My requirement is as follows:
    Depending on the date it must show for next 5 days . So i have created 5 formulas and i need to change the description dynamically.
    22 july 2013
    23 july 2013
    24 july 2013
    25 july 2013
    26 july 2013
    XXX
    XXX
    XX
    XXXX
    XXXX
    Please help me in this.
    Thanks in Advance.
    JC

    Hi,
    Please follow this doc to create text variables to display texts dynamically.
    http://scn.sap.com/docs/DOC-11187
    Regards,
    Suman

  • Formula Variable in BEx

    Hi All,
    Can some one explain to me whta a formula variable is all about and how it works.
    With an example or point to some document for the same...it will be very helpful.
    Thanks in advance.
    Tina

    hi Tina,
    check this
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/579b3c494d8e15e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/579b3c494d8e15e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/1e9b3c334d8c15e10000000a114084/content.htm
    hope it helps.

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

    Hi All
    I have a requirement to calculate an aging bucket. ( CURRENT_DATE - EXPIRE_DATE). I have Expire_date as a characteristic InfoObject of DATS type.
    I found a solution to create formula variable in BEX and use replacement path functionality.
    When i do the same i can save the variable and the query. but on performing a query check i get the following error:
    variable used incorrectly or does not exist.
    Kindly suggest why this is happening. We are using Bex 7. I refered to the following link.
    http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html

    Hi,
    check out tths pdf.It will give you whole insight on how to work on ageing report.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc?quicklink=index&overridelayout=true
    Hope it helps.
    Regards,
    AL

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

  • SAP Bex: How to calculate formula variable, without dragging corresponding date in the row

    Hi Experts,
    In my requirement, we should not do any changes in the BW system. I need to create a Bex query on the existing Info-set, KPI need to be calculated from the date objects.
    e.g
    Delivery date - Order date - which has been done with the formula variable in the bex, I'm getting exact value. the  problem is if I'm not dragging the Delivery date or order date in the Bex ROW, its not populating value. I'm expecting consolidated value for a month.
    It has an impact in the BOBJ system. since i'm not getting consolidated value, the number of data which is coming in BOBJ system is very huge. Hence doing calculating in the bobj will affect performance.
    Regards
    Vijaykumar

    Hi,
    i think your calculating the value form Delivery date - Order date.
    if you drag the Delivery date - Order date object to rows it will give values.
    Thanks,
    Phani.

Maybe you are looking for

  • The keyboard /mouse unresponsive in yosemite on my Mac Air Late 2010

    How do I fix the problem of lack of responsiveness with my keyboard/mouse after installing yosemite on my late 2010 Mac Air?  Losing typing ability in mid sentence!!

  • How to define my startup class in an .ear package?

    I am using WL6.0SP2 on solaris. I plan to package my application as an .ear file and to put all necesarry class files in there (it will has one .war file for the web tier and one .jar file for the EJBs). I want, when Weblogic loads my .ear file (i.e.

  • HP photosmart p 1000

    My photosmart p 1000 has worked like a trooper for years. Recently, the color ink stopped working. B&W works properly but it simply wont print in color. COlor cartridge shows 90% full, its inserted properly (as evidenced by the fact that the toolbox

  • I`ve got a message error 7 or windows error 1114 and i cannot start itunes

    When I start Itunes, I`m getting the message R6034 the C runtime library is been misplaced and then another message with the error # 7 or Windows error 1114, so I cannot start itunes. Can somebody help me? Thank you.

  • Scheduler jobs to refresh table data from SQL server

    Hi ! I am planning to have a scheudler job to refresh data from a SQL server database into Oracle. All I do is run several of the below statements. Each of these tables have less than 100 rows. So, it completes in under 20 seconds. I am wondering if