SAP MM Account Determination: OBYC Guide

Search Posts

BY Ashish Sampat

Ashish

 

Introduction

SAP MM account determination controls how goods movements in Materials Management (MM) automatically generate postings in Financial Accounting (FI). It ensures that inventory receipts, goods issues, and material consumption are recorded in the appropriate general ledger (G/L) accounts.

Transaction OBYC is used to configure automatic account determination in SAP ECC and SAP S/4HANA Private Edition. The system determines the appropriate G/L accounts using transaction keys, valuation classes, account modifiers, and other configuration settings.

For example, when raw materials are received against a purchase order using movement type 101, SAP typically debits inventory and credits the Goods Receipt/Invoice Receipt (GR/IR) clearing account. When materials are issued to a production order using movement type 261, SAP credits inventory and debits material consumption.

This article explains how SAP MM-FI account determination works, including OBYC configuration, transaction keys BSX, WRX, and GBB, valuation classes, and the accounting entries generated by common movement types.

Table of Contents

  1. Introduction
  2. Account Determination Configuration
  3. Material Consumption to a Production Order in SAP
  4. Movement Types and Accounting Entries
  5. MM-FI Account Determination in SAP S/4HANA
  6. Key Takeaways
  7. About the Author
  8. Glossary

Account Determination Configuration

Transaction OBYC defines automatic account determination for the integration of Materials Management (MM) with Financial Accounting (FI) in SAP ECC and SAP S/4HANA Private Edition.

Transaction keys identify the type of accounting transaction and determine which G/L accounts are used for goods movements. Common examples include BSX for inventory postings, WRX for GR/IR clearing, and GBB for offsetting entries to inventory postings.

Account modifiers, also called account grouping codes, further differentiate account determination within certain transaction keys. For example, account modifier VBR is commonly used with transaction key GBB to determine material consumption accounts.

Valuation classes group materials for automatic account determination. Together with the transaction key, valuation grouping code, and applicable account modifier, the valuation class helps determine which G/L account is selected.

For more information about how SAP values inventory, see our guide to choosing standard or moving average price in SAP.

Automatic account determination is configured through transaction OBYC, with the corresponding G/L account assignments stored in table T030. Together with the relevant material master and configuration settings, these assignments enable SAP to generate accounting entries automatically when goods movements are posted.

To display the G/L account assignments maintained through OBYC, see our guide to SAP Automatic Account Determination using T030 and SE16N.


 Figure 1: SAP OBYC Configuration for Inventory Account Determination (BSX)

When raw materials are received against a purchase order using movement type 101, SAP automatically generates the corresponding accounting entries. Transaction key BSX determines the inventory G/L account based on the material's valuation class and applicable account determination settings. Transaction key WRX determines the GR/IR clearing account.

For example, when a raw material assigned to valuation class 3000 is received, SAP typically debits the corresponding inventory account and credits the GR/IR clearing account. These G/L account assignments are configured through transaction OBYC, as illustrated in Figure 1.

 

Material Consumption to a Production Order in SAP

 

Figure 2: SAP OBYC Configuration for GBB/VBR – Material Consumption to a Production Order

 

When raw materials are issued to a production order using movement type 261, SAP automatically generates the corresponding accounting entries. Transaction key BSX determines the inventory account, while transaction key GBB with account modifier VBR determines the material consumption account.

The system credits the raw material inventory account and debits the material consumption account, with the production order receiving the corresponding cost assignment. The relevant G/L accounts are determined using the valuation class and automatic account determination settings maintained in transaction OBYC, as illustrated in Figure 2.

Movement Types and Accounting Entries

SAP movement types control how goods movements affect inventory quantities, values, and accounting entries. Each movement type represents a specific business transaction, such as a goods receipt, goods issue, stock transfer, or inventory adjustment.

Automatic account determination is configured through transaction OBYC in SAP ECC and SAP S/4HANA Private Edition. Once configured, SAP automatically determines the appropriate G/L accounts based on the movement type, transaction key, valuation class, and applicable account modifier.

For more information about how purchase price differences are handled in SAP, see our guide to posting purchase price variances to Purchasing.

Account determination settings should be thoroughly tested during implementation and whenever configuration changes are made. Incorrect settings can result in inaccurate inventory valuation, material consumption postings, and financial reporting.

Figure 3 summarizes common SAP movement types and their corresponding accounting entries. Scroll horizontally to view all transaction keys and G/L account assignments.

The accounting entries in Figure 3 illustrate typical SAP MM-FI postings for selected goods movements. Actual G/L account assignments depend on the chart of accounts, valuation class, transaction keys, account modifiers, and system configuration. Some transactions, particularly subcontracting and production-related goods movements, may generate additional accounting entries.

ProcessMovement Type – DescriptionDebit Transaction Key / Account ModifierDebit G/LDebit G/L DescriptionCredit Transaction Key / Account ModifierCredit G/LCredit G/L Description
Purchase of Raw Material 101 – Goods receipt for purchase order BSX 300000 Inventory – Raw Material WRX 191100 Goods Received / Invoice Received
Consumption of Raw Materials to Process Order 261 – Goods issue for order GBB-VBR 400010 Raw materials consumed BSX 300000 Inventory – Raw Material
Production of Semi-Finished Materials for Process Order 101 – Goods receipt for process order BSX 790000 Unfinished products GBB-AUF 895000 Factory output of production orders
Consumption of Semi-Finished Materials to Process Order 261 – Goods issue for order GBB-VBR 890000 Semi-finished products consumed BSX 790000 Unfinished products
Production of Finished Materials for Process Order 101 – Goods receipt for process order BSX 792000 Finished goods inventory GBB-AUF 895000 Factory output of production orders
Sampling for Quality Inspection 331 – Goods issue to sampling quality inspection GBB-VQP 237000 Losses – consumption of quality control BSX 792000 Finished goods inventory
Sale of Finished Material 601 – Goods issue for delivery GBB-VAX 892000 Change in finished products inventory BSX 792000 Finished goods inventory
Scrapping of Finished Material 551 – Goods issue for scrapping GBB-VNG 890001 Scrapped material – own production BSX 792000 Finished goods inventory
Cycle Count (Physical Inventory) of Finished Material 701 – Goods receipt for physical inventory adjustment BSX 792000 Finished goods inventory GBB-INV 233000 Losses – inventory variance
Initial Inventory Load of Finished Material 561 – Initial entry of stock balances BSX 792000 Finished goods inventory GBB-BSA 799999 Inventory migration
Consumption of Components from Subcontracting Stock (Special Stock O) 543 – Automatic component consumption during subcontracting goods receipt GBB-VBO 400010 Raw materials consumed BSX 300000 Inventory – Raw Material
Goods Receipt from Subcontractor 101 – Goods receipt for subcontracting purchase order BSX 792000 Finished goods inventory BSV 893010 Sub-contract stock change
Subcontracting Processing Charge 101 – Goods receipt for subcontracting purchase order FRL 417001 External Processing Charge WRX 191100 Goods Received / Invoice Received

Figure 3: SAP Movement Types and Corresponding Accounting Entries

Note: The G/L account numbers shown in Figure 3 are illustrative and depend on the chart of accounts and SAP configuration. The subcontracting examples assume a stock-relevant subcontracting purchase order without account assignment. Actual postings may differ depending on valuation methods, account assignments, and configuration settings.

MM-FI Account Determination in SAP S/4HANA

BSX, WRX, GBB, and PRD determine the G/L accounts used for inventory postings, GR/IR clearing, material consumption, and price differences.

In SAP S/4HANA on-premise and Private Edition environments, transaction OBYC remains available for configuring automatic account determination. In SAP S/4HANA Cloud Public Edition, account determination is maintained through the relevant configuration activities.

When a goods movement generates an accounting document, its financial postings are recorded in the Universal Journal (ACDOCA) in SAP S/4HANA. This integrated data model combines financial and management accounting information to support consistent reporting and analysis. 

For a deeper understanding of inventory valuation and periodic price determination in SAP S/4HANA, see our guide to Actual Costing in SAP Material Ledger.

Correct MM-FI account determination is essential for accurate inventory valuation, material consumption, product costing, and financial reporting.

 

Key Takeaways

  • Automatic Account Determination: SAP integrates Materials Management (MM) with Financial Accounting (FI) to generate G/L postings automatically during goods movements.
  • Transaction OBYC: Configures automatic account determination in SAP ECC and SAP S/4HANA on-premise and Private Edition environments.
  • Transaction Keys: BSX controls inventory postings, WRX controls GR/IR clearing, GBB controls offsetting entries for inventory postings, and PRD controls price differences.
  • Valuation Classes: Group materials for G/L account determination based on their accounting characteristics.
  • Account Modifiers: Further differentiate account determination within certain transaction keys, such as GBB/VBR for material consumption.
  • Movement Types: Determine the nature of goods movements, such as movement type 101 for goods receipts and 261 for goods issues to production orders.
  • SAP S/4HANA: Financial postings are recorded in the Universal Journal (ACDOCA), supporting integrated financial and management accounting.

 

About the Author

Ashish Sampat is an SAP FI/CO consultant specializing in SAP Controlling, product costing, Material Ledger, and cost center accounting. He has provided SAP consulting solutions to global organizations across the consumer goods, life sciences, and industrial sectors. Based in the Chicago area, Ashish works as an independent SAP FI/CO consultant and has authored several SAP books.

 

Optimize SAP MM-FI Integration and Account Determination

Accurate account determination is essential for inventory valuation, product costing, and financial reporting. ERPCorp helps organizations optimize SAP Finance and Controlling processes, resolve MM-FI integration issues, and prepare for SAP S/4HANA transformations.

Learn more about ERPCorp SAP Consulting Services.

 

Glossary

Account Modifier

An account modifier, also called an account grouping code, differentiates G/L account determination within certain transaction keys. For example, account modifier VBR is used with transaction key GBB to determine material consumption accounts for goods issues.

Automatic Account Determination

Automatic account determination is the SAP process of selecting the appropriate general ledger (G/L) accounts for business transactions based on predefined configuration. In Materials Management, SAP uses transaction keys, valuation classes, and other settings maintained through OBYC to generate accounting entries automatically.

Chart of Accounts

A chart of accounts is a structured list of general ledger (G/L) accounts used by one or more company codes. In SAP MM-FI account determination, the chart of accounts is a key factor in selecting the appropriate G/L accounts for inventory postings, consumption, and other goods movements.

Company Code

A company code is the smallest organizational unit in SAP Financial Accounting for which a complete set of financial statements can be prepared. Each company code is assigned an operating chart of accounts used for financial postings, including those generated through MM-FI integration.

Cost Center

A cost center is an organizational unit in SAP Controlling used to collect and monitor costs. When materials are issued to a cost center using movement type 201, SAP posts the material consumption expense to the appropriate G/L account and assigns the cost to the receiving cost center.

Goods Issue

A goods issue is a movement of materials out of inventory for consumption, production, or delivery. In SAP, a goods issue typically reduces inventory quantities and may generate accounting entries that credit inventory and debit a consumption or expense account. Movement type 261 is commonly used for goods issues to production orders.

Goods Receipt

A goods receipt records the receipt of materials into inventory or another designated destination. For a valuated goods receipt against a purchase order using movement type 101, SAP typically debits inventory through transaction key BSX and credits the GR/IR clearing account through transaction key WRX.

GR/IR

Goods Receipt/Invoice Receipt (GR/IR) is a clearing account used to reconcile goods receipts and supplier invoices for purchase orders. When a valuated goods receipt is posted, SAP typically credits the GR/IR clearing account. When the corresponding supplier invoice is posted, SAP debits the account. Transaction key WRX determines the GR/IR clearing account through automatic account determination in OBYC.

Material Master

A material master contains the information required to manage a material in SAP, including purchasing, inventory management, accounting, and costing data. The Accounting 1 view contains the valuation class used in automatic G/L account determination. SAP uses this information together with transaction keys and OBYC configuration to determine the appropriate accounts during goods movements.

Movement Type

A movement type is a three-digit key that identifies a goods movement in SAP, such as a goods receipt, goods issue, or stock transfer. Movement types influence inventory updates, account determination, and the accounting entries generated during goods movements. Examples include movement type 101 for goods receipts and 261 for goods issues to production orders.

OBYC

OBYC is the SAP transaction used to configure automatic account determination for Materials Management in SAP ECC and SAP S/4HANA on-premise and Private Edition environments. It assigns G/L accounts to transaction keys such as BSX, WRX, GBB, and PRD based on the applicable account determination settings.

Price Difference Account

A price difference account records differences between material valuation prices and actual transaction values when SAP determines that the difference should be posted separately. Transaction key PRD is used to determine the appropriate G/L account for these price difference postings in OBYC.

Purchase Price Variance

Purchase price variance is the difference between the purchase price of a material and its standard price. In SAP, price differences may arise during goods receipts or invoice receipts and can be posted to a price difference account determined by transaction key PRD in OBYC. The accounting treatment depends on the material's price control and the transaction.

Standard Price

Standard price is a fixed valuation price used for materials with price control S in SAP. It is maintained in the Accounting 1 view of the material master and determines the value of inventory postings. Differences between the standard price and actual purchase or production costs may be posted to price difference accounts through transaction key PRD, depending on the transaction and configuration.

Transaction Key

A transaction key identifies the type of accounting posting generated by a Materials Management transaction. Common transaction keys include BSX for inventory postings, WRX for GR/IR clearing, GBB for offsetting entries to inventory postings, and PRD for price differences. These keys are used in OBYC to determine the appropriate G/L accounts.

Universal Journal

The Universal Journal is the integrated financial and management accounting data model in SAP S/4HANA, with table ACDOCA storing journal entry line items. It combines financial and controlling information, including accounting entries generated by inventory movements, to support consistent financial reporting and real-time analysis.

Valuation Class

A valuation class groups materials for automatic G/L account determination in SAP. It is maintained in the Accounting 1 view of the material master and helps determine which inventory and consumption accounts are used during goods movements. The valuation class works together with transaction keys and other account determination settings maintained in transaction OBYC.

Valuation Grouping Code

A valuation grouping code groups valuation areas, such as plants, that share the same automatic G/L account assignments. In SAP, valuation grouping codes are assigned through configuration, including transaction OMWD, and are used in OBYC to simplify account determination across multiple valuation areas.

Valuation Type

A valuation type identifies a specific valuation within a material's valuation category when split valuation is used in SAP. Split valuation allows the same material to be valued differently based on characteristics such as procurement origin or batch. Valuation types can influence automatic G/L account determination through their assigned valuation classes and related OBYC configuration.