
SAP MM Automatic Account Determination OBYC Step by Step with Live Examples
This comprehensive technical guide is provided by ERPVITS, a leading global provider of SAP S/4HANA training and certification programs.
Introduction: OBYC – The Core of SAP MM-FI Integration
Every time a goods receipt is posted (MIGO), an invoice is verified (MIRO) or inventory is consumed by production, SAP automatically creates financial accounting documents in the background. The General Ledger (G/L) debits and credits are populated without user intervention.
What is the magic behind this automated accounting bridge? Transaction OBYC (Automatic Postings) SAP MM/FI Integration
If you are a supply chain or consultant going into an implementation project, you need to learn OBYC. The #1 root cause of frustrating posting errors like “Account determination for entry XXXXX could not be found” is misconfigured account determination.
This detailed guide will take you through the structural architecture, basic configuration steps, critical transaction/event keys (TEKs) and real-time business scenarios so that you can configure OBYC like a pro enterprise architect.
1. The Core Architecture: How SAP Identifies G/L Accounts
Before you begin configuration, you need to understand the logic SAP uses to select the correct G/L account. SAP doesn’t look at the material number directly, but instead uses a complex matrix that combines organisational levels, material attributes, and movement events.
5 Elements of OBYC Pillar
- Chart of Accounts (COA): The high level container that groups G/L accounts for one or more company codes (e.g. INT or CA01).
- Valuation Grouping Code: A bridge between valuation areas (plants) to facilitate the account assignment. We don't set up accounts for each plant . We group plants with similar accounting requirements .
- Valuation Category: Link between the material master (Accounting view) and the account determination. It clusters materials together that have similar accounting treatment (e.g. Raw Materials versus Finished Goods).
- Transaction / Event Key (TEK) SAP internal processing codes, hard-coded ( e.g. BSX, WRX, GBB) that determine the type of inventory movement (Inventory Posting, GR/IRE Clearing, Offsetting Entry).
- Modifier (General Modifier) Some keys (like GBB) are used to further distinguish accounts based on movement types or consumption purposes (for example VBR for consumption, ZOB for goods receipt without PO).
2. Configuration in SAP S/4HANA Step-by-Step Configuration Guide
OBYC takes a rigorous, phased approach throughout the IMG pathways. This is a structured guide to successfully configuring your environment.
Step 1: Define Valuation Control (WMOM)
Valuation control checks if your system uses valuation group codes. In modern SAP S/4HANA systems this is usually switched on globally.
Path : SPRO -> IMG -> Materials Management -> Valuation and Account Assignment -> Define Valuation Control
Action: Activate valuation control (Valuation grouping code active)
Step 2: Group Value Areas (OWMD)
Here you link your Plants (Valuation Areas) with a Valuation Grouping Code.
Path: SPRO -> IMG -> Materials Management -> Valuation and Account Assignment -> Group Valuation Areas
Real-Time Example Your company has 3 manufacturing plants in North America ( US01 US02 US03 ) Each plant has the same chart of accounts and General Ledger structure Assign the plants to Valuation Grouping Code 0001 .
Step 3: Valuation Classes (OMSK)
Valuation classes specify a G/L inventory account that is posted to when a certain material is moved.
Transaction code : SPRO Menu path : IMG -> Materials Management -> Valuation and Account Assignment -> Account Determination -> Account Determination Without Wizard -> Define Valuation Classes
Configuration Detail: Valuation Classes are assigned to Account Category References which are assigned to Material Types (e.g. Material Type ROH Raw Materials is assigned to Account Category Reference 0001 which supports Valuation Classes 3000 for Raw Material Metal and 3001 for Raw Material Chemicals).
Step 4: Automatic Postings Using OBYC
Now you define the actual G/L accounts for each Transaction/Event Key.
Path: SPRO--> IMG --> Materials Management --> Valuation and Account Assignment --> Account Determination --> Account Determination Without Wizard --> Configure Automatic Postings
Transaction Code: OBYC
Expert Guidance
Learn from industry experts
Trusted & Recognized
Top-rated by learners
Flexible Learning
Online options
Placement Support
Career support & more
3. Exploration of Important Transaction/Event Keys (TEKs)
If you open transaction OBYC you will see list of account modification keys. Let’s look at the 4 most important keys that every consultant needs to master:
-
BSX (Inventory Posting)
What it does: Controls the primary stock/inventory account on the Balance Sheet.
When it hits: All goods receipt (101), goods issue (201) or physical inventory adjustment that changes stock value.
Modifiers: None (depends on Chart of Accounts, Valuation Grouping Code and Valuation Class only) -
W R X (G R / I R Clearing A/C)
What it does: Clearing account for Goods Receipt / Invoice Receipt. Acts as a suspense liability account until the supplier invoice is posted.
When it hits: Credited at the time of Goods Receipt (MIGO) against PO. Debited at the time of Invoice Verification (MIRO).
Modifiers: None. -
GBB (Offsetting Entry for Posting of Inventory)
What it does: Used when inventory is posted with an offsetting entry that does not directly hit a balance sheet stock account (eg consumption for cost centers, scrap, production orders).
Modifiers (General Changes):
- VBR: Consumption for internal orders/cost centers (Hits Expense/P&L)
- AUA: Settlement of order.
- ZOB: Goods received without a purchase order.
- VNG: Destruction/desecration. -
PRD (Differences in Prices)
What it does: Captures variance between Standard Price maintained in Material Master and actual PO purchase price (mainly applicable for Standard Price valuation control S).
Modifiers: PRD are differences in price, differences in exchange rates and revaluation variances.
4. Procure to Pay Accounting Flow: Real time End to end Business Scenario
Let’s follow an exact accounting entry generated by OBYC in a standard procurement cycle to reinforce your knowledge.
Scenario Parameters:
Material : Steel Rod (Valuation Class 3000 - Raw Material)
Plant: 1000 (Designated as Valuation Grouping Code 0001)
PO Qty: 10 MT @ $100 / MT = $1,000 USD
Material Valuation Price: Standard price at $95/MT ($5/MT difference).
Step A: Store goods (MIGO)
When the material is received at the warehouse, the warehouse clerk posts a movement type 101. SAP reads OBYC and makes the following journal entry:
| Posting Key | Account Type | G/L Account Description | Debit (USD) | Credit (USD) | Key |
|---|---|---|---|---|---|
| 89 | Inventory Based | Raw Material Stock | $950 ($95 x 10) | — | BSX (Valuation Class 3000) |
| 89 | Price / Variance | Price Difference Account | $50 ($5 x 10) | — | PRD |
| 96 | Liability | GR/IR Clearing Account | — | $1,000 | WRX |
Step B: Check Invoice (MIRO)
Two weeks later the Accounts Payable team receives and posts the vendor invoice for $1,000 USD via MIRO:
| Posting Key | Account Type | G/L Account Description | Debit (USD) | Credit (USD) | Powered By Key |
|---|---|---|---|---|---|
| 31 | Liability | GR/IR Clearing Account | $1,000 | — | WRX (Clears GR/IR suspense) |
| 21 | Vendor | Vendor Account (Accounts Payable) | — | $1000 | Vendor Master / FI Reconciliation |
5. Fixing Common OBYC Error Messages
Even experienced consultants can run into OBYC errors during testing or when going live. Here’s your quick fix diagnostic cheat sheet:
Error 1: no account determination possible for entry int bsx 0001 3000
Reason: In transaction OBYC there is no G/L account assigned to this combination. SAP is looking for Chart of Accounts INT, Transaction Key BSX, Valuation Grouping Code 0001 and Valuation Class 3000.
Fix: Go to OBYC, select key BSX, click Rules, check your assignment criteria and assign the correct inventory g/l account for Valuation Class 3000.
Error 2: "Account 400000 in company code 1000 is not directly usable"
Root Cause : G/L Account assigned in OBYC is defined in FI as Reconciliation Account (for Assets or Vendors/Customers) or has tax/cost element restrictions that do not allow direct posting from inventory movements.
Correction: Check the G/L account master data (FS00) to make sure it is created as a balance sheet or P&L account allowing direct postings.
6. Advance Your Career with ERPVITS
Mastering technical configuration topics like OBYC, Business Partner migration, and cross-module MM-FI/MM-SD integration separates the average practitioners from elite SAP consultants.
If you are looking for structured, hands-on, instructor-led training with live project scenarios, lab access and career mentorship, check out our flagship professional programs: