Skip to Content
Author's profile photo Fabio Almeida

To have or not to have realistic quantity on stock? This is the question…

Driving through the long road of MM world, I heard similar questions many times from consultants, customer and colleagues asking how to overcome error of
unrealistic stock value at SAP System.

Well, different customers, different business scenarios, different behaviours. But, I would say that in most of cases we can use some workarounds to avoid errors from this nature.

Especially talking about error messages ‘M7 304’ and ‘M7 308’.
M7304 – Stock value and quantity unrealistic: & / &
M7308 – Stock value and qty are unrealistic: & / & -> see long text

Let’s talk about these above errors in details:


This error is raised in the following piece of code:


     IF ( w-salk3 < 0 AND NOT w-lbkum < 0 ) OR
         ( w-salk3 > 0 AND NOT w-lbkum > 0 ).
        WRITE w-salk3 CURRENCY i_waers TO l_salk3_message.
        WRITE w-lbkum UNIT i_meins TO l_lbkum_message.
        MESSAGE e304 WITH l_salk3_message l_lbkum_message.

If the field MBEW-SALK3 (Total value on stock) is becoming lower than zero and then error is raised.

– Common reason:
If the Tax condition is customized as non-deductible taxes, then the amounts are added to the material value and – during goods movement –
and subtracted from the stock value. If the same material was previously posted to the stock with deductible taxes, a negative balance can result.

– Comment:
A negative stock balance cannot be prevented by allowing negative stock in the material master. A negative stock value is only tolerated in
conjunction with negative stock quantity but not with zero stock quantity.

– General solution:
A withdrawal of stock material should be posted with the same tax settings as the placement of material into the stock, i.e., in both cases ‘deductible’ or in both cases ‘non-deductible’. The non-deduct. taxes that are due are to be added to the material value on the receiving-plant side, at goods receipt thus.

– Workaround:
A possible way to overcome the error in this particular case is to increase the stock temporarily (movement type 561), so the stock amount is not zero after goods issue, and to correct for the stock increase after the goods issue (movement type 562).

– Another possibility is MR22 transaction.
Use the function “Debit/credit material” (contained in Valuation menu) to post a correspondingly high material debit (if value is negative) or
material credit (if value is positive) for the material. Then carry out the goods movement. When you use this procedure, the system creates a
revaluation document.


Error ‘M7 308’ is usually caused by a rounding issue.
In case, it is because the total quantity on stock is not matching to the total value on stock.

In order to solve this error we should recalculate the total value.

And to do that we have to post and re-post a price change in transaction MR21.

– go to MM03 transaction and check the price in Accounting 1 view.

–  then, go to MR21 transaction and post a price change by increasing the price in 0,01. For example, if price is 100,00 USD change to 100,01

– open MR21 transaction once again and then post a price change by reducing the price in 0,01. For example, from 100,01 USD to 100,00.

Once these price changes have been posted the total value on stock will be adjusted and then you should be able to make any necessary goods
movements for this material.

See the following notes as reference:
1026379 – MB5K: Misleading error message 045 due to rounding
1708261 – Error ‘M7 308’ is raised when trying to post a goods movement

Best Regards,
Fábio Almeida
SAP Consultant – ERP MM

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Giancarlo Herrera Castro
      Giancarlo Herrera Castro

      Hi Fabio, please if you can help us to something. In my client, they haved a M7304 message for VL09, for this we are trying to reverse a STO in two steps in this transaction with the inbound delivery, has a 641 movement. If the STO process doesn't move a stock values, if is statistical, why is probably to send that message? The PO for STO only has a freight condition, and is statistical too.

      Author's profile photo Mahmoud Sami
      Mahmoud Sami

      Hi Giancarlo,
      The reply is a little bit late, but it may help someone.
      We solved a similar issue by implementing noteĀ  2239039.