Customizing Calendar to disable all dates After Sysdate (Current Date)

Hi All,
I have a Requirement In OAF to Disable All Dates in the Calendar After the Sysdate
Ex: In Air Ticket Booking We can't Enter  Previous Dates in the Calendar Like that I need to make the
my calendar dates after Sysdate Non Entarable
Please let me know if you have any sample code or We can fire any action before selecting a date to disable a particular set of Dates
Thanks,
Krishna

Hi ,
As per my opinion ,u shud put a check in PFR method at select event fire of date field ,capture the selected date anc check it shud be <= sysdate else throw a message using
throw new OAException ("this date should not exceed current date", OAException.ERROR);
Thanks
Pratap

Similar Messages

  • After updating new MIC in QP02 in Back date not showing current date ?

    Hi Guru,
    I have updated some new MIC and some Changes are made in existing MIC in QP02 on back date. It is showing on same back date with all correction and new MIC but on today's date i.e. current date it is not showing in the system.
    any can help me how to get in current date ?
    There are some dump error , for these correction i have updated SNOTE 1467234 and 1471534 in Quality server, but no more effect.
    Thanks,
    Piyush Patel

    hi,Premji,
    I have updated existing QP in back date i.e. same as when created original date ( expiration date is long i.e. 31.12.9999) , then same thing i wanted to see all updated MIC should be reflect in current date, but it is not coming, so i have updated SNOTE- 1467234 and 1471534 then tried it.It is working fine some how but not as i want.Hence i thing it is solved my problem.
    Thanks to you and Mr. Craig for your more suggestion/guidance.
    Piyush Patel

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

  • Can't get access in Time Machine to certain folders for any date earlier than current date/time.

    Can't get access in Time Machine to certain folders for any date earlier than current date/time, even when entering as Admin. Why do certain folders have small red "-" badge in lower right corner of folder icon?  Here's a picture of the dilemma:
    I've tried monkeying with priveleges using Command I, and changing users, but to no avail.  Can anyone help?

    Right.  Here's what the permissions look like from the Finder Command I:
    I'm not sure what "Custom" means, but when I then try to change it to "Read & Write", it doesn't take.... just comes back as Custom. Interesting to note that not only am I logged into Joan's account where the data folder and file lives) to do this, but when I do it from my own account  as Admin (dunc...mpster) I get the same result.

  • FM to get previous sunday date based on current date(SY-DATUM)

    hi all,
    Is there any function module to get the previous sunday date based on current date(sy-datum)?
    Regards,
    Kapil Sharma

    Hi Kapil,
    You can follow the logic below:
    data:
    l_date like sy-datum, **TODAY
    l_date2 like sy-datum, **Previous Sunday
    data:
    l_daynr like HRVSCHED-DAYNR.
    *Get today's date
    l_date = sy-datum.
    *Gey today's day (Monday, Tuesday, etc.)
    CALL FUNCTION 'HRIQ_GET_DATE_DAYNAME'
    EXPORTING
    langu = 'EN'
    date = l_date
    IMPORTING
    daynr = l_daynr.
    CASE l_daynr.
    *If it is Monday
    WHEN 1.
    -Subtract 2 days for the previous Sunday
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 2
    IMPORTING
    ed_date = l_date2.
    *If it is Tuesday
    WHEN 2.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 3
    IMPORTING
    ed_date = l_date2.
    *If it is Wednesday
    WHEN 3.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 4
    IMPORTING
    ed_date = l_date2.
    *If it is Thursday
    WHEN 4.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 5
    IMPORTING
    ed_date = l_date2.
    *If it is Friday
    WHEN 5.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 6
    IMPORTING
    ed_date = l_date2.
    *If it is Saturday
    WHEN 6.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 7
    IMPORTING
    ed_date = l_date2.
    *If it is Sunday
    WHEN 7.
    CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
    EXPORTING
    id_date = l_date
    id-operator = '-'
    is_duration = 8
    IMPORTING
    ed_date = l_date2.
    ENDCASE.
    Regards,
    Dilek

  • FM to get the previous sunday date based on current date(sy-datum)

    hi all,
    Is there any function module to get the previous sunday date based on current date(sy-datum)?
    Regards,
    Kapil Sharma
    Moderator Message: Basic date related questions are not allowed
    Edited by: Suhas Saha on Sep 19, 2011 11:39 AM

    Hi,
    There are function modules to find out the current day of the week depending on sy-datum. These are as below:
    1. DATE_COMPUTE_DAY - Returns a number indicating what day of the week the date falls on. e.g. Monday is returned as a 1, Tuesday as 2,...., Sunday as 7.
    2. RH_GET_DATE_DAYNAME  - Returns the day based on the date provided, e.g. Monday, Tuesday,..., Sunday.
    Using any of the above, if you can find out the current day, then you can calculate and compute the date of the previous Sunday.
    My observation is that using the first FM might make the calculation simpler.
    Hope this is of help to you.
    Regards,
    Shayeree

  • Error In Backdated Reservation Creation  Base date earlier than current dat

    Dear Experts,
    Error while creating Reservation for back date.
    Base date earlier than Current date.
    Can we create backdated reservation ? and post goods issue to the same ?
    if it need configuration please explain the steps for allowing creation of backdated reservations.
    Thanks in Advance

    What is the error message nos.?

  • Date rule for current date

    Hi.
    I have a date type for which I would like to fill DATE FROM field with current date, but the field DATE TO should stay empty for manual entry.
    I defined the following rule which I assigned to my date type but the problem with this rule is that it fills both fields (date from and date to) with current date.
    <?xml version="1.0"?>
    <TimeRule>
       <TimeRuleSource>
          <ruleline>
             <AssignTimeExp displaytype="AssignTime">
                <VarTimeExp displayType="VarTime"
                            name="RESULT"
                            position="F">
                </VarTimeExp>
                <ConstLocTimeExp displaytype="ConstLocTime"
                              date="now"
                              time="000000"
                              timeunit="DAY">
                   <VarObjectExp displaytype="VarObject" name="SYSTEM"/>
                </ConstLocTimeExp>
             </AssignTimeExp>
          </ruleline>
       </TimeRuleSource>
    </TimeRule>

    solved by other way

  • Last month end date based on current date

    Hi,
    How to show last month end date based on the current date.
    Eg:
    Current date = "08/26/09"
    Var- Last Month End Date = "07/31/09" etc...,
    Please help me how to get it...
    Thank You!

    Good to hear that it worked for you. but not for me.
    I tried like this:
    1st::
    1. var1= ToDate("06/30/09","MM/dd/yyyy")
    2.Var2= RelativeDate([Var1];-DayNumberOfMonth([Var1]))
    result: 5/30/09
    2nd:
    RelativeDate('6/30/2009';-DayNumberOfMonth('6/30/2009'))
    result: 5/30/09
    Am working on SAP OLAP cubes.
    Please help me where am going wrong....
    Thank You!

  • Deleting master data after loading transactional data using flat file

    Dear All,
    I have loaded transaction data  into an infocube using a flat file . While loading DTP i have checked the  option "load  transactional data with out master data exists" . So transactional data is loaded even if no master data is there in BW.
    While loading the flat file, I made a mistake for DIVISION Characteristic  where original master data value is '04000' , but i loaded the transactional data with value '4000' .Then i later realized after seeing the data from the infocube and deleted the request. then i reloaded data with value '04000'. Till now every thing is fine.
    But when I see the master data for DIVISION , i can see a new entry  with value '4000'.
    My question is how to delete the entry value '4000' from DIVISION. I tried deleting manually this entry from 'maintaining masterdata' , but it is not allowing me to do so .
    I have also checked if any transactional data exists for that value '4000' , as i said earlier I have deleted the transactional data with that values. even tried to delete the entries from the master data table, but i donot see a option to delete entries there.
    Please suggest me on this.
    Regards,
    Veera

    Hi,
    Goto RSA1 right click on the Info object and select Delete Master data. This will delete the master data unused existing in the table.
    If this master data is not used any where else just delete the master data completely with SID option.
    If even this doesnt work you can delete the complete table entire in SE14. But this will wipe out the entire table. Be sure if you wanna do this.
    Hope this helps
    Akhan.

  • Option to restrict MIGO Posting date after GRR posting date

    Dear All,
    My client is looking for an option to restrict the posting date of MIGO to be after GRR Posting date. Is there any way to do it? where the system don't allow you to post a MIGO without the GRR transaction has taken place?
    One option i got is to tick the GR MESSAGE tick which creating a PO. Is it the right solution?
    I would request you all to kindly give in your valuable inputs if in case anything else can be done or for the suitability of this option.
    Regards,
    Prashant

    Hi
    Could you specify your business scenario in details and also specify what is GRR
    Regards
    Sanil Bhandari

  • Extend End date after the end date has reached

    Hi gurus,
        We are using SRM5.0 on ECS with backend ECC5.0.
        We notice that after the end date of bid has reached even though there is a bid submitted by supplier , the purchaser still can extend the end date to a later date as long as he has not made the accept or reject choice.
        If it is the case, the purchaser can view the price after the end date reached and then extend the end date and maybe tell other supplier what the price the opponent has submitted. This is not allowed and should be penaltied.
        We just want to know how to avoid this in the term of system. Can we make the
    end date field unchangeable after the end date has reached? or any other solutions?
    Thank you in advance.
    Message was edited by:
            YE Wang

    Hi,
    As Teja and SAndeep mentioned,you can go for either the Approval or BADI approach.
    In case you are implementing the BADI,you can make the concerned fields grayed out so no changes are made but then this would mean that <b>no changes
    </b> can be done at all after the END date has been reached.
    In case of workflow,you can have you starting conditions in which you will compare the end date and the system date .If same,you can trigger  a Workflow for approval of any changes to be done further.So even if the changes are made,the chnages are approved by a higher authority.
    Another way would be to implement the "BBP_DOC_CHECK_BADI" to check whether the end date has been reached and then allow the user to do any changes.You can use the FM "BBP_PD_BID_GETDETAIL" to get the details of the BI and then check.In this case,you can additionally check for other parameters of the User like role,authorisation based on which he can make changes in exceptional cases.
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Calendar with preselected dates based on current date

    Can we get the calendar to be prepopulated with todays' date and today-7 date as the default before it starts running the initial queries when I log into dashboard.
    I have a calendar date range based on which my chart displays metrics. If I dont choose anything its picking up all the data first before I choose something
    Your help is always appreciated.

    I apologize I read your post too quickly and misunderstood your question. Unfortunately, I thought you were referring to a dashboard you had created and asking about setting up default dates for your bind variables/parameters.
    Well I'll have to leave this one to someone else. Sorry I couldn't be more help.
    David

  • BOM explosion date after order finish date

    Hi
    We have issue with BOM explosion date. In process order, BOM explosion date is geting calculated after order finish date.
    Any idea why this is happening.

    Hi,
    Just to understand the issue better, can you list the scheduled and basic dates on the order.
    Anup.

  • How to compare date with thr current date

    Hi,
    I have an inout string which is in date format(dd/mm/yyyy hh:mm:ss) .
    what i need to do is comparing this date string with the current date. if my input string is less than current date , then display error message..
    how to do this?
    regards

    Excellent suggestions from all of you people!
    finally i got the solution
    code is:
    import java.util.*;
    import java.text.*;
    public class TestDate {
      public static void main(String args[]){
        TestDate a = new TestDate();
      TestDate() {
        String DATE_FORMAT = "dd/MM/yyyy hh:mm:ss";
         Date today = new Date();
         Date myDate=null;
        java.text.SimpleDateFormat sdf =
             new java.text.SimpleDateFormat(DATE_FORMAT);
         try{
         myDate = sdf.parse("01/06/2006 00:00:00");
         }catch(Exception e) {System.out.println(e);}
        Calendar c1 = Calendar.getInstance();
        Calendar c2 = Calendar.getInstance();
        c1.setTime(today);
        c2.setTime(myDate1);
        System.out.print(sdf.format(today));
        System.out.print(sdf.format(c1.getTime()));
        if (c1.before(c2)) {
           System.out.print(" is before ");
        if (c1.after(c2)) {
           System.out.print(" is after ");    
        if (c1.equals(c2)) {
           System.out.print(" same as ");    
    System.out.print(sdf.format(c2.getTime()));
      }

Maybe you are looking for

  • How to make interactive video in Flash?

    Hello, We are trying to create an interactive video in Flash. Basically, we need to put this video in our game, and players should be able to pause/replay/play it. I found some tutorial about this topic, but all of them were created more than 2 years

  • Solution manager help

    hi gurus, solution manager transaction codes.  How it will help ful for us how to start it please help me am new to this course i would like to learn from the starting. Thanks & Regards rack29 points will be rewarded

  • Dynamic select list display details on same page

    i have a select dropdown list that is showing products from a php msql database. When one of the products is selected from the list in need the details of that product displayed underneath the select list. here is what i have so far mysql_select_db($

  • Intercompany Journals in GL

    Hi Could you give pointers on how intercompany journals are created in GL and what setups are required. Thanks

  • Email keeps flattening the layers on my psd and tiff files

    Hi, My friend and I both have macs that run Leopard 10.5.6, and we both have Photoshop CS3. When she sends me a psd file through email, I can open it in photoshop, and see all the layers. When I create a psd file with multiple layers, I double check