How to setup First day of each Fiscal Quater

I need  to setup a time window for the first Work day in each Quater of any year.
I used the System_FiscalPeriods set to 544 week and selected  Jan,Apr,Jul and Oct month as each element.
the issue is on oct 2013  the day falls on sept 30.
How can I setup such calendar perpetually or am I supposed to check these days manually every  year and keep
tweaking as per my finace dept inputs reg the days.

Gerben,
    This works fine  if the  work days falls on the 4 month you listed but  for oct 2013  the day falls on sept 30
  how to accomodate for that ?
thanks
Babu

Similar Messages

  • Function Module to get first day of the fiscal year on passing a date

    Hi Experts!!
    Can you please suggest a Function Module to get first day of the fiscal year on passing a date..?
    Example:  if a fiscal year starts from 30 November 2009 and ends at 28 november 2010.
    it should return 30 th nov 2009 (first day of the fiscal year)

    Moderator message - Welcome to SCN.
    I think you'll find that this question has been answered before. Please search the forum before posting.
    Also, Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Rob

  • FM for First day of the Fiscal Year.

    Hi ,
          i want to calculate First day of the Fiscal Year ,please send me the FM name urgently.
    Thanks  in advance

    hi,
    BAPI_CCODE_GET_LASTDAY_FYEAR
    this will give you back the last day of a fiscal year for a company code, but if you start with previous year, than you add 1 to the result, than you get first day of current fiscal year.
    FIRST_AND_LAST_DAY_IN_YEAR_GET
    this will give you back the first and the last dates of a given year, but you'll need the period version as well.
    hope this helps
    ec

  • How to find first day of the year

    Big picture: trying to determine how many pay periods are left in the year. There are 52 weeks in a year, and our company pay out each week.
    The first pay week of the year always starts on a Friday. So If Janurary 1 is a friday, then the 1st week of pay period starts that week. If Jan 1 is a Thursday, then the first pay week will start on Janurary 2.
    I need to figure out what day the first day of any year it is. By day, i mean Mon, Tue, Wed, Thur, Fri, Sat, or Sun.
    Then when I figure out what day it is, i will write an if/then statement saying if Jan 1 is a monday, then add 4 days to that date and that will be the first day of a pay period.
    Then when i figure out the first day of the first week, I wanted to add 7 days to create week2, week3.... week 52.
    Then take todays date and if it was between week x and week y, then it would determine that z many pay periods are left...
    is this the best way to go about this? anything easier?

    You can use the getDay method of a Date object to determine the day of the week. Any decent JavaScript reference will have more information.
    George

  • How to get first day of calendar week ?

    hi,
    i'm storing some calendar weeks in my database. for example 30/2013.
    How can i get the first day of this week (monday)? in this case it is 22.07.2013
    thx
    Anja

    As far as I know we don't have a function that converts week of a year into date. So you can try something like this.
    SQL> with t
      2  as
      3  (
      4  select '30/2013' week_year
      5    from dual
      6  )
      7  select min(dt) week_start_day
      8    from (
      9           select (level - 1) + to_date('01-01-' || substr(week_year, -4), 'dd-mm-yyyy') dt
    10                ,  week_year
    11             from t
    12          connect
    13               by level <=  to_date('31-12-' || substr(week_year, -4), 'dd-mm-yyyy') -
    14                            to_date('01-01-' || substr(week_year, -4), 'dd-mm-yyyy') +1
    15         )
    16   where to_number(to_char(dt, 'iw')) = to_number(substr(week_year, 1, instr(week_year, '/')-1));
    WEEK_STAR
    22-JUL-13

  • How to setup separate rington for each contacts?

    Will someone point me to a tutorial or show me how to setup separate ring-tone for each contacts?

    http://support.apple.com/kb/HT1413
    Assign a ringtone to a contact
    From Phone, tap Contacts and choose a contact. Tap Ringtone and choose a ringtone. When that person calls, you hear that ringtone.

  • BI Content Variable on 0Calday for first day of the fiscal year and first day of the current month

    Hi Friends,
    In one of my BEx queries, I need to restrict a key figure for 0Calday based on the first day of the current fiscal year. And another key figure for the first day of the current month. Instead of using Customer exit, I hope there is some SAP delivered standard variable for these filters.
    Please let me know if there is anything available for this. Your answers will be highly appreciated.
    Thanks & Regards,
    Ranjan

    Hi Ranjan,
    Please find below standard variables.
    Pls check below link for more.
    Standard Variables in BEX related to Time Charcteristics
    Characteristic
    Variable
    Description
    0CALDAY
    0CWD
    Current Workday (SAP Exit)
    0CALDAY
    0CYTCD
    Cumulated to Current Day (SAP Exit)
    0CALDAY
    0DAT
    Current Calendar Day (SAP Exit)
    0CALDAY
    0DAY_***
    Cumulation of all Values to Key Date (SAP-Exit)
    0CALDAY
    0LYTCLD
    Cumulated to Current Day of Previous Year
    0CALDAY
    0LYTCLD
    Previous Year Cumulated to Current Day (SAP Exit)
    0CALDAY
    0L_DATE
    Last Calendar Date
    0CALDAY
    0P_LY_R
    Comparative Period for Last Year
    0CALDAY
    0P_TY_R
    Period for Current Year up to Yesterday
    0CALDAY
    0S_KDATE
    Key Date Interval for Previous Year (SAP Exit)
    0CALDAY
    0S_KDAY
    Key Date Interval Current Year (SAP Exit)
    Best,
    SATYA.

  • How to get first day of the month by the given date?

    Now, is there function in CRM system that can get the first day of the month ?
    for example:
        input date is 2007/12/12, then return 2007/12/01 (the first day of month).
    Thank you~

    Hi ping,
    data: w_date type sy-datum ,
             w_temp(2) type c.
    w_date = '20071212'.
       w_temp = w_date+6(2).
       w_temp = w_temp - 1.
       w_date = w_date - w_temp.
    write / w_date.
    Plz Reward if useful,
    Mahi.

  • How to - get first DAY of the month from the date ?

    Hi
    pls help

    hi,
    data : DAYNR LIKE HRVSCHED-DAYNR,
    DAYTXT LIKE HRVSCHED-DAYTXT.
    data langu like sy-langu value 'EN'.
    Parameters PDATE LIKE SY-DATUM.
    PDATE+6(02) = '01'.
    CALL FUNCTION 'RH_GET_DATE_DAYNAME'
    EXPORTING
    LANGU = LANGU
    DATE = PDATE
    CALID =
    IMPORTING
    DAYNR = DAYNR
    DAYTXT = DAYTXT
    DAYFREE =
    EXCEPTIONS
    NO_LANGU = 1
    NO_DATE = 2
    NO_DAYTXT_FOR_LANGU = 3
    INVALID_DATE = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE :/ PDATE, DAYNR, DAYTXT.
       (OR)
    Try..
    DATA:DAYNR  LIKE  HRVSCHED-DAYNR,
         DAYTXT LIKE  HRVSCHED-DAYTXT,
         DAYFREE LIKE  HRVSCHED-NODAY.
    DATA:LANGU LIKE  SY-LANGU ,
         DATE LIKE  SY-DATUM,
         CALID LIKE  P1027-CALID VALUE 'US'.
    date = sy-datum.
    date+6(2) = 01.           "----->to get the first day .
    *first day of the month
    write:/ 'First date of the month', date.
    *Day name
    CALL FUNCTION 'RH_GET_DATE_DAYNAME'
      EXPORTING
        langu                     = SY-LANGU
        date                      = DATE
        CALID                     = CALID
    IMPORTING
       DAYNR                     = DAYNR
       DAYTXT                    = DAYTXT
       DAYFREE                   = DAYFREE
    EXCEPTIONS
       NO_LANGU                  = 1
       NO_DATE                   = 2
       NO_DAYTXT_FOR_LANGU       = 3
       INVALID_DATE              = 4
       OTHERS                    = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE:/ DAYTXT.
    Don't forget to reward if useful....

  • How to set first day of the week?

    I'm trying to set up my iPad calendar so that my week view starts on Monday. My calendar on my desktop & MoblieMe starts the week on Monday which is what I want but my iPad starts on Sunday (even though it has been synced with my desktop & MoblieMe too). Please help! Thanks!

    Actually, I tried both UK and Australia, and Sunday was still the first day of the week.
    HOWEVER!!!
    Woohoo!!   American Samoa works, and doesn't seem to change any other formats (although admittedly I have not made an exhaustive search - just checked the International Example thing recommended by Matthias suggested.
    Matthias, thanks very much by the way!! 
    OZones

  • How to get first emp for each dept?

    Hi,
    I need to do a query to pick up one employee (the first one based on ename or empno)from each department, but I don't want to use min function (for some reason it didn't work on my real date), rather I like to use something like this: The problem is I can only pick one instead of one for each dept.
    select ee.* from
    (select * from emp
    order by ename
    ) ee,
    emp e
    where rownum <2
    and e.deptno=ee.deptno
    Thanks

    How about this (if I understood your question correctly)?
    select * from
    (select distinct deptno from emp) depts,
    (select deptno, min(ename) from emp group by deptno) ees
    where ees.deptno = depts.deptno;
    Test:
    14:10:26 ==> create table emp (deptno number, ename varchar2(50));
    Table created.
    14:10:27 ==> insert into emp values (10, 'Joe');
    1 row created.
    14:10:27 ==> insert into emp values (10, 'Mary');
    1 row created.
    14:10:27 ==> insert into emp values (10, 'Ethel');
    1 row created.
    14:10:27 ==> insert into emp values (20, 'Luke');
    1 row created.
    14:10:27 ==> insert into emp values (10, 'Sue');
    1 row created.
    14:10:27 ==> insert into emp values (20, 'Bob');
    1 row created.
    14:10:27 ==> insert into emp values (30, 'Randy');
    1 row created.
    14:10:28 ==> select * from
    14:10:35 2 (select distinct deptno from emp) depts,
    14:10:35 3 (select deptno, min(ename) from emp group by deptno) ees
    14:10:35 4 where ees.deptno = depts.deptno;
    DEPTNO DEPTNO MIN(ENAME)
    10 10 Ethel
    20 20 Bob
    30 30 Randy

  • How to select first row of each group in a group by statement

    Table            
    ProdCode    PackType    BatchCode    ExpDate
    BURSLO               1             BS20GO-2001    01/12/2004
    BURSLO               1             BS20GO-2011    01/01/2007
    BURSLO               2             BS20GO-2027    01/02/2003
    BURSLO               3             BS20GO-2060    01/02/2004
    BURSOI               9             BU10F12    01/02/2006
    BURSOI               9             BU10GO-1301    01/05/2005
    BURSOI              11             BU10GO-131    01/06/2008
    BURSOI               2             BU10GO-1311    01/06/2007
    BURSOI              13             BU10GO-1328    01/07/2006
    Output            
    ProdCode    PackType    BatchCode    ExpDate
    BURSLO               1             BS20GO-2011    01/01/2007
    BURSLO               2             BS20GO-2027    01/02/2003
    BURSLO               3             BS20GO-2060    01/02/2004
    BURSOI               9             BU10F12    01/02/2006
    BURSOI              11             BU10GO-131    01/06/2008
    BURSOI               2             BU10GO-1311    01/06/2007
    BURSOI              13             BU10GO-1328    01/07/2006
    i need first row after group by ProdCode,    PackType and decreading order of ExpDate
    Please Help me.
    Thanks.
         

    Try the below:
    ;With cte
    as
    (Select *,Row_Number()Over(partition by Prodcode,Packtype Order by expdate desc) Rn From Tablename)
    Select * From cte where rn=1

  • How come the first paragraph of each question is in a different font?

    This seems to be the case with all questions posted on the developer exchange. Its been kinda annoying since the upgrade.

    Hi Brian,
    Thank you for the feedback on the inconsistent font. This problem is scheduled to be addressed for the next site update.
    Best Regards,
    Wilbur Shen
    National Instruments

  • Macro to Unlock the Cell on the start day of the Fiscal period

    Dear Experts
    We are using  fiscal periods for the forecasting.1 period = 15 days.We forecast for 24 fiscal periods.
    We only give chance to some customers to update forecast on  1 day of the fiscal period in the customer planning book .In this regard we have to lock the cell all most all the days except on 1 st day of the fiscal period.If the first of the Fiscal period is Sunday or Saturday, system should not unlock.
    We did not maintained any Time stream ID to the storage bucket profile.
    Example:
    KF1 is used by our customers to update forecast.This keyfigure should always in the unedit mode.On the first day of the Fiscal period system should unlock the keyfigure.If first day of the period is saturday or sunday then system should not unlock this keyfigure.
    Can we use calender in Macro?
    Is it possible to achieve above logic in our case since we did not maintained time stream ID in storage bucket profile.
    Please give your expertise opinion on my requirment.
    regards
    Vicky

    Hi Vicky,
    Whilst other simpler  options are given by others for locking /unlocking a KF with macros, Work around as below,  if feasible in your environment.
    Create two planning books (or with authorization at data view level, 2 data views).
    One planning book PB1 with the KF1 in  non-edit mode. This will be used normally.
    Other planning book PB2 with KF1 in edit mode.
    Create one more authorization profile/ role   for each customer user.
    Assign this additional authorization profile/ role only on specific dates as per background job to give additional authorizations.
    Otherwise, if  no. of user licenses is not an issue, then create an additional user id for each of the customer with additional authorizations and unlock these additional user accounts only on specific dates by background jobs.
    We had in one project, some additional user accounts for similar( not exactly same) requirement. This gave better traceability.
    Regards
    Datta

  • ABAP for the first day of the month

    Hello BW users,
    I have a scenario which uses an ODS with cumulative key figures with Addition update type. An infocube gets data from ODS by start routine in cube's update rule. I update this ODS first then infocube. All the loads are Full and are loaded daily. This is a snapshot scenario and I load the ods on itself then load from another infocube let's say Cube1. After successful load, I update infocube on itself again then update from the same infocube, Cube1, as in ODS. Infocube load sequence is same as ODS. In the scenario ODS and infocube are wanted to be updated daily. Therefore, I have to delete the ODS's (since it is addition update type) and infocube's overlapping data in the process chain that automates the load. At this point I need two things:
    1- ABAP program that is going to give me the first day of each month.
    2- ABAP program that is going to delete the overlapping data in ODS when I load it daily. Since I can do that for infocube in process chain with standard process type of Delete overlapping requests from infocube I need it only for ODS. Because there is no standard process type to delete overlapping requests in ODS (since its update type is Addition).
    I appreciate your help. Thank you in advance.
    Sincerely,

    1- ABAP program that is going to give me the first day of each month.
    if sy-datun+6(2) = 01.
    SY-FDAYW should give you the day
    endif.
    2- ABAP program that is going to delete the overlapping data in ODS
    REPORT  <PGM NAME>.
    TABLES: RSODSACTREQ , rsseldone.
    Parameters : odsname type RSINFOCUBE default '<>ODS NAME'.
    DATA: temp_REQUEST LIKE RSODSACTREQ-REQUEST,
          temp_REQUEST1 LIKE RSODSACTREQ-REQUEST,
          temp_RNR LIKE rsseldone-RNR.
    DATA: BEGIN OF itab OCCURS 0,
          REQUEST LIKE RSODSACTREQ-REQUEST,
          TIMESTAMP LIKE RSODSACTREQ-TIMESTAMP,
          END OF itab.
    DATA: BEGIN OF itab1 OCCURS 0,
          RNR LIKE rsseldone-RNR,
          seldate LIKE rsseldone-seldate,
          seltime LIKE rsseldone-seltime,
          END OF itab1.
    SELECT REQUEST TIMESTAMP FROM RSODSACTREQ INTO TABLE itab
      WHERE ODSOBJECT = '<ODS NAME>'.
    SORT itab DESCENDING BY TIMESTAMP .
    READ TABLE itab INDEX 1.
    temp_REQUEST = itab-REQUEST.
    SELECT RNR seldate seltime FROM rsseldone INTO TABLE itab1
      WHERE source = '<Info Source Name for the ODS>'.
      SORT itab1 DESCENDING BY seldate seltime .
      READ TABLE itab1 INDEX 1.
      temp_RNR = itab1-RNR.
    *If   temp_REQUEST = temp_RNR .
    CALL FUNCTION 'RSSM_PROCESS_REQUDEL_ODSO'
      EXPORTING
        I_ODS             = odsname
        I_REQUEST         = temp_REQUEST
        I_JOBNAME         = 'i_jobname'
        I_VARIANT         =
        I_INSTANCE        =
      IMPORTING
        E_ERROR           =
        E_T_MSG           = itab1
      E_T_RNRLIST       =    ITAB1.
    *else.
    *raise exception.
    *endif.
    clear itab.
    refresh itab.
    SELECT REQUEST TIMESTAMP FROM RSODSACTREQ INTO TABLE itab
      WHERE ODSOBJECT = '<ODS NAME>'.
    SORT itab DESCENDING BY TIMESTAMP.
    READ TABLE itab INDEX 1.
    temp_REQUEST1 = itab-REQUEST.
    if temp_REQUEST = temp_REQUEST1.
    raise exception .
    endif.

Maybe you are looking for