Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WG007 - Order date missing in doc. header for req.no & . Today's date will be set


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WG - Messages for store order and investment buy

  • Message number: 007

  • Message text: Order date missing in doc. header for req.no & . Today's date will be set

  • Show details Hide details
  • What causes this issue?

    The purchase order date in the purchase order is missing.

    System Response

    The system date is set as a purchase order date.

    How to fix this error?

    If you desire an alternative date, this should be transferred into
    the store order.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WG007 - Order date missing in doc. header for req.no & . Today's date will be set ?

    The SAP error message:

    WG007: Order date missing in doc. header for req.no & . Today's date will be set


    Cause:

    This message occurs when a purchase requisition (PR) or a related document is created or processed without an order date (also called document date) in the header. The system expects an order date to be present for proper processing and validation. Since the order date is missing, SAP automatically assigns the current date (today's date) as the order date to proceed.


    Explanation:

    • The order date (document date) is a mandatory field in many SAP documents such as purchase requisitions, purchase orders, and goods receipts.
    • It is used for determining pricing conditions, delivery schedules, and for reporting purposes.
    • If the order date is missing in the document header, SAP cannot correctly process the document.
    • To avoid processing errors, SAP sets the order date to the current date and issues this warning message.

    Solution:

    1. Check the Purchase Requisition or Document Header:

      • Go to the transaction where the PR or document is created or maintained (e.g., ME51N for PR).
      • Verify if the Order Date (Document Date) field is filled in the header.
    2. Manually Enter the Order Date:

      • If missing, enter the correct order date manually.
      • The order date should reflect the actual date of the document creation or the intended date for the transaction.
    3. Check User Exits or Custom Code:

      • Sometimes, custom enhancements or user exits might clear or fail to set the order date.
      • Review any custom code or BAdIs related to document creation to ensure the order date is properly set.
    4. Check Integration Interfaces:

      • If the document is created via an interface (e.g., IDoc, BAPI), ensure the order date is passed correctly.
      • Missing or incorrect data mapping can cause the order date to be blank.
    5. System Settings:

      • Verify if there are any system settings or validations that might affect the order date field.
      • Usually, the order date is mandatory, but if not, consider enforcing it via configuration or validation.

    Related Information:

    • Transaction Codes:

      • ME51N – Create Purchase Requisition
      • ME52N – Change Purchase Requisition
      • ME53N – Display Purchase Requisition
      • ME21N – Create Purchase Order
    • Fields:

      • Document Date (Order Date) is usually found in the header section of the document.
    • SAP Notes:

      • Check SAP Notes related to WG007 for any known issues or patches.
    • Impact:

      • If the order date is incorrect or missing, it can affect pricing, delivery scheduling, and reporting.
      • Automatic setting to today's date may cause discrepancies in historical data or audit trails.

    Summary:

    • Cause: Missing order date in document header.
    • Effect: SAP sets today's date automatically and issues WG007 warning.
    • Solution: Enter the correct order date manually or fix the process/interface that creates the document without the date.

    If you want, I can help you with the exact steps to check or fix this in your SAP system.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker