Document date of PO to be made unchangable

Hi,
In our system, user can make PO and give document date of past or future. I want that document date of PO can not be changed from today's date during making a PO. How can i do this?
Regards,
Kalpesh

Make the warring meass to error message
Go to SPRO MM -- Purchasing -- Environment Data --  Define Attributes of System Messages (ome0)
meassage no ME 039  make it error it will not allow to create with past daliveery date
regards
Edited by: Roy Anamika on Jul 17, 2009 12:16 PM

Similar Messages

  • Regarding : Material document data and PO data do not match (Plant)

    Hi Gurus,
    Please go through this BAPI program.
    While uploading it is giving an error ' Material document data and PO data do not match (Plant) '.
    Please help regarding this issue.For all Other moment types it is working fine except this 351 moment type.
    dATA: i_excel TYPE truxs_t_text_data. "work table for excel upload
    DATA: BEGIN OF it_itab OCCURS 100,
          docdate(10),
          postdate(10),
          mvt_type(3), "Movement Type
          plant(4), "Plant
          lgort(4),
          pur_doc(10), "Purchase Document No
          po_item(3), "Purchase Document Item No
          material(18), "Material Number
         delnote(16),
          erfmg(13),
          uom(3),
         lfmng(13), "Quantity
          batch(10) TYPE c,
          vfdat TYPE vfdat,
          END OF it_itab.
    DATA: it_goodsmvt_head TYPE TABLE OF bapi2017_gm_head_01      INITIAL SIZE 100,
          it_goodsmvt_code TYPE TABLE OF bapi2017_gm_code         INITIAL SIZE 100,
          it_goodsmvt_item TYPE TABLE OF bapi2017_gm_item_create  INITIAL SIZE 100.
    DATA: wa_goodsmvt_head LIKE LINE OF it_goodsmvt_head,
          wa_goodsmvt_code LIKE LINE OF it_goodsmvt_code,
          wa_goodsmvt_item LIKE LINE OF it_goodsmvt_item.
    DATA: w_mat_doc  TYPE bapi2017_gm_head_ret-mat_doc,
          w_year     TYPE bapi2017_gm_head_ret-doc_year.
    DATA: BEGIN OF it_errmsg_goodsmvt OCCURS 10.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_errmsg_goodsmvt.
    DATA : obj_type LIKE bapiache09-obj_type,
           obj_key  LIKE bapiache09-obj_key,
           obj_sys  LIKE bapiache09-obj_sys.
    DATA: v_date1 TYPE sy-datum.
    DATA: v_date2 TYPE sy-datum.
    DATA: w_lines TYPE i.
    DATA: errflag.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-100.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK bk1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    Start-of-selection processing
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_line_header        = 'X'
          i_tab_raw_data       = i_excel
          i_filename           = p_file
        TABLES
          i_tab_converted_data = it_itab[]
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT it_itab.
        REFRESH it_goodsmvt_head.
        REFRESH it_goodsmvt_item.
        CONCATENATE it_itab-docdate6(4) it_itab-docdate3(2) it_itab-docdate+0(2) INTO v_date1.
        CONCATENATE it_itab-postdate6(4) it_itab-postdate3(2) it_itab-postdate+0(2) INTO v_date2.
        wa_goodsmvt_head-pstng_date = v_date2.
        wa_goodsmvt_head-doc_date   = v_date1.
       wa_goodsmvt_head-ref_doc_no = it_itab-delnote.
    wa_goodsmvt_head-pr_uname   = sy-uname.
        APPEND wa_goodsmvt_head TO it_goodsmvt_head.
    Maintain it_goodsmvt_code
        wa_goodsmvt_code-gm_code    = '04'.
    Maintain it_goodsmvt_item
    *LOOP AT it_itab.
    IF wa_goodsmvt_item-po_number IS INITIAL.
        wa_goodsmvt_item-po_number    = it_itab-pur_doc.
        wa_goodsmvt_item-move_type    = it_itab-mvt_type.
        wa_goodsmvt_item-MOVE_PLANT      = it_itab-plant.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = it_itab-material
          IMPORTING
            output = it_itab-material.
        wa_goodsmvt_item-material     = it_itab-material.
        wa_goodsmvt_item-stge_loc     = it_itab-lgort.
        wa_goodsmvt_item-po_item      = it_itab-po_item.
        wa_goodsmvt_item-entry_qnt    = it_itab-erfmg.
        wa_goodsmvt_item-ENTRY_UOM_ISO    = it_itab-uom.
       wa_goodsmvt_item-po_pr_qnt    = it_itab-lfmng.
        wa_goodsmvt_item-batch        = it_itab-batch.
        wa_goodsmvt_item-expirydate   = it_itab-vfdat.
       wa_goodsmvt_item-NO_MORE_GR   = 'X'.
        wa_goodsmvt_item-mvt_ind      = 'B'.
        APPEND wa_goodsmvt_item TO it_goodsmvt_item.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header  = wa_goodsmvt_head
            goodsmvt_code    = wa_goodsmvt_code
          IMPORTING
            materialdocument = w_mat_doc
          TABLES
            goodsmvt_item    = it_goodsmvt_item
            return           = it_errmsg_goodsmvt.
    Process of commit work
        IF it_goodsmvt_head[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_head LINES w_lines.
        ENDIF.
        IF it_goodsmvt_item[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_item LINES w_lines.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
        IMPORTING
        RETURN        =
          CLEAR errflag.
          READ TABLE it_errmsg_goodsmvt INDEX 1.
          IF it_errmsg_goodsmvt-type EQ 'E'.
            WRITE:/'Error in function', it_errmsg_goodsmvt-message.
            errflag = 'X'.
          ELSE.
            WRITE:/ it_errmsg_goodsmvt-message.
          ENDIF.
          IF errflag IS INITIAL.
            COMMIT WORK AND WAIT.
            IF sy-subrc NE 0.
              WRITE:/ 'Error in updating'.
              EXIT.
            ELSE.
              WRITE:/ 'Material Document created successfully and the Document Number for the Material',
                      wa_goodsmvt_item-material,'is:', w_mat_doc, w_year.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.

    Hey,
    Just wanted to post that in my case this was the error of MVT_IND field in item table. When I made it from 'B' to blank then it worked.
    Mine is solved....
    Thanks

  • Posting / Due / Document date trouble

    Hi there,
    i have a little bit trouble with the dates. I already read a sheet about dates in SAP, but there are some misunderstandings. Here is the scenario, in which i have problems :
    I book a incoming payment ( Posting date : 15.11.2008 | due date : 02.11.2008 | document date : 15.11.2008)
    You find the payment in the general ledger with the correct dates. Now i find out, that i made some mistakes and i have to cancel the incoming payment. I cancel the incoming payment and i find a wrong due date in the in the general ledger (not 02.11.2008 -> 15.11.2008). Cause of booking date and cancel date is the same time, the systems do not ask for the date.
    I do not understand the correct meaning of posting, due and document for incoming and outgoing payments.
    I book the incoming payments by means of the bank statements. In my opinion the posting date is the time i book the incoming payment, the valuta date is the due date and the document date is the bank statement date. But i think i am wrong with my opinion, cause of my experience with the cancellation.
    Pleas give me an advise, the general ledger is going wrong.
    Thanks and regards

    Hi Gordon,
    hi community,
    as your mentioned i was trying your last comment :
    Depending on the date you receive the payment, you could use this date for all Posting / Due / Document date. Just keep the consistency for your date. Which ever you like, do not confuse yourself.
    I changed the posting / document date of incoming payments to the date of receiving the payment. E.g.
    Invoice date is 22.12.2008, Incoming Payment 13.01.2009, and today i got the bank statement and book it into SAP.
    If i do so posting date = incoming payment date, the system warns "There is a document of this type with a later posting date". I was already searching the forum about this message and i am not sure if it is ok to ignore this message.
    Thanks Steffen

  • No GR on Back date (Document Date)

    Hi All,
    We normally use Tx: MB01 and MB0A for Goods Reciept.
    Now we have a requirement not to allow GR on back date (i.e. Document date in GR screen should not be back dated) but it should be allowed in Goods Issue (MB1A).
    I have tried by using the screen control for Goods movement; I made the field 'Document date' in display mode but it is getting in display mode in all Tx: MB01,MB0A & MB1A,MB1C.
    How to achieve this "Not to allow GR on back date only in GR transactions"
    any possibility of Message control / Screen variants / any other thing ??
    Please suggest.
    kind regards,
    kumar

    Hi,
    You should be able to control this on posting periods unless you do not generally open back dated periods (Not recommended in normal practise).
    You could try putting the latest possible GR date in purchase order as the cut off date you want to post the document. System will not allow you to post document in case date is previous to the date maintained in this field.
    Thanks,
    Sourabh

  • Request to make Document Date (OINV.TaxDate) available on Remittance Advice

    Hi,
    I have 2 customers who have requested that we include the Invoice Document Date (TaxDate) on the Outgoing Payment (Remittance Advice) payment.
    Can this be made available?  At present only the Posting Date (system variable 202) and Due Date (system variable 203)  can be shown.
    Thanks
    Greig

    Thank you Suda. This may work to a certain extent but it will not resolve many issues within the programme because in many places within the Accounting system the Tax point date is not taken into account. For instance the entries in G/L bank accounts are refering the Posing Date instead of the Tax Point Date. i have noticed this in other places within the system that somehow the Tax point Date waws mixed up ( I think perhaps due to confusing Field names within the tables)
    I am not sure what the procedure is to report this type of issues to SAP support or Development team but I feel that this needs sorting out within the system because I am not sure that it is only a matter of showing the Tax point  date on a UDF
    Thanks for your suggestion anyway - at present I do not know how you place a tax Point date UDF Field in the Incoming Payment Form - this form is fixed and i am not able to edit,add to it and having the UDF will not help, perhaps you can elaborate on your idea
    Thank you
    Robert

  • Wanted brief idea about posting date, document date, entry date

    Hi guyz!
    basically am an tech consultant. But wanted to have brief idea about the following business process. scenario is like this:
    in inventory management, we are doing some inter facility transfer. i.e., for a particular plant, we are having multiple storage locations. so due tosome reasons, we are transfering stock from one storage location to another storage location. so in this context can anybody say what are the followings:
    1. posting date
    2. document date
    3. entry date
    waiting for proper response.
    manas

    Hi Manas,
    The Document Date is the date in which the business transaction for the Documente(e.g., a transfer of posting) took place. The document date is the date on which the original document was issued.
    The document date can, for example, refer to the creation date of the delivery note issued by the vendor or the internal goods receipt slip.
    The Posting Date determines the posting period and defines in which fiscal period a document will post (regardless of the Document or Entry date). It is the date which is used when entering the document in Financial Accounting or Controlling. The periods that are permitted for posting are determined by Accounting Services. This is the date that G/L Account Balances are updated.
    The fiscal year and the period for which an update of the accounts specified in the document or cost elements is made, are derived from the posting date. The Posting Date will override the Fiscal Period entered on a document if they are different.
    When entering documents, the system checks whether the posting date entered is allowed by means of the posting period permitted.
    The posting date can differ from both the entry date (day of entry into the system) and the document date (day of creation of the original document).
    The Entry Date is the date the transaction was actually "permanently entered" into R/3.
    Note: It is possible that an invoice was issued with a Document Date of 6/15/98, entered into R/3 on 7/15/98 (Entry Date) with a Posting Date of 6/30/98 (to post the Document in the previous fiscal year). Many times, all three of these dates are the same.
    Thanks,
    Susmitha.
    Mark helpful answers.

  • Get change document data

    How do we get the change document data to be used in a workflow,
    I have made entry in swec , there i associated the change object and my zbo delegeted from standard bo and specified the event as "on change". now i want to send a mail using this changed data.
    I have two options either i use an exit fm to trigger the mail or use a workflow to trigger tha mail, but how do i use the changed data that i get from cdhdr, i need to specify these fields in tha mail body.
    or if i choose to use an exit fm how to do it.
    regards,
    кu03B1ятu03B9к

    Hello,
    Create a new background method in the ZBO to get all the required details from CDHDR and CDPOS tables. Export them from the method as separate variables or as an internal table.
    Create a task in the workflow to execute this method before the sendmail step. Once the data is exported from the method, it is going to be available in the workflow container and so you can use the same in the SENDMAIL step.
    Hope this will help.
    Thanks,
    Samson

  • System captures the baseline date as the document date

    Hi All,
    User has changed the Baseline date as 05/11/2011 in the parked document 12345644/ 54123456 via t-code FV60, however, when the document was posted, the baseline date u201Cdefaultsu201D to the document date.
    Appreciate any one suggest me on this issue
    Nandha

    Hi Ravi,
    The system is defaults to capture the document date as baseline date,  the user wants to change the baseline date which has been captured by the system, then he changed the baseline date while posting the vendor park invoice.
    later he is saying that the changed baseline date is not taken again it has taken the document only. why it has happend like this.
    one question:- is user can change the baseline date while posting the vendor invoice ?  if he can change how the system should be configured for this where the setting should be made to take baseline date as given by the user.
    Appreciate any one suggest me on this request.
    Thanks
    Nandha

  • I want to share PDF documents with others. These documents have been edited (mostly highlights) by me. I want to share these documents without the changes I've made. How can I do this?

    I want to share PDF documents with others. These documents have been edited (mostly highlights) by me using Preview. I want to share these documents without the changes I've made. How can I do this? Do I have to manually erase all of the changes I've made. The people I want to share it with also have macs.
    Isaac

    You can move the iTunes folder to a separate drive on your pc an then configure each account to use this drive / folder as iTunes library ... The problem is, that iTunes by default stores everything in your personal music folder which is separate for each user account in windows (and by default is on "C" drive).
    I create a separate partition on every pc/laptop (and map a drive name) where I store music, videos and other mass data. This will also keep the "C" drive small, which is backed up from time to time and so my backup is also small.

  • Calculating local currency based on document date in goods receipt

    We have a requirement in Poland that the local currency PLN should be calculated based on the document date when doing goods receipt, and not standard SAP posting date. I can only find note 619330 according to this requirement, but this note requires use of material ledger which we are not using. We have implemented note 574583 for the same requirement in transaction MIRO.
    Since there are no notes from SAP according to the requirement in transaction MIGO, are there any enhancements available for using the document date instead for posting date when calculating local currency?
    Best regards,
    Terje

    substitution used

  • I dont see 'documents & data' in settings

    Why cant i see 'documents & data' in the settings in iPhone? Im trying to backup whatsapp but i have to turn on documents & data first but i don't see it in settings/iCloud

    This is in my settings. No documents & data

  • Problem with material and document date in sales order

    Hi All,
    I am working in ECC 6.0 .I am facing problem with two fields when in enter in to sales order(tcode:va01)
    1.A material comes automatically in line item.
    2.Document date also comes as 27.03.2008 instead of todays date in each order i create.
    I think its not related to configuration.I think its related to some modifications through exits or enhancement points.could someone suggest me a where to check and solve that.
    Your's suggestion is appreciated.

    Hi Sharad,
    Check MV45AFZZ include in se38..It is a user exit for basic validation on sales...We may be able to find some code there (if screen data is predefined by code as mentioned)
    Hope it helps
    Regards
    Byju

  • Open items yet to be cleared which have 2-3 years old document date

    Sap Experts,
    This is my first post and would like to ask for a help .
    I would like to clear all the open items which have Zero balance and belongs to Fiscal year 2007, 2008, 2009, 2010.
    In F-04 T.code, When I put the document date, it does not allow me to clear it.
    Please give me the best solution you think of any other alternative which is right or please provide me with steps to clear by using F-04
    Your help will be greatly appreciated.
    Kind regards
    LSD

    Thanks Atif & Sanil for your quick reply,
    But the problem is when I enter the GL account, it is giving me error, stating that "there are no open items managed in Account XXXXXXXXXX". I have checked the control data in FS00 and only Line item Display is ticked.
    I have recently joined this place, and the items are open from the day SAP was implemented. So they do not use Auto clearing.
    Some points I am thinking below,
    Q1. Does it mean that the control data must have open item to be "ticked"?
    Q2. The A/c i am trying to clear is Non-current Trade receivables, so can we clear such accounts.
    In terms of Clearing the data from 2007 till date,
    Q3. Do I have to open the old periods or can I clear in current period.
    Further info will be very helpful.
    Cheers

  • Running Aging reports based on Document date in 2007

    Hi All,
    I have an issue while running the Receivables aging report in the 2007 version. The customer usually runs the reports based on the document date. Document date holds more importance in their case.
    However, in the 2007 version, the aging report is totally governed by the posting date. For example, if I change the aging date, the posting date also changes to the aging date and viceversa. If I want to change the aging date to 01/31/09, the posting date u2018Tou2019 automatically changes to 01/31/09 and when we run the report, it will bring in all transactions until the posting date of 01/31/09.
    But, the requirement is to leave the posting date as blank and give the document date u2018Tou2019 01/31/09. This will then pull all transactions until the document date of 01/31/09 irrespective of the posting date.
    As a result, when you run the balance sheet with the document date of 01/31/09, receivables show a different balance. This discrepancy is due to the fact that AR Receivable aging report forces to keep the Aging date = Posting date.
    This was not the case in SAP 2005 version where we were allowed to key in the aging date and the document date to get results based on document date.
    This is very critical as they have recently upgraded from 2005 to 2007 and they are unable to reconcile the balances out of Balance sheet and Aging.
    Please advise.
    Thanks,
    Payal

    Hi Jitin,
    We tried that as well but no luck. There is still a discrepency between what the aging shows and what the BS shows. When we put the Aging date as 01/31/09 and Document date as 01/3109, the posting date 'To' is automatically filled with 01/31/09, so it basically searches for all transactions with the posting date 01/31/09 and document date 01/31/09. This is not the requirement as we do not want to consider the posting date at all while running the aging.
    I also have some screenshots if I can share. I am not sure if I should report this to SAP for further investigation or am I missing something here.
    Thanks for your help.
    Regards,
    Payal
    Edited by: Rui Pereira on May 1, 2009 10:48 AM

  • I Try to open an Indesign document. The message: it is made in a newer version. Go tot CC: Help/Give your Adobe id/Start Indesign again and try to open the document. This doesn't work. How to solve this problem?

    I Try to open an Indesign document. The message: it is made in a newer version. Go tot CC: Help/Give your Adobe id/Start Indesign again and try to open the document. This doesn’t work. How to solve this problem?

    What version are you running?
    What version was it made with?

Maybe you are looking for

  • Advice on importing Hi-8

    I have an iMac G5 and I'm running iLife 08 with iMovie. I need some advice on how I might import a bunch of old Hi8 video tapes from an old video camera. The camera has S-video out as well as the analog video/audio phono jacks. I'm assuming that I ne

  • Netflix, Safari, Silverlight crashing on "Add to Your List"

    I use Safari 6.0.3 on OS X 10.8.2 on a mid-2009 MBP. When adding movies + tvseries to Netflix's List (using the "Add to Your List"-button), I have experienced 3 kernel panics. Anyone have any suggestions as to what to do? Most of the time the reactio

  • Could not resolve mx:DataGrid to a component implementation

    I'm very new at this. Building a mobile app. Running the latest Flex/FlashBuilder (4.6). When I compile I get this error: "could not resolve <mx:DataGrid> to a component implementation". Here is my code: <?xml version="1.0" encoding="utf-8"?> <!-- dp

  • I need a quick response

    HI, i have to recomand some solution for. they have two databases all is running fine but there is one table which they want to sync every week. so whats your suggestion in this regards. what i have recomands is incrmental export import but that is n

  • How to move xmlElement to Footnote

    Hi All, I have tried this var tmpfootnote=footnoteref[fref].insertionPoints.item(-1).footnotes.add(); footnotetext[fele].texts[0].move(LocationOptions.after, tmpfootnote.insertionPoints[tmpfootnote.insertionPoints.length-1]); This code will move only