"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

Similar Messages

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

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

  • 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

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

  • Copying  SAP Exit to Customer Exit

    Dear Experts,
            i need to create Customer exit for Clearing Date, Posting Date and netDuedate. For this i am going to copy the SAP EXIT Variables 0p_keydt, 0p_Keyd2, 0p_keyd3, Bcoz i had created Infoset, sothe technical name get changed, So I cant call SAP Exit variables for this new Info Object.
    What I need is Can U please Explain me how to copy these theree variables in to Customer Exit as i am very new to ABAP. After Copying the Code what i need to change to suits my requirement.
    Please help me in this regard as this is very Urgent.
    I ahve tries in searching the previous thread, i just got the Overview alone.
    Thanks in Advance

    Hi,
    I do not know if we can directly convert a SAP exit to a CMOD exit.
    What I was suggesting was that, create a CMOD exit (custom project) and in the coding part you can copy the code from the existing code and replace the varaible names.
    Check this link for more help on CMOD project creation -
    [http://wiki.sdn.sap.com/wiki/display/ABAP/CustomerExits(CMOD)]
    Hope it helps.
    Regards,
    RahulM

  • How to get the calendar days of  last month in SAP HR Schema?

    Hi all,
       I have a question about the calendar days of last month, cause the customer calculated the salary not by natural month but cross-month, for example,
    for calculating salary of Aug, the time period may be 7.28-8.27, so I need the days of this period which is  the calendar days of  last month exactly.
    But I only knew GKSOLL was used for getting the calendar days of current month.
    If any place wrong, please guide me.
    Look forward to getting experts' help, thanks.
    Regards,
    May.

    Hi Sankarsan,
    Thank you so much for your help.
    The requirement I have described in detail when replying Viverk, you can take it as a reference.
    Cause my customer  don't want to use retro in SAP system, so I noted the schema about  retro.
    Now my question was how to get the last month calendar days in Schema. For example, now I am calculating the salary of July, the full attendance will be 30 days(06.28-07.27), in rule GKSOLL will get 31 days, so it's not right.
    I hope you can get my point, below is the wrong rule.
    Please guide me to correct it, thanks.
    Regards,
    May.

  • 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

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

  • 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

  • Customer Exit for Calendar Month based on the day (system Date)

    Hello,
    I need help in creating a customer exit for Calendar month without the user input. The logic is as follows:
    For the BEx variable created with customer exit option and no user input:
    If the day on the system date falls in between 1 to 14 take the calendar year/month value as previous month.
    If the day on the system date falls in between 15 through 31 then take the calendar year/month as current month.
    eg if report is run on March 24th2009 the calendar year/month variable should be calculated as 03/2009 (March 2009)
    if the report is run on March 1st2009 the calendar year/month should be calculated as 02/2009 (Feb 2009).
    The code should be effective when run in the first 15 days of Jan when the previous month would contain the previous year as well.
    Thank You
    Srishti

    Thanks Shanthi. I am trying to incorporate the logic when the query is run in beginning of Jan when the year should be the previous year.Following is the code.please let me know if it would work. Is there a way I can test it as well?
    CASE I_VNAM.
    WHEN 'ZCURCALMON'.
    IF i_step = 2.
    data: mm(2),
            dd(2),
            yy(4),
            FM(6).
    if sy-datum+4(2) EQ 1.
    sy-datum(4) = sy-datum(4) - 1.
    else.
    sy-datum(4) = sy-datum(4).
    endif.
    if sy-datum+6(2) LE 15.
      mm = sy-datum+4(2) - 1.
      concatenate sy-datum(4) mm into FM.
    else.
      concatenate sy-datum(4) sy-datum+4(2)  into FM.
    endif.
    l_s_range-low = FM.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    Endif.
    ENDCASE.
    Thanks
    Srishti

  • Get Month & Quarter from Factory Calendar in SAP BI

    Hi,
    Requirement is how to get the month & quarter from the factory calendar in SAP BI.
    lets say the day is 29.12.2008 , if we use this date in SCAL it comes into 2009.
    Im getting the week as 01.2009 by using the Function Module DATE_GET_WEEK which is correct from where i can take week & the Year.
    Now how to get the month & quarter, for the above date i need month as 01 & quarter as 01.
    Please advice.
    regards
    Hari

    Hi,
    Please use the below code:
    v_day = '20081229'.
    *( Fiscal Variant)
    v_fin = '10'.
    Data : V_period(3) type c.
    Data: v_year(4) type c.
    call function 'DATE_TO_PERIOD_CONVERT'
        exporting
          i_date                      = v_day
          i_periv                     = v_fin
        importing
          e_buper                     = v_period
          e_gjahr                     = v_year
        exceptions
          input_false                 = 1
          t009_notfound               = 2
          t009b_notfound              = 3.
      if sy-subrc = 0.
        v_quart                 = v_period.
        v_fiquart        = ( v_quart  - 1 ) div 3 + 1.
        v_period    = v_period.
    endif.
    -Vikram

  • How to create report which includes records of current month and last 7 days of previous month.

    Hi Experts,
    I need to create a report which includes records of current month and last 7 days of previous month.
    I will get records of current month by this formula :- month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate)
    Please tell me how to add the records of last 7 days of previous Month for the same report.
    Thanks in Advance.

    Hi Ajay,
    If you have more than a year data in your database then your formula will return wrong results. ie. If your data consist of 2012,2013,2014 data then below formula will return all 8th month data irrespective of year. So, you need to check year also here
    month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate)  and
    Year({PROBSUMMARYM1.OPEN_TIME})=Year(currentdate)
    Now add Abhilash second statement in OR so, your formula should look like :
    (month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate)  and
    Year({PROBSUMMARYM1.OPEN_TIME})=Year(currentdate))
    OR
    Date({PROBSUMMARYM1.OPEN_TIME}) IN [DateAdd('d',-7,Maximum(LastFullMonth)), Maximum(LastFullMonth)
    -Sastry

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

Maybe you are looking for

  • How to restore (not duplicate) DB from RAC ASM to non ASM

    Hello everybody, i am trying to recover db from RAC+ASM to non ASM no RAC node. I am running Oracle 10g (10.2.0.4) on Win2003 Server. I have functional backup from my prod system. Here are my steps: *1. On prod server i make backup running this scrip

  • Ztable going dump

    hi all, here is my problem . I have ztable with some 1000 records. According to new requirement i changed the domain of a field String to dec. then went se14 adjust & activate.. now table was going dump. plz give me suggestions where i am went wrong.

  • Firefox 6 wont load when I click on it.

    I tried un-installing and re-installing, but it still won't load. It doesn't matter if I double click on the firefox.exe in the mozilla\firefox dir or double click on the desktop icon, etc. Taskbar doesn't ever show the firefox process.

  • CN71 is giving dump

    Hi, I am creating version in cn72. when I am displaying it in cn71,it is giving dump. In cn71 , I am giving project,then choosing DB profile and clicking version data and sales data and then enter.Then in the project version I am giving the version t

  • TS1369 My ipod ejects itself, immediately after connecting with usb cable, before synchronizing could start. What's wrong?

    My ipod ejects itself, immediately after connecting with usb cable, before synchronizing could start. What's wrong?