Date should not be  less than current date.

Hello, I have a form.It has an item called end_date. I want to have validation of end_date in such a way that "end_date should not less than current date". Any tips would be helpful.
Thanks in advance.

jwellsnh wrote:
Pravish,
A dynamic action executing JavaScript can do this:
Create a Dynamic Action:
Event Before Page Submit
Condition JavaScript Expression
Value $v('P1_END_DATE')<$v('P1_BEGIN_DATE')In this scenario; P1_BEGIN_DATE would need to default to sysdate and could be a hidden item on the page.
Jeff
Edited by: jwellsnh on Jul 19, 2012 9:50 AMMaybe I'm missing something but isn't this just a use case for a common-or-garden validation? Would be interested to know why you thought of javascript rather than normal built-in functionality (not meant as a criticism incidentally!) - is javascript your first port of call when it comes to APEX?
I'd also watch out for comparisons to SYSDATE - remember that SYSDATE includes the current time, so you'd need to take that into account (maybe you could make use of the TRUNC function to remove the time element?). Indeed, would javascript evaluate that expression as comparing two dates (I know Javascript evaluates variables byDuck Typing but does this work in practice)?

Similar Messages

  • AR Invoice date should not be less than delivery date

    How can i make an alert for user when they will prepare AR Invoice?
    Example:
    If Delivery date is 01-10-2010 and Invoice date should be later or same but not less than delivery date(01-10-2010).
    if Invoice date is less than delivery date then This data should not be added into the database.
    So there is any way to stop this error.
    Thanks
    Mizan

    Dear Bala,
    Here is the SP:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER proc [dbo].[SBO_SP_PostTransactionNotice]
    @object_type nvarchar(20),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    --     ADD     YOUR     CODE     HERE
    If @object_type='13' and @transaction_type='A'
    BEGIN
    If Exists (Select distinct 'error' from [dbo].[OINV] T0 Inner Join INV1 T1
    On T0.DocEntry=T1.DocEntry Inner Join DLN1 T2 On T1.BaseEntry=T2.DocEntry
    Where T0.DocDate<T2.DocDate
    And T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    Select @error = -1,
    @error_message = 'DocDate for Invoice Should not be Less than Del. Date. So You can not Add this Doc'
    End
    End
    -- Select the return values
    select  @error,@error_message
    end
    Regards,
    Mizan

  • Comparing dates (Start date should not be later than End date etc ...)

    Hello All,
      I have a table (5 rows) with 7 columns. Of which the first to columns are the start date and the end date. Can someone kindly advise on how I can go about to ensure that there is some validation mechanism in place such that the start date is not later than the end date and vice versa ? Thank you very much.
    from
    Kwok Wei

    Hi
      Use calculated attributes as Pran suggested. It should work. Where are you getting the data from. Is it from R/3. The node bound to the table ui element is it a model node. Anyway Here is the link on how to use the calculated attribute.
    http://help.sap.com/saphelp_nw04/helpdata/en/7f/a0384162316532e10000000a1550b0/frameset.htm
    regards
    ravi

  • User start date can not be before the current date

    I'm creating users using the Reconciliation engine. The start date attribute doesn't appear to be reconciling. I get many different types of parse errors. The closest I appear to get is when I set the Xellerate User resource object recon field to have Start date as a date field, i receive the error:
    "User start date can not be before the current date.".
    I'm using 9.0.1.1. And I AM trying to create a user that has a start date before todays date.

    Resolution was to patch to 9.0.1.1578

  • Actual dates should not impact the Network scheduled dates

    Hi
    I have planned schdeuled dates (Early/latest).
    When i am confirming the activity the actual dates get updated
    When i schedule the network the scheduled planned dates are recalulated
    This should not happen for this client i am working for
    The requirement is that the Planned Scheduled should remain fixed and
    should only change if duration, relationship etc changes.
    I have tried different option to solve this but still no clue
    Adjust basic date 1, 2, 3 option
    Shift Order
    No date Update - this seems to work but not visible in CN22/CN25/CJ20n
    Kindly highlight if any of you have come with similar requirement & provided solution to it
    Either thru standard functionality, configuration or any development
    Cheers

    Hi Manoj,
    I had the same requirement and able to achieve it by std. settings. Keep in mind that the planned dates wil get changed when you do the final confirmation. You should have the control on the planned dates until the activity get Fianlly confirmed.
    psconsultant

  • Posting date should not be in future for vendor payments

    Hello Guys,
    Hope everyone doing fine....
    My question is: In F-53 or F-58, Posting should not be greater than entry date or system date.
    I did write a validation for this.
    Company code 1000, document type KZ, Transaction Code F-53(FBZ2) or F-58(FBZ4)
    Check: BKPF-BUDAT>SYST-DATUM
    Message Error:
    But it is not working.
    Could some one help me?
    Regards,
    SK

    Dear Srinivas,
    Change the check as follows from
    Check: BKPF-BUDAT>SYST-DATUM
    to
    BKPF-BUDAT <= BKPF-CPUDT
    add  BSEG-KOART = 'K' in prerequisite
    Regards,
    NCC  Talluri

  • MIGO should not create after PO Delivery Date

    Hi,
    We have a PO with multiple line items and diff. Delivery Dates...
    We want that during MIGO Process, Posting Date should not exceed to PO Delivery Date.
    Means, if PO Delivery Date is 05.07.2014, then MIGO should not created after this date...
    Please suggest.

    If you want to achieve the scenario with standard settings, then you can use the field "Latest GR date".
    Just put the same date as delivery date in this field. Then  system will not allow to do GR if the Posting date is exceed with compare this date in MIGO.
    You can find the latest GR date in Delivery tab in PO. Also you can maintain the field as mandatory in PO to avoid the field value blank as per your requirement.
    Also if you want to change Latest GR date along with delivery date, just take the steps which is explained in this document Mass changes from one field to another field.
    **Edited by: Dëv Päträ

  • End date should not less than Start date, else CLEAR it

    Hello
    I put CONTRACT START DATE and CONTRACT END DATE fields on the form. These 2 objects (Date/Time objjects) i pulled them from Satndard tab of pallette and dropped on my layout page design, fine.
    Now, am trying to put a validation that the end dat eshould not lower than start date, so, i got a thread as below from Niall,
    http://forums.adobe.com/message/1909551
    and i did my FormCalc coding under EXIT event of END DATE field as below,
    // Pls. note this FormCalc
    // End date should not less than Start date, else CLEAR it - Begin
    var stDate
    var endDate
    stDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_START_DATE") .rawValue
    endDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue
    if (stDate > endDate) then
        xfa.host.messageBox("End date is lower than Start date! End date is cleared")
        xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue = null
    endif
    // End date should not less than Start date, else CLEAR it - End
    I tried in VALIDATE, CALCULATE, CHANGE events of END DATE, but nothing working!!
    PLs. let me kow how can i achieve my requirement? I am anewbie,
    Thank you

    If you use the exit event, you will probably have to have the same code on both the start and end date fields since they have a dependancy on each other. Maybe better to try the validate event of the end date so that if either field is changed the event gets fired. You can try the following for validate event
    // Pls. note this FormCalc
    // End date should not less than Start date, else CLEAR it - Begin
    var stDate
    var endDate
    stDate = CON_START_DATE.rawValue
    endDate = $.rawValue
    if ( HasValue(endDate) ) then
        if (stDate > endDate) then
            xfa.host.messageBox("End date is lower than Start date! End date is cleared")
            $.rawValue = null
        endif
    endif
    1
    // End date should not less than Start date, else CLEAR it - End

  • Contract End date should not less than Start date, else CLEAR it

    Hello
    I put CONTRACT START DATE and CONTRACT END DATE fields on the form. These 2 objects (Date/Time objjects) i pulled them from Satndard tab of pallette and dropped on my layout page design, fine.
    Now, am trying to put a validation that the end dat eshould not lower than start date, so, i got a thread as below from Niall,
    http://forums.adobe.com/message/1909551
    and i did my FormCalc coding under EXIT event of END DATE field as below,
    // Pls. note this FormCalc
    // End date should not less than Start date, else CLEAR it - Begin
    var stDate
    var endDate
    stDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_START_DATE") .rawValue
    endDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue
    if (stDate > endDate) then
        xfa.host.messageBox("End date is lower than Start date! End date is cleared")
        xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue = null
    endif
    // End date should not less than Start date, else CLEAR it - End
    I tried in VALIDATE, CALCULATE, CHANGE events of END DATE, but nothing working!!
    PLs. let me kow how can i achieve my requirement? I am anewbie,
    Thank you

    http://forums.adobe.com/message/4264933#4264933

  • PR Date Should be less than PO date

    Hi
    I have done the change in message type to control PO date at the time of creation, now PO can be created only in current date but if at a later stage somebody has been created one more PR and change the PO and add one more line item from this PR then PR date is greater than PO date.
    So this is objectionable and I want to control this i.e. PR date should be less than PO date.
    Please guide how can i achieve this?
    Regards
    Ajay Goel

    Hello,
    Ajay if u you want to restrict the PO can be created only in current date then u can take help of your ABAPER because its possible through BADI.
    If you want to add the other line item in PO Or Use Tcode Me22n you can not change the document date that time bcoz its disable check it.

  • Required delivery date in sales order shoud not be less than the inhouse pd

    Customer Requested Dates (CRD) entered in orders are often shorter than Product form wise lead time. 
    Logic to be configured in SAP : SAP should capture the CRD as per the lead time of Products or Date entered by sales persons (whichever is later).
    Required delivery date in sales order shoud not be less than the inhouse production lead time.
    Please help.
    Regards

    IMG - Sales and Distribution - Basic Functions - Availability Check and Transfer of Requirements - Availability Check - Availability Check with ATP Logic or Against Planning - Carry Out Control For Availability Check
    Here select the combination of your Availability Check & Checking Rule.
    Under Replenishment Lead TIme, you need to put a Tick Mark in the Check Box of "Check without RLT"
    This will make sure that system considers either the Requested Delivery Date or actual Material Availability Date, which ever is earlier.
    Hope this helps.
    Thanks,
    Jignesh Mehta
    Edited by: Jignesh Mehta on Nov 9, 2011 12:18 PM
    Edited by: Jignesh Mehta on Nov 9, 2011 12:23 PM

  • Rogers is saying that IOS4 won't allow use of the personal hotspot with a plan of less than 1GB data.  I say it's a policy of theirs, not an iOS restriction.  Anyone know the truth?

    Rogers is saying that IOS4 won't allow use of the personal hotspot with a plan of less than 1GB data.  I say it's a policy of theirs, not an iOS restriction. Anyone know the truth?
    I call BS but the tech guy was insistent that the iPhone can detect what plan I have and won't enable the feature and there's nothing they can do about it, short of selling me a larger data plan...

    robfromkelowna wrote:
    Actually it does.  It's wrong to lie to a customer.  By blaming Apple, they shift the blame and make it seem like there is nothing they can do about it.  If they admitted it was their policy, I could complain and try to get it changed or I could move to another carrier.
    If a person killed someone and blamed it on a heart attack, the person is stil dead, does it matter? Either way they're dead, right...  (extreme, I know, but illustrating a point)
    Wow.
    It is certainly Rogers policy and is not unusual at all among carriers.
    Seems like a non-issue to me, but apparently being "lied to" ( perhaps the employee was simply mistaken, it happens) is a major deal to you.

  • SALES ORDER CAN NOT BE LESSER THEN POSTING DATE

    Hi everyone
    Can any one tell how can I restrict sales delivery date less then posting date. Like if user create a sales order on 22,03.14 then delivery date should not be before 22.03.14. I saw in system if I enter sales delivery date before 22.03.14 then system accept the date

    Hi,
    Try this:
    IF @transaction_type in ('A') AND (@OBJECT_TYPE='17')
    BEGIN
    If exists (SELECT t0.docentry FROM ORDR T0 WHERE T0.[DocDueDate] < T0.[DocDate] and  T0.DocEntry =  @list_of_cols_val_tab_del)
    Begin
    SET @error = 10
    SET @error_message = 'Not allowed to enter delivery date less than posting date'
    End
    End
    Thanks & Regards,
    Nagarajan

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

  • ESS Information errors if end date is less than system date

    Hi to all,
    I have create an WD Java aplication to create new entries in infotype 0023.
    First problem: At the beginning I couldn't create new entries if start date is less than system date. To solve this problem I used:
    The transaction SPRO to go to Personnel Management>Employee Self Service>Service Specific Setting-->Change Default Start Date
    In HRXSS_PER_BEGDA I changed BEGDA to 01.01.1900 in the DEFAULT_DATE method and i solved the first problem.
    Now I need solved the second problem - we couldn't create new entries if end date is less than system date.
    In this method DEFAULT_DATE I can't change ENDDA because ENDDA isn't a parameter in this method.
    MOLGA (Importing)
    PERNR (Importing)
    INFTY (Importing)
    SUBTY (Importing, optional)
    BEGDA (Changing)
    Can anybody helps me about this second problem?
    Thank a lot for your help.

    I am creating an aplication WD Java:
    - This application uses a R3 Function Module HRXSS_PER_MODIFY_PNNNN
    - This FM uses the method CALL METHOD xss_adapter->modify
    - This Method uses IF_HRPA_PERNR_INFTY_XSS~MODIFY
    - This method uses:
      IF buffer_entry-container->a_pskey-endda < user_today.
        msg-msgid = 'PG'.
        msg-msgty = 'E'.
        msg-msgno = '016'.
        msg-msgv1 = 'Data valid only for past is not'(009).
        msg-msgv2 = 'allowed;'(010).
        msg-msgv3 = 'correct'(011).
        msg-msgv4 = 'end date to a date today or future date.'(012).
        CALL METHOD message_list->if_hrpa_message_handler~add_message
          EXPORTING
            message = msg
            cause   = xss_adapter_generic.
      ENDIF.
    How can I change the value user_today?
    This value is a parameter for the method GET_INSTANCE in CL_HRPA_PERNR_INFTY_XSS, but I don't know when this method is called.
    Can you help me?

Maybe you are looking for

  • Advice on TV Out Cable CA-75U

    Hi     I have a N79 phone.  I understand that it requires a CA-75U cable for TV out.   I have a smiliarly looking cable that I use for a Harddisk->TV player.  I wonder if I could use this cable or must I get the CA-75U ?  Is the CA-75U a proprietory

  • NO SLI ENABLE OPTION

    I just installed 2 XFX 8600GT w/ 1GB of mem video cards with bridge. I do not have the option in the NVIDIA CONTROL PANEL to enable SLI; however, it sees both cards. I have updated BIOS and vid card drivers and still can't enable sli. Any help would

  • How to make sure I applied Service Pack correctly?

    Hi all, I am using Weblogic Server 4.5.1 and I just applied service pack 8 to it. Is there any way I can tell I installed it correctly? Thanks. --Tony I tried the following java command: java weblogic.Admin t3://10.1.1.74:7001 VERSION but it gives me

  • HTC Legend does not meet the minimum system requirements for firefox.

    I have download firefox(Android) for HTC Legend. It had shown that this device does not meet the minimum system requirements for firefox. I want to know that what is the problem in this device. Actualy, Firefox has already downloaded in this device.

  • Lexmark x5495 and windows 7 - driver problem

      Hi, I have windows 7 and just got a printer - lexmark x5495  unfortunately Windows cant find the right driver 4 the printer via windows update...  I have downloaded  driver for win 7 32, 64 bit, windows vista even windows xp and non of them is good