Make Quarters from Start and End date

Hi,
I have a requirement to make the quarters for fiscal year from the given start and end date.
For example if I have
start date : 01-Jan-09
end date : 31-Dec-09
I have to split it into 4 quarters as bellow:
QTR1 : 01-Jan-09 - 31-Mar-09
QTR2 : 01-Apr-09 - 30-Jun-09
QTR3 : 01-Jul-09 - 30-Sept-09
QTR4 : 01-Oct-09 - 31-Dec-09
plz help.
Regards,
Fahim

Hi,
SQL> SELECT ADD_MONTHS(to_date('01-JAN-2008','DD-MON-YYYY'),(ROWNUM-1)*3) start_dt,(ADD_MONTHS(to_date('01-JAN-2008','DD-MON-YYYY'),ROWNUM*3))-1 End_Date
  2  FROM DUAL
  3  CONNECT BY ADD_MONTHS(to_date('01-JAN-2008','DD-MON-YYYY'),(LEVEL-1)*3) <=to_date('30-SEP-2009','DD-MON-YYYY');
START_DT  END_DATE
01-JAN-08 31-MAR-08
01-APR-08 30-JUN-08
01-JUL-08 30-SEP-08
01-OCT-08 31-DEC-08
01-JAN-09 31-MAR-09
01-APR-09 30-JUN-09
01-JUL-09 30-SEP-09
7 rows selected.
SQL>Cheers,

Similar Messages

  • Generate all the quarters between start and end dates

    Hello all,
    I have a query in which i have two dates that is Start Date and End Date and now i have to populates all the quarters date between the date range:
    For eg:
    Start Date : 1-Apr-2011
    End Date: 1-Jul-2012
    Now taking these two values i want the recors as displayed below
    Apr 2011
    Jul 2011
    Oct 2011
    Jan 2012
    Apr 2012
    Jul 2012
    So how can write my PL/SQL query to accomplish this task
    Thanks in advance

    958964 wrote:
    Hello all,
    I have a query in which i have two dates that is Start Date and End Date and now i have to populates all the quarters date between the date range:
    For eg:
    Start Date : 1-Apr-2011
    End Date: 1-Jul-2012
    Now taking these two values i want the recors as displayed below
    Apr 2011
    Jul 2011
    Oct 2011
    Jan 2012
    Apr 2012
    Jul 2012
    So how can write my PL/SQL query to accomplish this task
    Thanks in advanceHow do I ask a question on the forums?
    SQL and PL/SQL FAQ
    solution can be done in SQL only; no PL/SQL.

  • How to retrieve start and end date values from sharepoint 2013

    Hi,
    How to retrieve start and end date values from new event form of calendar in SharePoint foundation2013
    Thanks
    Gowri Balaguru

    Hi Srini
    Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
    Thanks
    Tripple k

  • Function module to derive start and end dates from fiscal year and period.

    Hi,
    I want to know a function module to derive start and end dates from fiscal year and period.
    ie: If I have say fiscal year '2010' and period '07', then the start date of this period would be '01.10.2010'.
    Thanks.
    Moderator Messge: Basic Date questions are not allowed.
    Edited by: kishan P on Oct 18, 2010 4:45 PM

    Hi,
    This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
    S_VMUCMN is my selection variable
    S_TXTCMN_M12 is my text variable calmonth-12
    S_TXTCMN_M0 is my text variable for selected calmonth.
    WHEN 'S_TXTCMN_M12'.
        IF i_step = '2'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
            CLEAR l_s_range.
            " First day of the selected month
            CONCATENATE loc_var_range-low '01' INTO l_calday.
            CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
              EXPORTING
                date      = l_calday
                months    = 12
                signum    = '-'
              IMPORTING
                calc_date = l_calday.
            l_s_range-low = l_calday+0(6).
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Thus, in KF header you have to put the two text variable to display the complete period.
    Hope it helps,

  • Product View - Start and End dates

    Hi,
             I have a material that is externally procured from a vendor to a location. In product view, I have few purchase requisitions. When i double click on it, it takes me to the details of PR. I am trying to understand what start and end dates of the PR are.
    For some PRs, the start and end dates are same but for some there are is some times a day or two and even 3 in some cases.
    I am wondering what makes the end date differ from start date.
    There is a safety day's supply of 2.5 days
    We have a transportation lane with transportation duration 23hrs.
    Any of these play any role in the end date delay?

    Hi,
          Thanks for the reply. The vendor and the receiving location have a transportation lane defined.
    What do you mean by the  time duration that shows up in the T Lane corresponding to the inforecord?
    Here are the times I see in transportation Lane;
    Product Specific Transportation lane:
    GR processing times (checked) : (No value defined) days
    Planning Horizon: 0 days
    Partner Horizon: 0 days
    Horizon for Expctd receipts: 0 days
    Horiz. Fut. Aval. Whse Stck: 0 days
    Planned Delivery time:  (No value Defined)
    Means of Transport
    Tsp. duration: 23 hrs
    Bucket offset: 0.5
    Period factor: 0.5
    and no other times defined.
    Are any of these effect the delay?
    My ECC is EST and the timestream is EST. Should I change the product view (also my own data) to EST or UTC??
    I have a product that has no delay between the start and end dates. The difference I see between the one that I am having problem (the start and end dates are apart ( I'm calling it bad one) by atleast a day) with and the one that has no delay(I'm calling this good one) between the start and end dates is the "Planned Delivery time.
    The good one has 1 day and the bad one has nothing defined.
    Does this make any difference?
    Thanks.
    Edited by: Raj G on Jul 17, 2008 3:36 PM

  • Start and End Dates check

    Hi,
    I have a requirement to find the list of persons who have overlapping dates.
    Each person can have many start and End Dates, but only one row that has a NULL end date, the active record. If the start and end dates are overlapped, like in the example below, the second row should have a start date of 24-DEC-2006 and not 22-DEC-2006. Is it possible to list those persons who have overlapping dates/gap in the dates.
    Empl_ID Start Date End Date
    12345 01-JAN-2006 23-DEC-2006
    12345 22-DEC-2006 13-JAN-2007
    12345 14-JAN-2007 NULL
    Any help is greatly appreciated.
    Thanks!

    Hi Patrick
    I like where you are coming from. I hope you don't mind but I have extended your idea slightly to add in a PARTITION BY clause to make sure we look at records for the same person. Also, if we LAG to get a previous record shouldn't we LAG the END_DATE and compare it with the current START_DATE?
    LAG(END_DATE,1) OVER (PARTITION BY EMPL_ID ORDER BY START_DATE)
    Doing this, then the results would look like this:
    Empl_ID Start Date End Date Lag Date
    12345 01-JAN-2006 23-DEC-2006 NULL
    12345 22-DEC-2006 13-JAN-2007 23-DEC-2006
    12345 14-JAN-2007 NULL 13-JAN-2007
    This would give the SIGN an issue because in the first record the LAG would be NULL and in the last record the END_DATE would be NULL. So it looks like some manipulation of NULLs has to take place as well which I will deal with later.
    SIGN((LAG(END_DATE,1) OVER (PARTITION BY EMPL_ID ORDER BY START_DATE)) - START_DATE)
    Anytime the difference between the Lag Date and the Start Date is positive this means this is an overlap which means we do need to look for any variance where the SIGN is 1.
    Using the other function, we could use LEAD like this:
    LEAD(START_DATE,1) OVER (PARTITION BY EMPL_ID ORDER BY START_DATE)
    Doing this, then the results would look like this:
    Empl_ID Start Date End Date Lead Date
    12345 01-JAN-2006 23-DEC-2006 22-DEC-2006
    12345 22-DEC-2006 13-JAN-2007 14-JAN-2007
    12345 14-JAN-2007 NULL NULL
    which when combined with SIGN becomes: SIGN((LEAD(START_DATE,1) OVER (PARTITION BY EMPL_ID ORDER BY START_DATE)) - END_DATE)
    This time you would be looking for the SIGN to be -1
    Personally, I think I would prefer the LEAD function because a) there would always be a START_DATE, and b) we could replace all of the possible NULLs with the SYSDATE to get a final calculation like this:
    SIGN(NVL(LEAD(START_DATE,1) OVER (PARTITION BY EMPL_ID ORDER BY START_DATE),TRUNC(SYSDATE)) - NVL(END_DATE, TRUNC(SYSDATE)))
    Based on the current date being 17-NOV-2009, you would now get this result:
    Empl_ID Start Date End Date Lead Date
    12345 01-JAN-2006 23-DEC-2006 22-DEC-2006
    12345 22-DEC-2006 13-JAN-2007 14-JAN-2007
    12345 14-JAN-2007 17-NOV-2009 17-NOV-2009
    Best wishes
    Michael

  • Contract Start and End Dates in Sales Order

    Hi
    I have a situation where a service item is bundled with a deliverable item. The order is as follows
    Line Item    Mat                                                                 Qty            Higher Level Item               
    10              Item No.1 (Physical Item)                                  1             
    20              Item No.2 (Service Item)                                    1               10
    For the deliverable item 10 , Revenue is recognized immediately. For the Service item no.20 , revenue needs to be recognized over a period of 1 Year (It is a 1 year service contract).
    The whole order is created via BAPI from an external 3rd party order capture system.
    In order to do revenue recognition properly for service items , SAP I believe has 2 options
    1. Based on Billing plan dates
    2. Based on contract start dates
    Since order with both the line items need to produce 1 invoice, I cannot use billing plan . The only other option is to use contract start and end dates. I have enabled contract data at the sales order level. So when I enter the contract start and end dates manually at the line item level and set the item category to recognize revenue based on contract start and end dates based on time-based revenue recognition it is working fine.
    But I need a way to automate the population of contract start and end dates at the line item level. My ABAP guy is not able to find a user exit that can change the XVEDA or any VEDA structure in any of the user exits.
    I guess the SAP SD gurus out there would have definitely dealt with a situation of product bundling (Service and non-service items in the same sales order with one billing document , but seperate revenue recognition for service and non-service items)
    Please help.
    Thnx
    Siva

    Hi Siva,
    Kindly let me know what criteria you want to give for automatic population of start date of contract...
    Standard SAP comes with a few baseline dates for contract start date and we can control this from customization itself. 
    01     Today's date
    02     Contract start date
    04     Acceptance date
    05     Installation date
    06     Date contract signed
    07     Billing date/Invoice date
    08     CntrctStDate+contract duration
    09     Contract end date
    If you have some criteria which is not covered here, then let me know and i will try to provide some help then.
    Thanks
    Kapil Sharma

  • Calculate Start and End date in Connect By -- When Hirerchy Changes

    /* Formatted on 5/20/2013 9:53:00 AM (QP5 v5.115.810.9015) */
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Hello , Can some one Please help me or Guide me in calculating Start and End dates for the below logic
    I want to calculate the Manager Hirerchy for the given Agent.
    Then Below Query is working fine and its giving me the desired results
    But when there is a change in the Manager Hirerchy or Manager gets Promoted
    Then i need to calculate the start date and end date.
    CREATE TABLE PERSON_DTL
      SID                 VARCHAR2(10 BYTE),
      EMP_MGRS_ID         VARCHAR2(10 BYTE),
      START_EFFECTIVE_DT  DATE,
      END_EFFECTIVE_DT    DATE
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('M100', 'M107', TO_DATE('05/20/2013 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/31/9999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('M101', 'M102', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('05/18/2013 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('A100', 'M100', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/31/9999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('M100', 'M101', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('05/18/2013 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('M107', 'M102', TO_DATE('05/20/2013 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/31/9999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('M102', 'M103', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/31/9999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('M103', 'M104', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/31/9999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('A101', 'M105', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/31/9999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into PERSON_DTL
       (SID, EMP_MGRS_ID, START_EFFECTIVE_DT, END_EFFECTIVE_DT)
    Values
       ('M105', 'M106', TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('12/31/9999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    SELECT   CONNECT_BY_ROOT (b.sid) agent_sid,
                 TRIM (
                    LEADING ',' FROM    SYS_CONNECT_BY_PATH (b.sid, ',')
                                     || ','
                                     || b.emp_mgrs_id
                    PATH,
                 START_EFFECTIVE_DT Start_dt,
                 END_EFFECTIVE_DT End_dt
          FROM   PERSON_DTL b
         WHERE   CONNECT_BY_ISLEAF = 1
    START WITH   sid IN ('A101', 'A100')
    CONNECT BY   PRIOR b.emp_mgrs_id = b.sid
    This is the results that i am getting now.
    AGENT_SID    PATH                       START_DT    END_DT
    A100    A100,M100,M101,M102,M103,M104    1/1/2010    12/31/9999
    A100    A100,M100,M107,M102,M103,M104    1/1/2010    12/31/9999
    A101    A101,M105,M106                   1/1/2010    12/31/9999
    Results Required
    A100    A100,M100,M101,M102,M103,M104    1/1/2010    5/18/2013
    A100    A100,M100,M107,M102,M103,M104    5/20/2013   12/31/9999
    A101    A101,M105,M106                   1/1/2010    12/31/9999

    May be this..
    SQL> select agent_sid,max(path) path,max(start_dt) start_dt,
      2         min(end_dt) end_dt
      3  from
      4  (
      5    select agent_sid,path,start_dt,end_dt,
      6           sum(flg) over(order by rn) sm
      7    from
      8    (
      9      select agent_sid,
    10             path,
    11             start_dt,
    12             end_dt,rn,
    13             case when path like lag(path) over(order by rn)||'%' then 0 else 1 end flg
    14      from
    15      (
    16        SELECT   CONNECT_BY_ROOT (b.sid) agent_sid,
    17                 TRIM (
    18                    LEADING ',' FROM    SYS_CONNECT_BY_PATH (b.sid, ',')
    19                                     || ','
    20                                     || b.emp_mgrs_id
    21                 )
    22                  PATH,
    23                 START_EFFECTIVE_DT Start_dt,
    24                 END_EFFECTIVE_DT End_dt,rownum rn
    25        FROM   PERSON_DTL b
    26        START WITH   sid IN ('A101', 'A100')
    27        CONNECT BY   PRIOR b.emp_mgrs_id = b.sid
    28      )
    29    )
    30  )
    31  group by agent_sid,sm
    32  order by agent_sid;
    AGENT_SID  PATH                                     START_DT  END_DT
    A100       A100,M100,M101,M102,M103,M104            01-JAN-10 18-MAY-13
    A100       A100,M100,M107,M102,M103,M104            20-MAY-13 31-DEC-99
    A101       A101,M105,M106                           01-JAN-10 31-DEC-99Edited by: jeneesh on May 20, 2013 7:54 PM
    Not thoroughly tested.And not sure whether an easy way exists..

  • Report execution start and end date/time

    Hi All,
    How can one find execution start and end date/times for all reports? Basically I am looking to see what reports were run on a day, when and how long it took for each to complete.
    Thank you.
    Denis

    Hi,
    The "eul5_batch_reports" holds the data about the scheduled report and if you don't have any so you will not have any data.
    Take a look at "EUL5_QPP_STATS"
    for example:
    select
    qpp.qs_doc_name,
    qpp.qs_doc_details,
    fu.user_name Ran_by,
    qpp.qs_created_date Start_run,
    qpp.qs_doc_owner Doc_owner,
    qpp.qs_num_rows rows_fetch,
    qpp.qs_est_elap_time estimated_time,
    qpp.qs_act_elap_time Run_time,
    qpp.qs_act_cpu_time Cpu_time
    from eul_us.EUL5_QPP_STATS qpp,
    fnd_user fu
    where substr(qpp.qs_created_by,2,10)=fu.user_id
    order by qs_created_date

  • Hyperion Planning dynamic forms based on start and end date across years

    Hi All,
    I have a requirement where i need to be able to view a form showing periods across years that are dynamically built depending on the start and end dates. If i have a start date of 01/11/2009 and an end date of 31/7/2013 i want to be able to view a form that shows all of the periods (Jan,Feb etc) in a form that is driven by these dates, in addition it will need to show the actual scenario up to the current month and the forecast from the current month to the end date. So basically if a user inputs the start and end dates the form will display the relevant periods driven by these dates.
    Any tips very much appreciated!

    Hello,
    This is difficult to realize, but you can get quite far with a workaround. The first question is, where do you want to input your selection of time periods? Assuming you have a webform with the complete timeline in months and years and you type in the start period and end period.
    Webforms have the option to suppress rows and columns.
    This can be extended with option of empty cells or not empty cells.
    You will need to apply your creativity on this.
    Put every month-year combination in a column and add the suppression.
    Calculate the timeline between start period and end period with a dummy member, so data exists for these and columns will show.
    Maybe you will need to copy the required timeline into a separate version for this, to avoid having periods which were outside the selection and still have data.
    I hope these hints help a bit in this challenge.
    Regards,
    Philip Hulsebosch
    www.trexco.nl

  • How to determine current period start and end dates

    Hi All,
    If given previous period start date and end date, how to determine current period start date and end date?
    Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
    Can you please suggest an FM to determine the current period dates?
    Thanks & Regards
    Gowthami

    >
    gowthami karunya wrote:
    > If given previous period start date and end date, how to determine current period start date and end date?
    > Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
    Hello,
    I am assuming you have the Company Code with you & proposing this solution.
    TABLES: bkpf.
    PARAMETERS:
    p_bukrs TYPE bukrs.
    SELECT-OPTIONS:
    s_date FOR bkpf-budat.
    DATA :
    l_perio LIKE bkpf-monat,
    l_poper TYPE poper,
    l_year  LIKE bkpf-gjahr,
    l_spmon TYPE spmon,
    l_periv TYPE periv,
    l_date1 TYPE datum,
    l_date2 TYPE datum.
    CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
      EXPORTING
        companycodeid = p_bukrs
        posting_date  = s_date-high
      IMPORTING
        fiscal_year   = l_year
        fiscal_period = l_perio.
    CONCATENATE l_year l_perio INTO l_spmon.
    * Get the next period
    IF l_perio < 12.
      l_perio = l_perio + 1.
    ELSE.
      l_perio = '01'.
      l_year = l_year + 1.
    ENDIF.
    MOVE l_perio TO l_poper.
    SELECT SINGLE periv INTO l_periv
    FROM t001
    WHERE bukrs = p_bukrs.
    IF sy-subrc = 0.
      CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr        = l_year
          i_periv        = l_periv
          i_poper        = l_poper
        IMPORTING
          e_date         = l_date1
        EXCEPTIONS
          input_false    = 1
          t009_notfound  = 2
          t009b_notfound = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr        = l_year
          i_periv        = l_periv
          i_poper        = l_poper
        IMPORTING
          e_date         = l_date2
        EXCEPTIONS
          input_false    = 1
          t009_notfound  = 2
          t009b_notfound = 3
          OTHERS         = 4.
      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: / l_date1, l_date2.
    ENDIF.

  • How to change both start and end dates for an business event (or any object

    Hi all.
    We are in the case to change the validity dates for several business events in training management.
    The special point is that both, start and end date, have to be changed.
    In example, business event 00000001 is valid from 2010.01.01 to 2010.01.31 and shoud be "moved" from 2010.05.01 to 2010.05.31.
    So if i run RHBEGDA0 report to change start date first, it doesn't work propperly because new start date is bigger than old enddate.
    Next thing we thought is to change end date first, using RHGRENZ1, and then change the start date, with the report RHBEGDA0. Problem with this solution is that a business event duration shoud be calculated taking care of free days (weekends and day ofs).
    Is there any better solution for this?
    Thanks in advance for your help.
    Best regards.

    Hi,
    I gueass the best solution is to use PV1A t-code.
    You can write an LSMW for this t-code if the number of business events to be maintained is huge.
    Regards,
    Dilek

  • [CF10] CFINPUT custom validation start and end dates

    Hello, everyone,
    Another developer that I am working with is working with a form that has start and end dates.  He'd like to be able to use custom JavaScript validation to make sure that not only are the dates in proper format (that part of the JS is working fine), but that it will also check to make sure that the start date will always be prior to (or equal to) the end date, and will throw an alert if the end date is before the start date.
    I've Googled for this, and am finding informative suggestions on just making sure the date is in the right format, or falls within a certain range, but nothing on how to make sure that one date is before (or less than) another.
    I'm guessing that data binding might be a part of it.  Can anyone suggest how to set these fields so that each has a validateat="onblur" that will check both values?
    Also, as a related issue, he has the CF datepicker working as far as entering the dates, but since the field doesn't get/lose focus on this, how do we trigger the function?
    V/r,
    ^_^

    i had tried this a few times but I kept getting an invalid numer to character error. Maybe my syntax was off. Let me try again.
    I must have had syntax errors. I tried it again, the way you typed it out and it worked. Before I was using '/' instead of '-' to separate the date fields.
    Thanks again!!

  • Effective start and end dates for a compensation workbench plan

    Hi all,
    We are having a requirement where we want to get the data respective to current plan for reporting purposes. What i have noticed is there is no such thing as effective_start_date and effective_end_date directly in all the cwb tables.
    The different dates we are looking at to capture the data are
    enrt_perd_start_dt and enrt_perd_end_dt
    upd_strt_dt and upd_end_dt
    within_yr_strt_dt and within_yr_end_dt
    But we have same plan with different enrollment period and start dates. We are planning to use max(data_freeze_date or lf_evt_occrd_dt) to get
    the records.
    select max(nvl(bcpdx.data_freeze_date, bcpdx.lf_evt_ocrd_dt))
    from ben_cwb_pl_dsgn bcpdx
    where bcpdx.pl_id = p_pl_id)
    Catch with this is, We have 62 business groups off which only 50 might run the plan next year and ohters might not. in that case it will also return data for all the BG's including the 12 BG's where plan has not been run for that year.
    Any suggestions or help will greatly be appreciated.
    Thanks
    Hari

    Hi Ankush,
    I am also of the same opinion. Start and end dates can probably be enforced by a policy condition in AM but would lead to proliferation of policies as we would end up creating policies per role entitlement duration for a user.
    Any thoughts on whether the sunrise/sunset concept of Identity Manager can be used for this requirement.
    Thanks,
    Srinivas

  • Period start and end dates

    Hello Experts,
    Can some tell me where we enter the start and end dates of a posting period in a fiscal year which is a year dependent and a non-calendar year?
    For ex: Jan 2008, I have to mention the start and end dates of the fiscal period January, because ours is not a calendar year and so the jan 1st and Jan 31st do not correspond with the January's posting period dates.
    Regards,
    Sriram

    Hi Sriram,
    As Vj suggested, go to transaction OB29.  Then select the fiscal year variant and upon selection the variant, click on "Period".  This will open up dialog box asking for the fiscal year for which you want to configure.  Enter the fiscal year and hit enter.  This will open up the calendar table to enter the period entry which has 4 columns: Month, Day, Period and Year Shift.
    Make sure you are entering the correct Year Shift.  Logic for the Year Shift is as follows.
    +1 if the fiscal year is later than the calendar year
    -1 if the fiscal year is before the calendar year.
    0 if the fiscal year is same as the calendar year.
    One example of year shift:
    Say, if you are configuring the fiscal year 2007 (April 2007 to March 2008), then January 2008 is your 10th period.  Here you hare to enter -1 in Year Shift Column only for January to March (10-12 period) as your fiscal year 2007 is less than the calendar year 2008.
    Hope this helps.
    Pls. award points if this is useful.
    With Regards,
    Chirag

Maybe you are looking for

  • What to do?! "iTunes has encountered a problem and needs to close"

    Hi all, I am on the verge of ripping my hair out!!! I upgraded my sisters itunes to version 9.0. The upload was successful and itunes opens, HOWEVER this error appears after about 15 seconds **iTunes has encountered a problem and needs to close. We a

  • WebHelp Search Doesn't Display Search Box on Chrome or IE With Chrome Frame

    I have RH10 (recently upgraded from RH9) and WebHelp projects are having issues displaying the Search box within the Search tab on Chrome as well as IE with Chrome Frame installed. Instead of getting a search box, I get what almost looks like an inde

  • What needs to be in my jndi.properties file to get oracle accessed by a jndi client

    I am trying to write a connection pool class that use jndi to locate the data base. I use "bindds" bind my OracleDataSource object with the name of 'test/jdbc/test'. I should then be able to do a lookup like: OracleDataSource ods = (OracleDataSource)

  • RMI service and failover

    Hi All, I am building an RMI service (implements UnicatRemoteObject). I am using Naming.rebind to bind my service - I start RMIRegistry as a standalone process. The client performs Naming.lookup to find the handle of server object. One of our require

  • Can't burn with Itunes

    I get an error when player loads that says regestry for burning is missing and tells me to redownload Itunes but nothing works.