Do you have any question about this error?
Message type: E = Error
Message class: M8 - Invoice Verification/Valuation
Message number: 787
Message text: & & not copied (Moving av. price for material & would be negative)
Purchase order &V1&, item &V2& is not copied over to the document,
since posting this item would lead to a negative moving average price
for material &V3&.
The system does not permit a negative moving average price.
Check your entry in the field <LS>Amount</>.
If your entry was wrong, acknowledge the next message. From the
document overview screen choose <LS>Goto -> Open order item</>. A list
appears of items that were not copied over. At the end of the list you
will find purchase order &V1&, item &V2& and the amount you entered.
Correct this amount.
If the amount you entered was correct, take a look at:
the stock value of the material by choosing
( Environment -> Master data info -> Display material)
the posting history by choosing
(Environment -> Line items -> By material).
You may have to reverse postings that were made in the past (for
example, because goods receipts were wrongly valuated or price changes
were made wrongly) before you carry out the current posting.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message M8787 indicates that there is an issue with the moving average price (MAP) for a material. Specifically, the error states that the moving average price for the material would be negative, which is not allowed in SAP. This typically occurs during inventory management processes, such as goods movements, when the system attempts to calculate the moving average price based on the current stock and the value of the goods being moved.
Cause:
Negative Stock: The most common cause of this error is that the system is trying to process a transaction that would result in a negative stock level for the material. This can happen if you are trying to post a goods issue or a transfer that exceeds the available stock.
Incorrect Valuation: If the valuation of the material is incorrect or if there are inconsistencies in the material master data, it can lead to a situation where the moving average price calculation results in a negative value.
Stock Adjustments: If there have been manual adjustments to stock levels or prices that are not in line with the actual inventory, this can also trigger the error.
Solution:
Check Stock Levels: Verify the current stock levels for the material in question. Ensure that there is enough stock available to cover the transaction you are trying to post.
Review Material Master Data: Check the material master data for any inconsistencies, especially in the valuation class and moving average price settings. Ensure that the valuation method is set correctly.
Adjust Inventory: If there are discrepancies in stock levels, you may need to perform a stock adjustment to correct the inventory levels before proceeding with the transaction.
Transaction Review: Review the transaction you are trying to post. Ensure that it is valid and that it does not exceed the available stock.
Consult with Finance: If the issue persists, it may be necessary to consult with your finance team to ensure that the valuation and pricing methods are correctly configured in the system.
Related Information:
MMBE
(Stock Overview) to check stock levels and MM03
(Display Material) to review material master data.By following these steps, you should be able to identify the cause of the M8787 error and implement a solution to resolve it.
Get instant SAP help. Start your 7-day free trial now.
Feature | Free Access | Free Trial |
---|---|---|
Basic SAP error explanation | ![]() |
![]() |
Step-by-Step Usage Guide | ![]() |
![]() |
Interactive SAP Coach Assistance | ![]() |
![]() |
AI Troubleshooting for T-Code Errors | ![]() |
![]() |
M8786 Price change more than & % in previous year for material &
DEFINE &A& = 'Valuation type:'. What causes this issue? Whe...
M8785 Price change more than & % in previous period for material &
DEFINE &A& = 'valuation type:'. What causes this issue? Whe...
M8788 Delivery costs for & & will not be copied
What causes this issue? Delivery costs for item &V2& of purchase order ...
M8789 Stock value and quantity are unrealistic: & & & & -> see long text
What causes this issue? Das System hat eine Dateninkonsistenz im Materialstamms...
SAP messages fall into 3 different categories: Error messages
(message type = E), Warnings (W) or Informational (I) messages.
An error message will prevent you from continuing your work - it is a hard stop and you need to fix the error before you can proceed. A warning message will stop your work, however, you can then bypass the warning by pressing the Enter key on your keyboard. That said, it is still good practice to investigate the cause of the warning message and address it. An information message will not stop your work and is truly just for informational purposes.
Click on this link to search all SAP messages.