MM Inventory Valuation Part 5: Automatic Account Determination — BSX, WRX, GBB and Valuation Class
Preview · a free account unlocks the full lesson
How MM finds G/L accounts: valuation grouping code, valuation class, transaction keys (BSX, WRX, GBB, PRD, UMB, KDM…), account modifiers (e. g. VBR, VAX, VAY, INV), movement type assignment, and how to analyse and fix wrong or missing accounts.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 4 of this series covered split valuation; this final part covers automatic account determination. The combination that drives a posting to a specific G/L account is built from the chart of accounts, the valuation grouping code, the valuation class, the transaction key, and in some cases an additional account modifier.
The transaction keys that matter most are BSX for the stock account, WRX for GR/IR, GBB for the offsetting entry — which itself has modifiers such as VBR for consumption, VAX and VAY for sales-related movements, INV for inventory differences, and BSA for initial stock entry — and PRD for price differences.
Movement types determine which transaction keys and modifiers actually apply through their value strings. The valuation grouping code (maintained in OMWD) lets different plants either share the same account determination or keep it separate, depending on how they're assigned.
A missing OBYC entry stops a posting outright, which at least surfaces the problem immediately, while a wrong entry posts silently to the wrong account, which is far harder to catch. Analysis relies on simulating the posting in MIGO, displaying the OBYC entries involved, reading the error message carefully, and reviewing the resulting accounting document.
Working through this means taking a standard 201 goods issue, identifying that it uses BSX together with the GBB-VBR modifier, checking the OBYC entries for the relevant valuation class, and — critically — never changing any of this directly in production without finance approval, since it affects the balance sheet.
The goal is to be able to derive, from master data alone, the G/L accounts involved in a goods receipt, a goods issue to a cost center, a scrapping posting, and a physical inventory difference.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.