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

Close

How To Fix WSTRN018 - Specify either a total quantity or a quantity per site


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WSTRN - Message for Prepack Creation and Planning Dialog

  • Message number: 018

  • Message text: Specify either a total quantity or a quantity per site

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WSTRN018 - Specify either a total quantity or a quantity per site ?

    SAP Error Message:
    WSTRN018 - Specify either a total quantity or a quantity per site


    Cause:

    This error occurs when you are trying to enter a stock transfer order or a related transaction in SAP, and the system requires you to specify either:

    • A total quantity for the entire transfer, or
    • A quantity per site (plant/storage location)

    However, both fields are either left blank or filled incorrectly, causing the system to be unable to determine the quantity to be transferred.

    In other words, the system expects you to provide either a total quantity for the transfer or detailed quantities per site, but not both or neither.


    When does it typically occur?

    • During creation or processing of stock transport orders (STO) or stock transfer postings.
    • When entering delivery quantities in stock transport or intercompany stock transfer scenarios.
    • When using transaction codes related to stock transfer like ME21N (Purchase Order for STO), VL10B (Purchase Orders Due for Delivery), or MIGO (Goods Movement).

    Solution:

    • Specify either a total quantity in the header or item level quantity field, or
    • Specify quantities per site (plant/storage location) if the transfer involves multiple sites.

    Steps to resolve:

    1. Check the quantity fields:

      • If you want to transfer a total quantity, enter it in the total quantity field and leave the per-site quantity fields blank.
      • If you want to specify quantities per site, enter the quantities in the respective site fields and leave the total quantity field blank.
    2. Avoid entering both:
      Do not enter both total quantity and per-site quantities simultaneously, as this causes ambiguity.

    3. Review the transaction screen:
      Look for tabs or sections where quantities can be entered per site or as a total and ensure only one method is used.

    4. Consult configuration if needed:
      If the system behavior is unexpected, check with your SAP MM/SD consultant or configuration team to verify if the system is set up correctly for stock transfers.


    Related Information:

    • Message Class: WSTRN (Stock Transfer)
    • Transaction Codes: ME21N, VL10B, MIGO, LT01, etc.
    • SAP Notes: Sometimes SAP Notes related to stock transfer quantity handling may provide additional fixes or patches.
    • Documentation: Refer to SAP MM and SD module documentation on stock transport orders and stock transfer postings.

    Summary:

    WSTRN018 means you must provide either a total quantity or quantities per site for the stock transfer, but not both or neither. Correct the input accordingly to proceed.


    If you need further assistance, please provide the transaction code and the exact step where the error occurs.

    • 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