How To Fix QA158 - Certain purchase orders are still open


SAP Error Message - Details

  • Message type: E = Error

  • Message class: QA - QM : Inspection lots

  • Message number: 158

  • Message text: Certain purchase orders are still open

  • Show details Hide details
  • What causes this issue?

    QM should be either activated or deactivated for goods receipt. There
    are still open orders for this material.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message QA158 - Certain purchase orders are still open ?

    The SAP error message QA158 indicates that certain purchase orders (POs) are still open, which prevents the completion of a quality inspection or the processing of a goods receipt. This error typically arises in the context of quality management (QM) when you are trying to perform actions that require all related purchase orders to be closed or fully processed.

    Cause:

    1. Open Purchase Orders: The primary cause of this error is that there are one or more purchase orders associated with the material that are still open. This means that the goods have not been received, or the purchase order has not been fully processed.
    2. Incomplete Goods Receipt: If the goods receipt for the purchase order has not been completed, the system will flag this as an issue.
    3. Quality Inspection Not Completed: If the quality inspection process has not been finalized for the goods received against the purchase order, it can also lead to this error.
    4. Pending Invoices: Sometimes, pending invoices related to the purchase orders can also cause this error.

    Solution:

    1. Check Open Purchase Orders:

      • Use transaction code ME2N or ME2L to list the open purchase orders related to the material in question.
      • Identify the specific purchase orders that are still open.
    2. Complete Goods Receipt:

      • If the goods receipt is pending, complete it using transaction code MIGO. Ensure that the goods are received against the correct purchase order.
    3. Finalize Quality Inspection:

      • If a quality inspection is pending, ensure that it is completed. You can use transaction code QA32 to process the inspection lots and finalize the results.
    4. Close Purchase Orders:

      • If the purchase orders are no longer needed, consider closing them. This can be done through transaction code ME22N (Change Purchase Order) by setting the status to "Closed."
    5. Review Invoices:

      • Check if there are any pending invoices related to the purchase orders. If so, ensure that they are processed.

    Related Information:

    • Transaction Codes:

      • ME2N: Display Purchase Orders by PO Number
      • ME2L: Display Purchase Orders by Vendor
      • MIGO: Goods Movement
      • QA32: Change Inspection Lot
      • ME22N: Change Purchase Order
    • Quality Management (QM): Understanding the quality management processes in SAP can help in troubleshooting related issues. Familiarize yourself with the quality inspection process and how it interacts with procurement.

    • SAP Notes: Check for any relevant SAP Notes that may address specific issues or provide additional guidance related to error QA158.

    By following these steps, you should be able to resolve the QA158 error and proceed with your quality inspection or goods receipt process.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:
  • QA157 Tables QAMV and QAPO are inconsistent
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • QA156 Error deleting QMAT : & & &
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • QA159 No operation data is available
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • QA160 Internal error for & MEMORY
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant