In Bex Formula variabel, Current calander day(sap exit) missing

Hi All,
In Bex Query Desinger, there is a defualt SAP Exit formula variabel - "current calander day", we can use this.
I am unable to see this formula variabel in my formula variabel list.
How to get this standard sap formula variabel - "current calander date" in formula variabel, is any setting required to do?
Dushyant.
Edited by: DUSHYANT DADHANIYA on Aug 24, 2010 5:27 PM

Hi Ravikanth Indurthi  ,
i found 0f_aday - fomula var for current calendar day, this is only working at formula variabel in beq query designer.
is there any formula variable for counting number of days, ex today is 13 sep 2010 than i want result 12 using formula variabel.
is there any formula variable to get last date of previous month?
Regards,
Dushayant.

Similar Messages

  • "Current Calendar Month" vs. "Current Calendar Day (SAP Exit)-1" why this?

    Hi,
    we are looking at a situation regarding Yerterday's data against MTD for the same restricted key figure. The believe is that MTD(Jan 10) less MTD(Jan 9) should be equal to Yesterday(Jan 9) i.e. yesterday's data, assuming today is Djan 10 2007.
    Unfortunately it is not happeing like that. Any ideas as to what may be going on?
    "Yesterday" is the key figure is restricted by
    "Calendar day" restricted on "Current Calendar Day (SAP Exit)-1"
    "MTD" is restricted on
    "Cal. Year/Month 0CALMONTH" restricted on "Current Calendar Month 0CMONTH"
    Shouldn't the Yesterday and the difference between MTD as described above be the same?
    If not, how should the time char be handled to get what I am looking for?
    Thanks

    HI,
    thanks for the example ... let me correct what you did not get:
    Using your exmple,
    MTD(Jan 10) = 1500
    MTD(Jan 9)   = 1400
    Therefore, MTD(Jan 10) - MTD(Jan 9) = 1500 -1400 =100
    But on Jan 10, when I say Yesterday, I am referring to Jan 9 = 600
    Why is Yesterday, calculated based on the cummulative difference of the two MTDs not equal to the raw Yesterday?
    This is where the confusion is. Somebody got the report for MTD(Jan 9)  and noted the number down. Then on the next day got the report for MTD(Jan 10)  and noted the numberber down. When she takes the diffference and get 600, she expects that when she compares it to the Yesterday's data she gets the same numbers. Why is it that also in your example it does not happen that way.
    Thanks

  • InfoSet in BW 3.x - shows variable calendar day (SAP Exit)

    Hi,
    I have created a infoset using a Left Outer Join and when I run the report it shows a variable called Calendar Day (SAP Exit). The infoset is not using any temporal joins or time dependency.
    i am not too sure why the vairable is automatically showing in the report. Note this is a 3.x infoset.
    Thanks,
    Leo

    Yes, i havent added it to the report. I actually created a brand new report with two fields in it (no variables) and the calendar day vairable is still shown.

  • Using SAP Exit Variable twice on the same report

    Hello all,
    I need to use the same variable -Current Calendar Day (SAP Exit)- to filter against 2 characteristics on the same report.
    Unfortunately it's not possible, here the error:
    " Variable 0DAT is used in both (structure) element 11T4741S4XTWZUAJ9IQ6DUDE1, and element AZLK9YCS4XGJ940MRPMLXMDS9 for various characteristics (ZCBBIDATE, ZCBPHTDT). This is not permitted as the characteristic is required for the F4 value help structure."
    May you please suggest me a way to do it ? Thanks in advance.

    Hi
    As the 0DAT varaible check the other standard varaible which provides the same function in business content.
    Or create a varaible with Customer exit and use it.
    In CMOD write the code in like this
    WHEN 'ZDAT'
    L_ZDAT = Sy-datum.
    L_S_RANGE-low = L_ZDAT.
    and follow the other codes as you define for other varaibles.
    REgards
    M.A

  • Current Year Formula Variable with SAP-Exit

    Hi Experts ,
    Is there any SAP Exit Formula Variable avaliable that we can use in BEX which gives us the Current Calander Year?
    I am able to find the current fiscal period ie "0F_CUFPE" which provides the current posting period/month.
    On similar basis, I need a FV which provides me the Current Calender Year.
    Please note that I do not need Characteristic Variables for Fiscal Year .
    Regards
    Dipali

    Hi,
    If you're refering to the InfoObject 0CALYEAR, there is an exit variable available called: 0CYEAR - Current Calendar year
    Which will filter on the current year.
    br
    Mikael

  • Current date / day of year in formula

    Dear all,
    For a calculation, I need the day of the year in order to calculate a year-to-date budget (derived from the full year budget).
    [ YTD budget = Full year budget * day of year / 365 ]
    The full year budget is in my infocube, as is 0FISCYEAR and 0FISCPER and 0CALMONTH2.
    The infocube provides actual and budget data per month (0FISCPER) as most detailed level (so 0calday is not part of my cube).
    In order to make the calculation I presume I need the variable 0DAT (SAP Exit) but I am not sure if that is correct.
    Problem is: I am not able to and/or don't no how to use this variable. The documentation says that 0DAT is part of 0calday, and I am not using that characteristic...
    And when I try to create a new variable, and specify that I want to use a SAP exit and enter the name '0DAT' I get a message in return that the name is already in use....
    It seems to be a waste of space to add 0calday to my cube, just to be able to get the current date for my calculation...
    So, suggestions would really help me:
    How can I use the 'current day of the year' in a formula - preferably without addomg 0calday to my cube...

    Hi Ansem,
      The defalut 0DAT variable is charecterstic variable which you can't use it in formula(only formula variables can be used in formulas).
      So, you need to create a new formula variable with customer exit procssing type. In the customer exit code you assign day of the year to the variable .
    Then use this formula varibale in your formula in place of day of year.
    If this helps to solve your problem, do not forget to assign points.
    Regards
    MB

  • Current Workday SAP EXIT variable not aligned with correct work days

    Hello,
    I am trying to use the Current Workday variable within a report so that the data will only be refreshed when the calendar day is Monday - Friday. Users look at this report every day, but when they get the report on Monday we would like for the date to be restricted to the previous Friday, and then switch back to Monday's date when they view the report on Tuesday. In order to do this we have placed the Current Workday variable from the Calendar Date characteristic with an offset of negative 1, but it is showing Sunday's date when they look at the report on Monday.
    My questions are:
    -Does this variable use the factory calendar that can define the work days?
    -If so, which Factory calendar does it use? I have gone to the Tcode SCAL but I can see there are many different factory calendars and I have no idea which calendar this variable pertains to. I have also transferred the global settings for the factory calendar from the source system, and I see no change within the variable.
    -How can I see the program name behind this SAP Exit variable? My thinking is that I could at least look at the code to see if perhaps I can find out the factory calendar ID the variable refers to from there.
    Any help on this would be greatly appreciated! Until this is fixed I have to manually adjust this report every Monday and Tuesday morning!! Not ideal.

    Hi Kelly,
    I am not sure whether this can be done by an SAP Exit variable.
    But you may try this using a Customer exit variable by using the Function module DATE_COMPUTE_DAY.
    The function module "DATE_COMPUTE_DAY" will return the day by 1 to 7 when you input date.
    Monday : System will return value = 1
    Tuesday : System will return value = 2
    Wednesday : System will return value = 3
    Thursday : System will return value = 4
    Friday : System will return value = 5
    Saturday : System will return value = 6
    Sunday : System will return value = 7
    So input sy-datum to this FM and find the number of day. If it is Monday, the number will be 1.
    If output is 1, then offset date by -3 to that of Friday, else offset by -1 to previous day.
    Hope this helps,
    Regards,
    Hari

  • FORMULA VARIABLE "NO OF DAYS"

    Hi
    my report is based on infoset(ISARGL) and need one field (No of days)
    No of  days = 0CALDAY - POSTING DATE.
    BEFORE I WAS NOT HAVING 0CALDAY IN INFOSET(ISARGL)  AND ODS, BUT I ADDED IN BOTH ODS THIS 0CALDAY.
    POSTING DATE I HAVE IN INFOSET.
    for No of Days i am creating CKF based on formula variable.
    here i used replacement path, KEY, DATE.
    Formula variable FISFV_CD IS MADE FOR 0CALDAY.
    GETTING SYSTEM ERROR.
    Formula variable FISFV_CD is used in formula element No of Days and is
    to be replaced from characteristic 0CALDAY or from an attribute of
    0CALDAY. However, 0CALDAY is not contained in InfoProvider ISARGL.
    Neither does it reference any ISARGL characteristic to No of Days and
    0CALDAY is not a basic characteristic.

    variable FISFV_CD having  (current date)
    processing by  -          replacement path
    replace variable with -  attribute value
    attribute  -                  charac. reference (constant 1)
    dimension id -              number
    character.   -                calander day
    variable FISFV_PD having  (posting date)
    processing by  -          replacement path
    replace variable with -  attribute value
    attribute  -                  charac. reference (constant 1)
    dimension id -              number
    character.   -                posting date
    My selection screen is coming for calender date .
    now i am abele to see report but no of records coming 0.0000
    plz provide me solution

  • Can i now exact bex formula to be inserted

    Can i know the bex formula to be used by if  else statement in bex query.
    if f9 greater than e9  then result should be  E9*B9   else  F9*B9
           IF(F9>E9,E9*B9,F9*B9)

    Hi Naiduz,
    There I have missed one point, you have to create a formula variable for both these fields and with replacement processing type. Then only you can use the formula like this.
    Hope this clarifies totally.
    Kindly refer the doc for more understanding. It has been explained crystal clear here.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d08b56a8-daf5-2e10-2397-904d6aeb55c2?QuickLink=index&…
    Thank you.
    Chandan Praharaj

  • BEx Formula Use of 'Logical And' and Calculation for Gross Margin

    HI Bex gurus.
    Having an odd time with what should be a simple formula to handle the display of gross margin (GM). The goal here is to display GM% properly and the requirement is as follows
    If GM <= 0 then 0.0
      Else
    If GM > 0 and Sell > 0 then ( ( sell - cost /sell ) * 100 )
      Else
    If GM >0 and Sell = 0 then 100
    I am familiar with bex formulas and have referenced the help docs on booleans here -
    Boolean Operators - SAP Business Explorer - SAP Library
    But what is odd is that if I use a calculation or a CFK in the IF, THEN with a LOGICAL AND, the formula does not report correctly
    If I put in a static value, like 77, the expected logic is followed.  I have tried making sure have extra parentheses and changing the order of the statement, to no avail!  I could use some extra brains on this puzzling matter, so you help is greatly appreciated and will award points!
    Thanks
    lee lewis
    Here are the formulas in text and below screen shots.  Wish could copy and past formulas to and from editor!
    GM%77
    ( ( ( 'Order GM' >0 ) AND ( Order Sell  >  0 ) ) == 1) * 77 + ( ( ( 'Order GM'> 0 ) AND ( Order Sell == 0 ) ) == 1) * 100 + ('Order GM' <= 0) *0.0
    GM%
    ( ( ( 'Order GM' >0 ) AND ( Order Sell  >  0 ) ) == 1) * 'REF GM%' + ( ( ( 'Order GM' > 0 ) AND ( Order Sell == 0 ) ) == 1) * 100 + ('Order GM' <= 0) *0.0
    'REF GM%
    (order  sell - order cost /order sell ) * 100 )
    GM%77
    GM%

    Shouldn't you change on of the brackets in your REF GM% ?
    'REF GM%
    (order  sell - order cost /order sell ) * 100 )
    I would put that as
    'REF GM%
    (order  sell - order cost) /order sell  * 100 )
    Not sure what you mean with those red arrows... but in both cases you would be dividing by 0 (order sell = 0).

  • Current Calendar Day on Selection Screen as Default

    Hi,
    I have a situation where i need to have a variable which pulls up current calender day as a default value in the selection screen.
    Here users can use the default value if they want or else they should be able to change the default value to their requirent date.
    I have gone thorugh number of posts in this forum , but non solved my problem . that is the reason i am posting new thread. Please suggest.
    Thanks,
    Kumar

    Hi Kumar,
    You can use the SAP standard  0DAT ,this will display the current calendar day.
    Or
    We can write it in CMOD 
    Create A variable by name Y_SDATE in the QD and in CMOD u can write this piece of Code.
    WHEN 'Y_SDATE'.
            SY_DATE = SY-DATUM .
            IF I_STEP = 1.
            L_S_RANGE-LOW  =  SY_DATE .
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    Hope this helps
    Rgds
    SVV123

  • How to Increase the Rows and Columns Size of Bex Query in Enterprise Portal  of SAP  7.3

    Dear All,
    Please let me know the process how to Increase the Rows and Columns  Size of Bex Query in Enterprise Portal  of SAP  7.3 .
    Currently I am getting Only  4 columns and 10 rows in One Page .And I am getting 1,2 etc tabs for both row and column. So i want to increase the column length more than 100  and row length more than 10000.
    Please suggest me a suitable solution to over come this issue.
    Please find the Below screen shot.
    Thanks
    Regards,
    Sai

    Dear All,
    Please find the attached screen shot.
    The report be open with 4 or 5 columns and 5 or 6 rows.
    So, please  let me know how to increase the length of the table.
    Do the needful for me to over come this issue.
    Thanks
    Regards,
    Sai.

  • Formula   variable  sap exit

    formula   variable  sap exit   what  are the changes in my report in quary designer

    Hi,
    If you're refering to the InfoObject 0CALYEAR, there is an exit variable available called: 0CYEAR - Current Calendar year
    Which will filter on the current year.
    br
    Mikael

  • Standard variable exist for calendar day that uses current working day

    Hi
    Is there any standard range Variable that exists for info-object calendar day that uses the manual entry for the lower limit and upper limit as current working day .
    Please advise.
    Thanks.

    There are a number of standard variables 0n 0CALDAY - of processing type SAP exit, Input Allowed, Select-option or Range. You will have to check whether they give the default value of current date though as that will have to be looked up from documentation or user-exit code (or from the name of variable).
    To shorten the candidate list, SE16 on table RSZGLOBV where
    OBJVERS = D (Delivered version)
    IOBJNM = 0CALDAY
    VARTYP = 1
    VARPROCTYP = 4 (SAP Exit)
    VPARSEL = I, S (Range or select-option)
    VARINPUT = 'X' (Ready for input)
    It should give you about 6-7 variables that you can explore further. It is likely that none of these default to current date. Some of these are
    0DAY_***
    0TWB_30T
    0CDL12CM
    0I_CCMDR
    0CD_L14D
    0S_CALDAY
    0CD_L7D
    I see that you are looking for current 'working' day as default. Very likely the answer is 'no' in such case.
    Edited by: Ajay Das on Mar 1, 2011 7:39 AM

  • How to calculate the number of days until your next birthday. Only using current month, day and birth month and day.

    I'm trying to calculate the number of days until your next birthday. Only using current month, day and birth month and day. I can get close but i'm way off. When i enter in the next day, the amount of days is supposed to be 364. This is where I am having problems. I know my code is way off. I just need some guidance please!
    Attachments:
    D5.7_1.vi ‏8 KB

    I just had a little fun with the Time Record...
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    D5.7_1_BD.png ‏19 KB

Maybe you are looking for

  • Connecting MacBook to HDTV Samsung

    I am trying to connect my MacBook to my HDTV. I have purchased the mini-DVI to HDMI female cable and connected the HDMI female cable with another HDMI-HDMI cable to my television. The Mac and TV are reading each other, its just that only my backgroun

  • Converting bytes to pixels???

    Hi Everyone, My Jdev version is 11.1.2.3.0. I have deloped one ADF applicaton which is working fine. Now i have added a table to the page which has 3 columns. The width of the column in ADF page should be equal to width of the column in the database.

  • Brio 8.2 BQY Job Date Parms

    Hello, I'm researching how to schedule jobs in Hyperion/Brio (8.2). I have setup some working BQY jobs, but have a question when setting up date limits. It gives me several options such as first of week, last of week, first of previous month, last of

  • PE7 creates but cant read m2v files

    Working from HDV clips, output a file as m2v ( v because it contained no sound)but when I tried to import the clip into a project I'm told the file type is not supported or I don't have the correct codec installed. I was able to import m2v files when

  • Package javax.ejb not found error

    Hi there, I've downloaded j2se 1.4 and j2ee 1.3.1 and installed it on Windows XP. I set the environment variables as described. When I compile a .java file that imports the javax.ejb.* package, then I get an error "package javax.ejb not found". I fee