domingo, 30 de abril de 2023

What Is the Difference Between Moving Average Price and Standard Price in SAP?

 In any SAP system (SAP ERP or SAP S/4HANA), there are two basic types of price control for materials: moving average price and standard price. In this blog post, we’ll discuss the differences between the two.

 

There are a few complex scenarios in which you could be purchasing different types of materials and dealing with goods receipts or invoice receipts in an SAP system. General ledger (GL) accounts are posted differently in the different cases, and the sequence of goods receipt and invoice receipt also increases the complexity. Sometimes, a big challenge that a finance team faces is to understand the financial document entries in the long purchase order (PO) history, and communicate them with other business teams. It is also a challenge to consultants to explain system logic to finance teams in such scenarios.

 

Accounting screen

Before getting into too many details, let’s first discuss what their different meanings are.

 

Moving Average Price

Moving average price is an inventory costing method where the average price is calculated after obtaining the goods. The average cost of each inventory item in stock is re-calculated after every inventory purchase.

 

To calculate it, you would use this formula:

 

Moving Average Price = (Products On Hand Value + New Products Value) / Total Number of Products

 

The moving average price is a constantly recurring calculation, which could potentially change with each invoice or goods receipt.

 

Standard Price

Standard price is a predetermined price, and both receipts and issues will be valued at this price. It also remains constant for a certain amount of time, such as a quarter, a month, or some other timeframe. This method follows the standard costing technique of accounting, or the practice of substituting an expected cost for an actual cost in the accounting records. Subsequently, variances are recorded to show the difference between the expected and actual costs. Compared to collecting actual costs, standard costs could be used as a close approximation to actual costs and would have significant accounting efficiencies.

 

In the common practice, raw materials use the moving average price and semi-finished/finished products use the standard price.

 

If either the moving average price or standard price method is selected in the material master record, the SAP system just follows the accounting rules to do the inventory cost postings. The logic itself of moving average price or standard price is mainly the SAP standard function. Meanwhile, the system still needs some basic MM-FI integration configurations for GL accounts.

 

Example

Let’s take a look at an example of how the SAP system proceeds using the moving average price.

 

Moving average price example

 

When the “V” value is selected in the price control field of the material master record, the system will use the moving average price method for this material. In the figure above, purchasing prices are different in each acquisition. The system would post an inventory balance based on each purchasing price, and update the latest moving average price in the material master record. Total stock and total value are also updated accordingly. Since goods issues are usually valued with the current moving average cost, they do not normally affect the inventory cost.

 

Compare this to the standard price example below.

 

Standard price example

**Booked inventory value = Standard Price * Units count

**Price difference = (Purchasing price – Standard price) * Units count

 

When the “S” value is selected in the price control field of the material master record, the SAP system will use the standard price method for this material. As shown in the standard price table above, even when purchasing prices are different, the system always uses the fixed standard price to post inventory balance in the given period. The differences between purchasing price and standard price are posted to a price difference account. Total stock and total value are also updated by standard price in material master record. In this case, goods issues are usually valued with the standard price.

 

Business Scenarios

Now, let’s get into detail about some business scenarios in the PO purchasing process, showing the differences between moving average price and standard price.

 

Let’s discuss moving average cost scenarios first. Moving average cost mainly has two scenarios, which are material with moving average price (MAP) with stock coverage and material with MAP without stock coverage.

 

Material with MAP with Stock Coverage

The business background: At the beginning of its January 1st fiscal year, a company reports a beginning inventory of 100 units at a cost of $1.20 per unit. Over the first quarter, the company purchases of 100 units at a cost of $1.30 on January 15th. The invoice shows $140 total amount.

 

The PO unit price is $1.30 and the PO quantity is 100 pieces. Depending on the sequence of goods receipt (GR) and inventory receipt (IR), the double entry of financial documents would be a little different. The material with “V” value in the price control field has a moving average price of $1.20/piece initially.

 

If the earlier than the invoice receipt, GR posts an inventory balance based on the PO unit price. The stock adds 100 pieces. Then, the company receives the invoice. The IR posts a total of $140 to the vendor account in the credit side. The GR/IR clearing account is cleared based on the purchase order price. The total variance $10 between the PO price and invoice price is posted to the debit side of the inventory account. Then the total balance of inventory is $140. The figure below shows the full document double entry in the GR and IR posting steps.

 

Double entry

 

If the invoice receipt is posted before the goods receipt, the invoice price becomes the basis for the posting. The goods receipt that follows is posted with the value posted at the invoice receipt.

 

In this case, IR posts the invoice total amount of $140 to the vendor account and GR/IR account. Then, the company receives the goods and posts $140 to the inventory account with the invoice price. The GR/IR account is also cleared with the invoice price. The total balance of inventory is also $140. This figure shows the full document double entry in the IR and GR posting steps.

 

Double entry

 

Material with MAP without Stock Coverage

If the stock of a material is less than the quantity specified in the invoice because goods were withdrawn between GR and IR, the stock account is only debited or credited for the actual stock. The remaining amount is posted to a price differences account.

 

Suppose the general business background is the same as the above and is using the moving average price. The only difference in reporting is that there is a goods withdrawal with quantity 120 pieces from the total quantity of 200 pieces between GR and IR. The latest moving average price is $1.25 at the time of this withdrawal. $150 is posted to the credit side of inventory. The $10 variance between the PO price and invoice price is divided into two parts. Since only 80 pieces of the material are in stock at the time of invoice receipt, the price difference is debited with $8 to the material for 80 pieces only. The remaining $2 is posted to expense from price difference. This figure shows the full document double entry.

 

Double entry

 

Standard Price Scenario

Let’s keep the same business scenario using the standard price option. The difference is that the price control of the material selects the “S” value, which uses a standard price of $1.20/piece initially.

 

As shown in the figure below, GR comes before IR. The GR posts inventory with the standard price, while GR/IR is posted based on PO price. The variance of $10 between GR and PO price is posted to expense from a price difference account. Then, IR posts the total invoice of $140 into the vendor account. GR/IR is cleared based on PO Price. The variance of $10 between the IR and PO price is posted into the debit side of expense from the price difference account.

 

Variance

 

As shown in the final figure, IR comes earlier than GR. IR posts the total invoice of $140 into vendor account. GR/IR is then posted based on invoice price. Then, GR posts inventory with the standard price. GR/IR is cleared based on the invoice price. The variance of $20 between the IR price and standard price is posted into the debit side of expense from the price difference account.

 

In other cases, if the PO price is less than standard price, or the invoice price is less than the PO price, revenue account from price difference would be posted instead of expense from price difference.

 

Reverse Account

 

Conclusion

Inventory cost calculation in SAP S/4HANA is a fundamental piece of functionality that can help companies manage inventory well. It is important to have a deep understanding of the scenarios based on the sequence of goods receipt and invoice receipt. In this post, we talked about the two basic types—moving average price and standard price—and how they behave in an SAP system.


Source: https://blog.sap-press.com/what-is-the-difference-between-moving-average-price-and-standard-price-in-sap?utm_campaign=Blog&utm_content=245016330&utm_medium=social&utm_source=linkedin&hss_channel=lcp-5358203

Material Stock and Valuation History tables – how to read them

 All stock and valuation tables in SAP have as well history tables since release 45. All those tables have the same name as the standard tables, but with a H at the end.

Standard tableHistory tableFunction module
Material ValuationMBEWMBEWHMBEW_EXTEND
Storage Location Data for MaterialMARDMARDHMARD_EXTEND
Batch StocksMCHBMCHBHMCHB_EXTEND
Project Stock ValuationQBEWQBEWHQBEW_EXTEND
Special Stocks with CustomerMSKUMSKUHMSKU_EXTEND
Special Stocks with VendorMSLBMSLBHMSLB_EXTEND
Sales Order Stock ValuationEBEWEBEWHEBEW_EXTEND
Special Stocks from VendorMKOLMKOLHMKOL_EXTEND
Project StockMSPRMSPRHMSPR_EXTEND
Material Master Plant dataMARCMARCHMARC_EXTEND
and some more


This was implemented to speed up the period closing.

But how these tables are updated is for many users cumbersome, they expect to see a record for each month in those history tables, but SAP does it differently. SAP explains the logic in Note 193554 – Stock/valuation data of previous periods still we can see in many discussions that this note was not fully understood.

SAP does not update the history table when you execute MMPV to close the MM period.

The History tables are updated with first movement after a period closure.

If there is no movement for several months, then you will not see any history record for all those months that have past.

SAP writes only a history record for the month preceding a change in stock or value.

All the periods between 2 records in a history table had the same stock/value all the time, hence you can take the value for those periods from the record following these missing periods.

Here we see 8 history records for the valuation data MBEW of one material in one plant, created over a time span of 5 years:

many would expect to see 60 records for 5 years, but we had only 8 months with changes in those 5 years, hence only 8 history records were created.


MB51_.JPG

And as proof a screen shot from MB51 Material Document list for the same material and plant:

MB51.JPG

You can see that the first movement to this material happened on May 22, 2007. This event triggered the creation of the history record for period 004 2007.

The history record tells you that the stock and value for this material was zero at the end of April 2007

The next month with movements was December 2007, which caused a history record for November 2007

The movement from April 8, 2008 triggered the creation of 2 history records: for period 003 2008, and because there was a year change in between a record for period 12 2007

The  movement type 301K (marked yellow) did not trigger any update in MBEWH table, because consignment stock has no value, hence no change to valuation, which means MBEW table is not affected.

Finally we have movements in May 2011, and the first movement caused the creation of year end records of 2009 and 2010 and for the previous month 04 2011.

If you need to develop own ABAP reports with month end stock then you have to make use of function modules that understand this complex logic. The name of these function modules is starting with the table name followed by _EXTEND (see table)

To retrieve previous period data for all materials in valuation area ZRAG the coding should be like that


select * from mbew into table mbew_tab where bwkey = ‘ZRAG’.

call function ‘MBEW_EXTEND’

    exporting

      xvper = ‘X’

    tables

      mbew_tab = mbew_tab.

Please read the SAP Note 415349 – Usage of modules XXXX_EXTEND for previous period values for detailed information because the function modules are not released.


Source: https://blogs.sap.com/2013/06/06/material-stock-and-valuation-history-tables-how-to-read-them/

EWM Monitor- New feature to track Shipped HU contents- Customer Improvement.

 Customer Connection - Improvement Request 283469 - /SCWM/MON: Display Content Information for posted HUs.

SAP has released new note related to above issue to display the content of HU after HUs have been GIed. Earlier it was cumbersome for customers to find the content of HUs which has been dispatches from warehouse, customers had to execute transaction /SCWM/PRDO for each handling unit to get those hu-contents. As a result the analysis is complex and takes long.

With SAP note 3267595 - Contents of dispatched HUs cannot be displayed in EWM Monitor can be deployed and customers can benefit form this extended feature. Note is compatible from 1709 to higher version in S/4 HANA system. Note is also compatible in classic SCM 9.4, 9.5( Please check note for further information).

While implementing the above note in S/4 HANA 2022 Sandbox system, 2 more dependent notes are pre-requisites.

  • 3138667 - HU content not shown completely.
  • 3200901 - Handling Unit history query by product.

Please check respective system for dependent notes.

After Note Implementation:

The content of dispatched HUs (HUs which have been posted goods issue) can be checked in node 'Documents->Handling Unit' of the Warehouse Management Monitor without further navigation

No alt text provided for this image
No alt text provided for this image

Stay tuned for more new features & latest functionalities of EWM on S/4 HANA.

All testing is performed on S/4 HANA 2022 sandbox system.


Source: https://www.linkedin.com/pulse/ewm-monitor-new-feature-track-shipped-hu-contents-customer-mishra/?utm_source=share&utm_medium=member_ios&utm_campaign=share_via