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

Close

How To Fix W7058 - Stocks still exist for material &1 in plant &2 in storage location &3


SAP Error Message - Details

  • Message type: E = Error

  • Message class: W7 - Message Class for Value-Only Based Inventory Management

  • Message number: 058

  • Message text: Stocks still exist for material &1 in plant &2 in storage location &3

  • Show details Hide details
  • What causes this issue?

    Material &V1& still has stocks in plant &V2&, storage location &V3&.
    The current transaction would lead to stock inconsistencies.

    System Response

    INCLUDE ISR_VERARBEITUNG

    How to fix this error?

    Check your entries. If necessary, make the required transfer postings
    for material &V1& in plant &V2&.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message W7058 - Stocks still exist for material &1 in plant &2 in storage location &3 ?

    Certainly! Here's a detailed explanation for the SAP error message W7058: "Stocks still exist for material &1 in plant &2 in storage location &3":


    Error Message:

    W7058 - Stocks still exist for material &1 in plant &2 in storage location &3


    Cause:

    This warning message appears when you attempt to delete or flag a material for deletion in SAP, but there are still stock quantities available for that material in the specified plant and storage location.

    • The system checks the inventory levels before allowing deletion or certain changes.
    • If any stock (unrestricted, quality inspection, blocked stock, etc.) exists for the material in the given plant and storage location, the system prevents the deletion or issues this warning.
    • This is a safeguard to avoid inconsistencies in inventory management and material master data.

    When does it occur?

    • When trying to delete a material master record.
    • When trying to flag a material for deletion at plant/storage location level.
    • When performing certain inventory or material master changes that require zero stock.

    Solution:

    To resolve this warning, you need to ensure that no stock exists for the material in the specified plant and storage location.

    Steps to resolve:

    1. Check Stock Levels:

      • Use transaction MMBE (Stock Overview) or MB52 (List Warehouse Stocks on Hand) to check the stock quantities for the material in the plant and storage location.
    2. Clear Stock:

      • If stock exists, you need to clear it by:
        • Goods Issue: Issue the stock to consumption or scrap.
        • Stock Transfer: Transfer stock to another location or plant.
        • Physical Inventory: Post inventory differences if stock is incorrect.
        • Scrap Stock: If stock is obsolete or damaged.
    3. Check Stock Types:

      • Make sure to check all stock types:
        • Unrestricted use
        • Quality inspection
        • Blocked stock
        • Stock in transit
    4. After stock is zero:

      • Retry the deletion or flagging process.
      • The warning should no longer appear.

    Additional Information:

    • Message Class: W7 (Material Management)
    • Message Number: 058
    • This is a warning message, not an error, so in some cases, you might be able to proceed, but it is generally recommended to clear stock first.
    • If you are sure that the stock data is incorrect or obsolete, consider performing a physical inventory adjustment or consult with your inventory management team.
    • Sometimes, stock might be blocked or in quality inspection, so ensure to check all stock categories.
    • If the material is used in other processes (e.g., open purchase orders, reservations), those might also prevent deletion, but this message specifically relates to stock quantities.

    Summary:

    Aspect Details
    Cause Stock still exists for the material in the specified plant and storage location.
    Effect Material deletion or flagging for deletion is blocked or warned.
    Solution Check and clear all stock for the material in the plant/storage location before deletion.
    Transactions to check stock MMBE, MB52, MB1A (Goods Issue), MB1B (Transfer Posting)

    If you need help with specific transactions or steps to clear stock, feel free to ask!

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