Start Date, End Date Validation ?

Hi
I am new to OA framework world. I created a page and i have 2 columsn start date, end date
I want to display msg to user, if start date greater than end date .
My question is
1) how to grab the values?
or where do i need to write a validation code ? ( any of EOI/VOI/Rowimpl or ? )
How to achieve this ?
any suggestions..will make my work easier ..
Thanks
Ravi

protected void validateEndDate(Date value)
if (value != null)
OADBTransaction transaction = getOADBTransaction();
long sysdate = transaction.getCurrentDBDate().dateValue().getTime();
long endDate = value.dateValue().getTime();
if (endDate < sysdate)
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
getEntityDef().getFullName(), // EO name
getPrimaryKey(), // EO PK
"EndDate", // Attribute Name
value, // Attribute value
"AK", // Message product short name
"FWK_TBX_T_END_DATE_PAST"); // Message name
Thanks.

Similar Messages

  • Start Date Validation

    I've found that when you create a new OIM user using an account other than xelsysadm the system will validate the start date. I usually don't enter anything, but I got an error stating that it does not allow start dates prior to the current date. So I entered today's date and received the same error!! So I entered tomorrow's date and it accepted it. After the user was created it had the status of 'Disabled Until Start Date'.
    Is this a bug? I should be able to enter a user that starts on the same day. Is there a way to correct this or just disable the validation altogether?

    I figured out that this was due to a permissions error with the Active Directory connector. I had an access policy that assigns users to AD groups. I had to assign the 'AD User Group Details' permission to the OIM user group to get it to work.
    Why I received a Start Date error rather than some sort of AD permissions error from OIM still completely baffles me.

  • Default start date and validty period in contract

    hi
    i want to default start date & validity dates during contract creation in VA41. i am not able to find the relevant configurations. pl help
    thanks in advance

    IMG->Sales & Distribution -> Sales -> Sales Documents -> Contracts -> Contract data
    There are three setting under this node. These three together determine the dates.
    thanx
    Bala

  • Report for Validity Start and End Date in PO

    Dear All
    Is there any report where I can get PO validity start and end date which user input in addtional data header tab of PO?
    Regards
    Satish Kumar

    Hi,
    Yes, It is available standard report using T-code ME2N - Purchasing Document (PO) Per Document Number, enter the T-code and provide the following input data's are as follows.
    Scope of List                 :  ALV ( for Ms-Excel format report)
    Plant                               :   __________ to __________ (if required)
    Document Date              : ____________ to ___________ (if Required)
    Execute the report shown by default in excel format and if required PO validity start and end data, you have to select Change Layout button and open new window options screen right side field option as Validity Per.Start, Validity Period End, Commutative number field data's are selected and click <--- arrow button and then click bottom tick marked button. Now, the report shown your requirement.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • How to set up start and end dates for validity of contract account in FICAx

    Hi,
      Can anyone tell me where can I set up the validitiy period for the contract account in FICA. In contract creation, I could just see the contract validity start date. I also need to know the validity end date. Please let me know the solution asap.
    Points will be awarded for all the useful answers.
    Thanks
    Santosh

    Yes, you're right, you would then need to develop a lot of user exits to prevent the re-use of the contract account after the validity date.
    I'm think in a strange solution, it could work but you'll need to test it. if a contract account is marked for deletion (Field FKKVKP-LOEVM equal to 'X') no further action can be made over it, When you create you contract account you can schedule a change using as validity date (Field BUS000FLDS-VALDT ins the change contract account screen) to the end date of you contract account and set this deletion flag. then you run FPP2A to activate the schedule changes, before you get to the end date the flag is not set, when you get to the end date FPP2A will activate the flag and the contract account becomes not usefull.
    If you do this, you have be careful because all the postings to the contract account won't be possible, it means that if there are payment to be made, interests to be calculated, etc... nothing will be posted.
    Cheers,

  • Validation on start date and end date .

    Hi every body ,
    Hi have a problem on validation on the start date & end date problem.
    I have taken two *<h:inputText>* & one *<t:commandLink>* controls.When I am clicking on the <t:commandLink> control I want to validate that end date should greater than start date .Could any body help me out from this problem .
    Here is my code :
    <rich:dataTable id="dataTable" 
                               value="#{adminBacking.dataModel}"
                               var="item">
       <h:column>
         <f:facet name="header">
              <h:outputText value="Start Date" />
         </f:facet>
         <h:inputText size="11" id="startDate" value="#{item.startDate}" onclick="showCalendarControl(this);" />                      </h:column>
    <h:column >
         <f:facet name="header">
              <h:outputText value="End Date" />
         </f:facet>
         <h:inputText size="11" id="endDate" value="#{item.endDate}" onclick="showCalendarControl(this);" />
    </h:column>
    <h:column>
         <f:facet name="header">
              <h:outputText value="Update Row" />
         </f:facet>
         <t:commandLink id="update" action="#{adminBacking.updateEvent}"  value="Update" />     
    </h:column>
    </rich:dataTable>**Here I am taking the date by a simple date picker in the start date & end date field.
    Thanks ,
    sb

    You may find this example useful: [http://balusc.blogspot.com/2007/12/validator-for-multiple-fields.html].

  • Date Validation - End date before Start date

    This may be a very simple validation but I seem to be having trouble. I've got a form which requires a date range to be selected (Date Picker fields)...a Start date, and an End date.
    I've created a Function Returning Boolean validation with the code as:
    begin
    if :P1_END_DATE < :P1_START_DATE then
    return false;
    else
    return true;
    end if;
    end;This works 99%, except when the date range spans years.
    For example, when I select '21-Dec-2010' in the start date and '4-Jan-2011' in the end date. The validation fails, and thinks the end date is before the start date.
    Do I need to compare the year part of the date, before doing the rest? Or is the '<' not suited for this sort of check?
    Edited by: djston on Dec 20, 2010 12:13 PM

    Sorry, false alarm, it looks like I had my logic a little backwards :)

  • [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!!

  • How to change Validity Start and end dates on a lane ?

    Hi,
    I am trying to change Validity start and end dates on a lane for a product specific assignment.
    What I see is as follows
    1) Lane created by system /others I can delete and give the required start /end date ?
    I want to know if I can change the end date without deleting the lane as its tough to delete a lane in production.
    Thanks
    -Venky.

    Hi,
    we can change the start period and end period in the Transportation lane using the table /SAPAPO/TRPROD.
    And then using the update command you can change the start time and end time of the product.
    Regards,
    Hyma.

  • Simple validation on start and end dates

    Apex 4.2
    I am trying to create a validation script on my start date and end date. A simple validation that says the start date selected has to be less than the end date. Because apex treats my date fields as strings, using a pl/sql expression such as P101_START_DATE <= P101_END_DATE doesn't work. This may seem like an easy issue but I am having trouble creating this simple validation. Any help would be greatly appreciated. Thanks in advance!

    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!!

  • How to input my own Validity Start and End Dates in ME21N

    Hi All,
    I have to change the Validity Start and Validity End date in Addiitional Data Tab of ME21 transaction( PO Create ) using default Customer Values.How Can i accomplish it?
    I have used the BAdI ME_PROCESS_PO_CUST and implemented it, I have coded in the method PROCESS_HEADER.First I retrieved the data using get_data( ) method, changed the values with Customer Values and called the method set_data( ).
    However my validity start and End Dates and not changing.
    Even in ME21N if I create the PO with my own Validity Start and End dates, and go to ME23N to display the created PO, still in the additional data tab, the start and End dates are current date and Next date respectively.why its happening?
    Thanks in advance

    Hi,
    Can you please let us know in which business scenario this is required.
    SAP has provided separate functionality of Outline Agreement for considering validity period.
    If you let us know the business scenarion some solution/workaround can be suggested.
    Regards

  • Start and End Date Validation

    OK I am lost and searched and made changes to what I am doing, but not sure I have datasets correct or something written wrong.
    I have two date fields on my form. A Start Date and an End Date
    I put some validation that says the Start Date/Time cannot be greater than the End Date/Time or so I think that is what it is saying. But if I put and end date in the form with a time that is an hour after the start date, it throws the error
    Here are my details and maybe I am just storing data wrong or something
    ENDDATE Validation: PL/SQL Error:
    if to_date(:P6_DTGSTART) > to_date(:P6_DTGEND)
    raise_application_error (-20001,'End Date must be Greater than Start Date.');
    end if;
    When I look at the data stored in the Database in SQL Workshop this is what I see
    DTGSTART 11/29/2010
    DTGEND
    The input on the form is a Date Picker with format: DD-MON-YYYY HH24:MI
    So the entry in the form would like like:
    Start Date/Time 29-NOV-2010 09:25
    End Date/Time 29-NOV-2010 10:25
    The End date can be the same date but the time has to be greater than the start date/time
    Thanks
    Wally

    It is working better for sure, but after it is saved, I can go back and make the end date less than the start date and it accepts the save. I don't really anticipate this happening, but trying to plan for all eventualities.

  • Date Span - Validation for start and end date parameters in Crystal reports

    Hi,
    I am new here and am unsure if this is the right place to post this issue. If so, I apologize for that.
    I am working on Crystal Reports 12 and don't know if it is possible; to validate the parameters - Start Date and End Date are within a specific span of time. For Eg. Start Date and End Date should be within 6 months or Start Date should be a future date.
    Can we prompt that parameters entered are invalid and have users re-enter it?
    I will really appreciate any help into this issue.
    Thanks Much,
    RP

    Hi,
    Well, it is not possible to validate the date/datetime values in the prompt window, however there are other alternatives.
    One of them is to create an Alert with the condition:
    datediff("m",Minimum({?DateParameter}),Maximum({?DateParameter})) > 6
    //This is to check if the start date and the end date are within 6 months
    Another way of doing this is by displaying a message on the Report Header and suppressing all other sections if the date range values do not meet the condition.
    Hope this helps!
    -Abhilash

  • Subtype Validity Start date Check

    Hi All,
    For one of the infotype we created a new subtype with the validity in future date say 01102010.
    Now if i go to infotype i am able to create the record for this new subtype with the start date as 01042010 which should not be allowed.
    I checked the table V_T582A and also the time contraint for the infotype.
    Time constraint for the infotype depends upon the subtype and in the subtype table it is mentioned as 2.
    I know that we have the custom check for the infotype but is it possible through stadard settings
    Pls guide me on this
    Regards,
    Umesh Chaudhari

    Hi Umesh,
    Though the subtype table for 0071 (Pension funds GB) is V_T591A; it also reads T5G30 to identify the schemes..
    Table T5G30 in turn has got various Pension Schemes with Start Date/End Date.. If you Start Date and End Date of the Plan is in Future (01102010) and if you intend to maintain the new scheme (Subtype) from 01042010; an error is displayed..."Scheme XXX is unknown for this period; check pension table entries."
    Kumarpal Jain.

  • 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

Maybe you are looking for

  • Bookmarks in Master pages

    Hello! Is it possible to link a hyperlink with a bookmark which was created in master page? If it is I can't see it when I'm trying to insert a hyperlink.

  • Iphoto isn't reading my clicks

    I use iphoto 08 to edit and organize my pictures. What I usually do is zoom in on a single picture (not full screen, just zoomed into the max) and arrow threw the pictures and drag the ones I want into albums I've made. One day it stopped letting me

  • Stand by Server

    We use a real time manufacturing process with our Oracle 8.0.4.0.0 database with NT. Are there any built in apps to duplicate my dbase to my BDC ? What would be that best way to configure a back up server ?

  • Time Machine doesnt work with McAfee Internet Security Software

    Hello, I recently installed the McAfee product All Access Internet Security on my 2011 iMac (10.9.4) and configured the real time scan, spyware, application protection and firewall features. All appeared to be running fine with no performance degrada

  • Sun java vs. microsoft java

    I need to know what the difference is between the two of these. And some good places to find info regarding this topic? I need to know differences, similarities, and what each is better suited for. I don't need this for a specific op sys but i need t