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.

Similar Messages

  • 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

  • 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)?

  • 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

  • Hide/disable a row of a list when "date" column is less than today's date.

    Hi,
    We are using a "Finalsubmitted" date column in my list. my requirement is once that date of Finalsubmitted column is expired(less than today's date), total row should be in hide/disable mode.Could you help me to achieve this.
    Thanks.

    that is a drop down, showing the results from another list based on our selection.
    We have used SP services for that.
    But, date conversion is wrong on  var pubdate= new date(dateselected.value) line.
    It is showing "NaN(Not a number)" . date format it is giving DDMMYYYY.
    But, i need MMDDYYYY. How can we convert in JavaScript.
    Plz check below code.
    <script language="javascript" type="text/javascript">
    $(document).ready(function()
    today = new Date();
    getTagFromIdentifierAndTitle("select","Lookup","Dates").onchange = function() {ChangeEvent1()};
    function ChangeEvent1()
    var dateSelected = document.getElementById("Dropdown ID");
    var pubdate = new Date(dateSelected.value);
    if(pubdate<=today)
    $("input[value$='Save']").attr('disabled', true); //button hides
    alert("Publishing Date should be greater than Today's Date");
    else
    $("input[value$='Save']").attr('disabled', false); //button shown
    function getTagFromIdentifierAndTitle(tagName, identifier, title) {
    var len = identifier.length;
    var tags = document.getElementsByTagName(tagName);
    for (var i=0; i < tags.length; i++) {
    var tempString = tags[i].id;
    if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length - len)) {
    return tags[i];
    return null;
    }</script>

  • Camel Query : Calender list : Get Items agains given date that must be greater than and eqaul to start date and greater less than or equal to end date ?

    Camel Query : Calender list : Get Items agains given date that must be greater than and eqaul to start date and greater less than or equal to end date ?
    A Snap of Employee holiday list
    Case : Anne juul Sondergaar is on leave from 05-06-2014 to 07-06-2014
    I need a query to check wheither Anne juul is on leave at 06-06-2014 ????
    I am using this query that return nothing
    SPQueryquery =
    newSPQuery();
                                query.Query =
    @"<Where>
    <And>
    <And>
    <Leq>
    <FieldRef Name='Til' />
    <Value Type='DateTime'>"
    + WorkingStartDate.ToString("yyyy-MM-dd")
    + @"</Value>
    </Leq>
    <Geq>
    <FieldRef Name='Fra' />
    <Value Type='DateTime'>"
    + WorkingStartDate.ToString("yyyy-MM-dd")
    + @"</Value>
    </Geq>
    </And>
    <Eq>
    <FieldRef Name='Medarbejdere' />
    <Value Type='Lookup'>"
    + EmployeeName.Trim() +
    @"</Value>
    </Eq>
    </And>
    </Where>"
                                query.ViewFields =
    " <FieldRef Name='ID' />";
    Ahsan Ranjha

    Hello,
    Download CAML query builder from below location and use it to build your query:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f7b36ebc-6142-404a-8b04-9c87de272871/where-can-i-download-the-u2u-caml-query-builder-for-sharepoint-2010may-i-know-the-exact-link?forum=sharepointgeneralprevious
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Block AP Invoice less than PO date ( Udf )

    Hi All,
    I am trying to Make an SP based on the UDF which is there in the AP invoice named as PODate. I want to block the AP invoice if AP Invoice Posting Date or AP Invoice Document Date is less than the Date of the this UDF. This UDF Captures the PO date basically and I want to Block all AP Invoice whose Posting Date is less than the PO Date.
    I tried the below SP but could be sucessful.
    ---AP Invoice vs PO Date
    if @transaction_type = 'A' and @object_type ='18'
    begin
    if exists(select T0.docnum from dbo.OPCH T0 where T0.docentry = @list_of_cols_val_tab_del
    and T0.docdate > T0.U_PODATE
    BEGIN
    SET @error = 17
    SET @error_message = N'AP Invoice Date less than the PO Date'
    end
    end
    Kindly advise.
    Regards,
    venky

    Hi Venky......
    Try this.....
    ---AP Invoice vs PO Date
    if @object_type ='18' and @transaction_type = 'A'
    begin
    if exists(select T0.docnum from dbo.OPCH T0 where T0.docentry = @list_of_cols_val_tab_del
    and T0.docdate < T0.U_PODATE
    BEGIN
    Select @error = -1,
    @error_message = N'AP Invoice Date less than the PO Date'
    end
    end
    If you see in your SP you have given reverse condition that is T0.docdate > T0.U_PODATE but it shoudl be T0.docdate < T0.U_PODATE
    ANyways try this SP.......
    Regards,
    Rahul

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

    Hi to all,
    We have create an WD Java aplication to create new entries in infotype 0023. We have used a standar component DC (PersInfo).
    The first problem - we couldn't create new entries if start date is less than system date and we used:
    In transaction SPRO got to Personnel Management>Employee Self Service>Service Specific Setting-->Change Default Start Date
    Business Add-In HRXSS_PER_BEGDA. You can set the date in the DEFAULT_DATE method.
    Parameters of the method DEFAULT_DATE:
    MOLGA (Importing)
    PERNR (Importing)
    INFTY (Importing)
    SUBTY (Importing, optional)
    BEGDA (Changing)
    We have solved the first problem with begda.
    The second problem - we couldn't create new entries if end date is less than system date.
    Can anybody helps me about this second problem?
    Thank a lot.

    Can anybody helps me?
    Thank a lot.

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

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

  • MIRO (Invoice Date) should be updated with Document date in MIGO Transactin

    Hi all,
              Please helo me in the issue . I need to replace the MIRO (Invoice Date) (INVFO-BLDAT)with Document Date in MIGO Transaction (MKPF-BLDAT). Can anyone suggest me the Userexit/ BADI for acheiving the same.

    Hi,
    We have same requirement that MIRO date should not be lesser than GRN date.  How could you solve your problem/
    rajeswari

  • PO Doc Date is not Greater than MIGO Date.

    Dear All,
    I ahve Done PO with doc date 02.02.2009 & i create MIGO as 25.01.2009 System is accepting this document.
    so i want restriction of this procedure.
    PO date is not greater than MIGO date.
    Thanks
    Shital

    hi
    for ur problem just set message no ME039 as error message
    go to SPRO>MM>Purchasing>Environment Data>Define Attributes of System Messages
    here make message ME -039 as error
    regards
    KI

  • From date(ETTIFN-AB) greater than To date(ETTIFN-BIS) in table ETTIFN

    Hi,
    In my client system I have observed that in table ETTIFN(Installation Facts (Normal) for a specific operand the "From date" field contains date which is greater than the date contained in the "To date" field.
    eg: from date = 20/7/2008
         To date     = 4/4/2008
    This is observed in multiple records of the same operand.
    Can any one throw some light on this issue.
    1) How this could have happened, and using what transaction.
    2) what will be the effect of such entry on rate category and billing.
    3) how this can be changed.
    any suggestion will be highly appreciated.
    thanks
    ajay

    In my experience, this a sort of a bug that happens in several time sliced tables.
    However, the programs only seem to take the BIS date into account, so this inconsistency doesn't create any problems.
    If I'm not mistaken, there are some notes on this error, but I'm not sure if it'll fix the problem for every table.
    When in doubt, create a customer message to SAP explaining in which cases the error is generated and ask for a correction.

  • Goods receipt date should be greater than the P.O. date

    Hi
    Is there any option to control the Goods receipt date should not be lesser than the P.O.Date??
    Eg: P.O. is raised in 10.1.9, User should not do the GRN before 10.1.9. In which way we can control  this???
    Regards
    Ravi

    Dear,
    You have to include User exit in MIGOwhich will trhrow an error at the time when Goods receipt date is greater than the P.O. date.
    Regards
    Utsav

Maybe you are looking for

  • Schedule lines firming

    Hi, In MD04 we can able to see the * indicator for some of the schedulelines which got firmed due to the firm zone period. But when we look into the same schedule lines in ME38 fixing indicator is not set for the same schedule lines.. Kindly explain

  • ABAP WebService Created but unable to locate in Web Services Navigator

    Hi all, We have got a SAP WAS 640 system and had created an RFC and converted into a Web Service via transaction code SE37. Have also confirmed to be working using the test page. However, in the Web Services Navigator homepage, I am unable to find th

  • Connecting Color Correction Monitor To My G5 (Help Please)

    Hello everyone. I'm getting ready to begin color correction on a DV feature I've just finished audio post on. I have a Macintosh dual 2Gig G5. It's an early G5 that has PC133 slots, however, and is NOT HD compatible or ready. I cannot use an HD video

  • Help in inserting rows into a table

    I have a table called acct_fact, I need to insert rows in the table using a script but the problem is there's a column called seq_nbr which has random seq nbr of 14character length like 'ZWX98MGD9MVAD6J','ZWX98MG67RVAD6J' etc., While inserting rows I

  • ?? iTunes + QT, cancels my QT-Pro license?

    So I have been happily using my QT-Pro I PAID for a few years back. I get an IPOD and what does apple do? They tunr around and say I either have to PAY for a new QT-Pro licnese that uses their newer version, OR not be able to use iTunes. What's up wi