Calendar day number?

Hello gurus, I am trying to to create a report in which I display the number of people that checked in and out of a hotel. I need this report to be shown daily. The problem is that I need a comparison between each day and last year's same day. I currently have (ignore the '/'):
/////////////////////////////////////////KF 2007/////////////////KF 2008
0CALMONTH2/0CALDAY
Jan
////////01.01.2007
////////01.02.2007
////////01.03.2007
////////01.04.2007
and so on, until yesterday.
Right now the report is not working correclty. On KF 2007 I have created a selection which includes the amount of check ins, displayed by "current calendar year" (SAP exit variable) with a -1 offset. The same goes for KF 2008 but without the offset. The problem is that 0CALDAY takes values from 2007 and 2008, so the report gets partially populated on 2007 days (because KF 2008 is all blank) and partially populated on 2008 days (because KF 2007 is all blank).
I thought about having a Calendar Day characteristic in which month and year fields were removed (so it would only show 01-31 for each month) and was looking on the business content to see if there is already a characteristic that would meet this requirement. However, I could not find one. Does such a characteristic exist, or how can I create one? Or if this is too complicated, how can I get around this problem?

My requirement has changed slightly. Now what is needed is a characteristic which gives me exactly the day of the month, and a characteristic that gives me the month in text. 0CALMONTH2 gives me the month in numbers (1-12) but I need their names (January-December), and what I have seen is that this characteristic does not allow me to display them as text. And for the day characteristic, I cannot find one which gives me the day of the month (1-28, 1-29, 1-30 or 1-31 dependeing on the month).
Any ideas?

Similar Messages

  • How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    DT,
    If the starting date is in Column A, and you want to calculate what the date would be 60 days later, in Column B, write in Column B:
    =A+60
    Couldn't be much easier.
    Jerry

  • Day link - want Item to contain day number from calendar

    I'm a bit stymied here.
    Using the calendar, I would like to add a branch to a page based on the DAY of the calendar that the user clicks on. For example, if the calendar is on the screen, and the user clicks on day number 15, then I would like that "15" passed to the page that the user is sent to.
    Being a little more specific:
    Page 1 is a calendar page. When the user clicks on a day number in the calendar, I want it to branch to Page 2.
    Page 2 contains a text field for the calendar day. I would like to populate this field with the day number selected on Page 1.
    I can't seem to get ApEx to do this, but it seems like an obvious feature that users would want if they're using the Day Link functionality at all.
    Can anyone help??
    thanks,
    bruce

    I just tried creating a custom calendar template. There I changed the Weekday Attributed / Day Title Format to the following:
    <a href="f?p=&APP_ID.:2:&SESSION.::&DEBUG.::P2_DAY:#DD#"><div class="t10DayTitle">#DD#</div></a>
    and this worked out.
    You also need to change the
    Non-Day Title Format and
    Weekend Title Format
    the same way, in order to cover all dates.
    Denes Kubicek

  • How to get highest number of open cursors within the current calendar day

    Hi all ,
    i need to know how to get the highest number of open cursors within the current calendar day.
    Thanks ,

    823030 wrote:
    the issue is my customer is getting the error ORA-01000: maximum open cursors exceeded and we need an sql statment that gets the following values :
    -highest number of open cursors experienced in the current calendar day.
    -current open cursors
    -and maximum open cursorsThis error is rare. It happens when
    a) the value of the open cursor parameter is set extremly low (default is something like 1000). Low would be something like 10.
    b) <strike>you have many concurrent users(=sessions) and </strike>the application does not use bind values
    In this case each select will open a new cursor, instead of reusing it.
    c) you have a select that opens a cursor for each line. This can happen with a statement where you have the CURSOR keyword somewhere in the select or where clause. Those cursors will be closed when the select is finished. But during the run time of the select, all cursors stay open.
    To track the number of "open cursors" during the day you would need to implement some monitoring. Maybe based on the view that was already mentioned.
    Edited by: Sven W. on May 16, 2011 2:30 PM - since the parameter is on session level, other open cursors should not influence it much.

  • Converting Calendar day to Number of Days(Period to analyze in MC46)

    Dear All,
                Regards.We got a requirement where:
    1).The BW Report(Slow moving Item) should be in the same format as MC46.Like,having "Period to Analyze:No. of Days since consumption) in the input selection screen ,
    2) Calculate the Stock Value for the that particular day(Eg:For 30,60 or 100 Days backwards from Today)
    (Eg: Today:02/04/08
    Period to Analyze: 30days
    Day for which stock is calculated = 02/03/08).
    -The BW Standard report calculates for a Particular "Calendar Day(Period interval) rather than No. of Days  
      Guys,it would be fantastic if someone could take time to help me out with this issue...
    Manythanks
    Arun

    Check this one: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11291595-0501-0010-c881-e02c27261b55 if it helps

  • 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

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

  • 'Average Weighted with Calendar Days' in Exception Aggregation

    Dear specialists,
    I have created a query with a lot of calculated keyfigures.
    One of my calculated keyfigures shows percentage values.
    When I select a calendar day, my report shows correct results
    for the percentage values.
    But when I execute the report without selecting a calendar day,
    I get strange results like 3,21 % instead of 97,49 %.
    There is a new functionality with version 7.0, where we can set
    Aggregation properties like 'Average Weighted with Calendar Days' .
    But when I select this with Ref. characteristic 'calendar day',
    my report does not show any value or any result.
    Are there any other properties to set in Aggregation or Calculations.
    Please give me more information about this issue
    regards Osman Akuzun

    Hi,
           When you define an Exception aggregation on number of work days. There might be some reference characteristic defined in your Bex.
    For exmaple, take a scenario like below. Your BW data is like below
    0Employee           StockIssued
    XXX                            50                                
    XXX                            10              
    YYY                           20              
    YYY                            30             
    YYY                            40             
    ZZZ                            50              
    ZZZ                            100            
    ZZZ                            30              
    Suppose the first row which has values like XXX and 50 is not a working day and remaining all are working days then the exception aggregation applied using AV2 on the characteristic  0Employee will be caluclated in your Report as below
    For XXX, it will       10/1 = 10 (because only 1 working day for the employee XXX)
    For YYY, it will       90/3 = 30 (because all  3  are working days for the employee YYY)
    For ZZZ, it will       180/3 = 60 (because  all  3  are working days for the employee ZZZ)
    This is how the exception aggregation works. Try to see the similar kind of example in your system and try to relate in the same lines explained by me. You can understand.
    Regards
    Sunil

  • Calendar Day Link

    I've created a link on calendar days that goes to another page in the application with a form. This form has a date field, and I'd like the date field to be populated with the date that was selected from the calendar page that activated the link.
    For example, you've got the month of January and a day of 18 with nothing in the day box (no other displayed items or rows) except for the little number 18 itself.
    I can create a day link so that when you click on the 18 it takes you to some other page. But how do I get it (what application variable or substitution string do I reference) so that, on this other page, I can set a text field to have a date of January 18, 2005?
    The create calendar wizard created a page item called P_CALENDAR_DATE. However, this is consistently the current date (the date the calendar uses as a base). But is there a way to reference the date that is clicked?

    I couldn't get the #MY_COLUMN# method to work for me - I must have been doing something stoopid!
    However, the #YYYY##MM##DD# method certainly did work (although I changed the date format to #DD#/#MM#/#YYYY# to match the format of the field receiving this value).
    Many thanks for this tip

  • Getting to Calendar day view

    I like many things about ios7 but one of my most used behaviors no longer works. In The calendar app I want to make an appointment, say, t on the 25 of next March. Before, I would go in month mode to the date select a suitable day and touch the number of the day above the small display of my other appointments for that day. This would open up that day in day view and I would make the appointment. This no longer works. The day number in month view is inert (on the iPhone the month view gives you access to the day ok but not on the iPad).

    Did more reasearch and this worked... guess it was fairly simple.
    Pinch to Zoom in Day View
    The next time you are viewing your calendar in the Day view, using two fingers, slide them together to zoom in, or slide them apart to zoom out.

  • 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

  • Calendar days

    dear all,
    in my development report i need to have a field of actual work days. where as if an employee takes unpaid leave, it has to be deducted from calendar days and has to show that today actual calendar days.
    say example,in june there 30 calendar days and the employee has taken 1 unpaid leave. now the actual no of days has be shown as 29 days.
    my question is,from which table do we pick value of 30days for calendar days. do we take value from payroll constant ksoll and tkau for unpaid absences or do we use any other table.

    hi sikindar sir,
    thats great to see that you have scored 20,060 points. thats really a nice one and great achivement. i congratulate you for achieving the milestone sir.
    can i have your mobile number please,so that i can talk to you.
    thank you very much for your reply.
    ya,i have tried..but my problem now is those values should come into report.if we need to fetch in repot we need to use table na...
    please sugges from  which internal tables we can fetch the data into reports.

  • Calendar day and Calendar Year/Week  mapping

    Dear SDN,
    I am unable to view Calendar Year/Week and Calendar Day ...Data..
    I have observed that they have not mapped in the Update rules of 0SD_C03 InfoCube...
    I have checked all the InfoSources (2LIS_11_VAHDR, 2LIS_11_VAITM, 2LIS_11_V_ITM, 2LIS_12_VCHDR, 2LIS_12_VCITM, 2LIS_13_VDHDR, 2LIS_13_VDITM)...
    There in all the Update Rules...
    Update Rules -- Details -- Time Ref.---
    Time Characteristic of Fiscal Year Variant is mapped with Source fields of Fiscal Year variant
    similarly,
    Calendar Year/Month is mapped with Update Date Statistics
    But Calendar Year/Week and Calendar Day are Blanck...
    I am thinking they also should be mapped..
    Please suggest me how to resolve this...
    Help will be greatly appreciated with points..
    Thanks in advance..
    This is very urgent...

    Thanks...
    But i have already assigned my self...
    0calyear/week to Update date statistics...
    and
    0calendarday to Update date statistics..
    I have assigned points to you...
    Thanks for your informatioon

  • Calendar Day format (Xcelsius dash with LO prompts connected to SAP-BW)

    Hi guys.
    I built a dashboard using Xcelsius 2008 with a few LiveOffice prompts. Some are optional and these don't cause any issues, the only one causing problems is one of the two compulsory ones (the other is related to Calendar Month).
    The BW query connected to the universe on which the WebI query have been built has two variable selections: the first on Calendar Month, the second on Calendar Day. I haven't been able to find a way to pass Calendar Day data to the query.
    When I launch it from WebIntelligence, I select the value from a "calendar". This is the way it is displayed: "dd/mm/yyyy hh:mm:ss AM". When I select a value from this calendar and I launch the query, results are displayed in the proper way.
    I added the query to an Excel file that I've subsequently imported into Xcelsius. As I said before every other prompt works perfectly, the only one not working is the Calendar Day prompt. I tried passing this date in several ways, but I receive the message "Invalid format (LO 26000)".
    These ways include:
    - dd/mm/yyyy [0CALDAY].[AAAAMMDD]
    - dd.mm.yyyy
    - dd/mm/yyyy
    - yyyymmdd
    - ddmmyyyy
    Did anyone have ideas on how to pass these data in a proper way to the LO prompt from Xcelsius?
    Thanks a lot.

    Hi Kevin, we decided to scrap the "Calendar Day" use because we didn't find a solution to pass the data from Xcelsius to BW.
    There's still an issue. This seemed to work before but now it's not working anymore. We also have a Calendar Month variable. When Live Office creates a prompt on the Excel document, the variable is displayed like this (for instance, NOV 2009 [0CALMONTH].[200911]).
    To avoid problems with keys, I've also created a separate query containing a Month list of values and the string to be passed to BW is created putting together the informal name (NOV 2009) and the unique name ( [CALMONTH].[200911]). When I insert this time prompt in the Xcelsius document, I receive the LO26315 message. If I remove it (I've got other six prompts, none of them related to a date), everything works fine.
    Anyone ever had to pass a similar value from Xcelsius to BW?

  • IOS 7 Calendar Day View does not show any all-day events ?

    Hi,
    I realize that iOS 7 Calendar Day View  does not show any all-day events.
    Is this a bug ?
    Any help given is much appreciated.
    Thanks and Regards.

    Mine brings me right up to the current time, or in the case of another day, it takes me to the first appointment of the day.

Maybe you are looking for

  • SIMS 2.. New Mac im going crazy.. HELP

    I used to have a dell and thought Macs were supposed to be this crazy awesome computer.. so i got a Macbook yesterday as a Christmas present.. The main reason i bought it was to play Sims 2 on it and of course school work.. so i also bought the Sims

  • About Condition Maintain in CRM

    hello, CRM experts. I have a qusestion here. Actually I'm attending a CRM leasing project, and in contract, we use conditon type/function 4F30 to determine the Financed Amount of leasing. I check the condition mapping configure that 4F30 is mapping f

  • Alternate method to writing filter for recordset using session variable

    I'm not sure if this can be done.  I have a user page which I'd like to return database info based upon a userid entered on another page. So far, the session variable (userid) is captured on the user page however it is supposed to return the user's n

  • Need rubber band text effect

    I want to make a series of text titles zoom out and then stretch in the middle as they reach full size like a rubber band having over stretched and then pinging back into place in CS4. I have looked through the text animation presets and can't find a

  • Calling Backing Bean Method with h:outputLink

    Is there a way to call a backing bean using h:outputLink isntead of h:commandLink ?