#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Understanding the Mechanics of Financial Postings in SAP

Every financial posting in SAP is a balanced document made of a header and line items. Posting keys, account types, document types, field status and account determination decide how each line is recorded, and this page shows them working on one purchase from goods receipt to payment.

Blogging Illustration

How an SAP FI document is built

Suppose a company in Noida buys 100 office chairs from a local supplier for ₹1,00,000 plus 18% GST. In SAP, that single purchase produces three separate accounting documents: one when the chairs arrive, one when the supplier's invoice is entered, and one when the supplier is paid. Each document must balance, each line must go to the right kind of account, and each must land in an open posting period. Understanding how SAP enforces those rules is what "the mechanics of financial postings" means.

What an accounting document looks like

Every posting in SAP Financial Accounting (FI) creates a document with two parts:

  • Header: company code, document date, posting date, document type, reference (such as the supplier's invoice number), currency and header text.
  • Line items: at least two lines, each with a posting key, an account, an amount, and other fields such as cost centre, tax code or profit centre.

SAP will not post a document unless total debits equal total credits. In older SAP ECC systems, headers are stored in table BKPF and line items in BSEG. In SAP S/4HANA, line items are written to the Universal Journal, table ACDOCA, which combines financial accounting and controlling data in one place.

The settings that control each line

Account types

Each line posts to one of five account types:

CodeAccount typeExample
SG/L accountBank, sales revenue, GR/IR clearing
KVendor (supplier)The chair supplier
DCustomerA buyer of your goods
AAssetA machine in the fixed asset register
MMaterialStock of an item (posted through MM)

Vendor and customer lines also update a reconciliation G/L account automatically, so the general ledger always shows the total owed to suppliers and by customers.

Posting keys

The two-digit posting key on each line tells SAP whether the line is a debit or a credit, which account type it posts to, and which fields appear on the entry screen. Posting keys are defined at client level (transaction OB41). The most common standard keys:

KeyMeaningDebit / Credit
40G/L account debitDebit
50G/L account creditCredit
01Customer invoiceDebit
11Customer credit memoCredit
15Incoming payment from customerCredit
31Vendor invoiceCredit
21Vendor credit memoDebit
25Outgoing payment to vendorDebit
70 / 75Asset debit / creditDebit / Credit

In the newer "Enjoy" entry screens such as FB50, FB60 and FB70, you choose Debit or Credit and SAP fills in the posting key for you. The keys still exist in every document; you see them when you display it with FB03.

Document types

The document type classifies the whole document, controls which account types are allowed in it, and links it to a number range. Number ranges are maintained with FBN1, and document types with OBA7. Standard examples:

  • SA G/L account document, AB accounting document (often used for reversals and clearing)
  • KR vendor invoice, KZ vendor payment
  • DR customer invoice, DZ customer payment
  • WE goods receipt, WA goods issue, RE invoice receipt through logistics invoice verification
  • RV billing document transferred from SD

Field status

Whether a field such as cost centre or business area is required, optional or hidden on a line depends on the field status group of the G/L account (from its company code's field status variant) combined with the field status of the posting key. If one setting makes a field required and the other hides it, SAP reports a conflict, which is a common source of posting errors in a new configuration.

Posting periods

A document can only post into an open period. Finance teams open and close periods with transaction OB52, usually closing a month once its accounts are finalised. "Posting period not open" is one of the first errors new users meet.

The chair purchase, step by step

Assume the supplier is in the same state, so GST is split into 9% CGST and 9% SGST. Account names are simplified.

1. Goods receipt (MM, transaction MIGO, document type WE)

The store receives the chairs against a purchase order. SAP posts automatically, without anyone entering accounts:

LineAccountDebit (₹)Credit (₹)
1Inventory / asset or expense account (from account determination)1,00,000
2GR/IR clearing account1,00,000

For stocked materials, SAP finds these accounts through automatic account determination (transaction OBYC), using transaction keys such as BSX for the inventory posting and WRX for the GR/IR clearing account. Office chairs bought as assets or expenses would instead take the account from the purchase order's account assignment, but the GR/IR credit is the same idea. The GR/IR account holds "goods received, invoice not yet received".

2. Supplier invoice (MM, transaction MIRO, document type RE)

LineAccountPosting keyDebit (₹)Credit (₹)
1GR/IR clearing86 (GR/IR debit)1,00,000
2Input CGST409,000
3Input SGST409,000
4Vendor (supplier)311,18,000

The tax lines come from the tax code entered on the invoice. The GR/IR account is now cleared for this purchase, and the vendor account shows ₹1,18,000 owed.

3. Payment (FI, document type KZ)

LineAccountPosting keyDebit (₹)Credit (₹)
1Vendor (supplier)251,18,000
2Bank501,18,000

The payment clears the open invoice item on the vendor account. In practice the payment may also deduct TDS where it applies, which adds a tax line; that is left out here to keep the example readable.

Checking the results

  • FB03: display any document and its line items.
  • FBL1N: vendor line items (open and cleared).
  • FBL3N: G/L account line items, for example to see what is still sitting in GR/IR.
  • FBL5N: customer line items.

In S/4HANA, Fiori apps such as "Display Line Items in General Ledger" do the same job, but the transaction codes still work in most systems and are widely used in training.

Common posting errors and their usual cause

Error message (paraphrased)Usual cause
Posting period not openPeriod closed in OB52 for that account type
Balance in transaction currencyDebits and credits do not match
Account type not allowed for document typeWrong document type chosen, for example SA for a vendor line when it is not permitted
Field is a required entryField status requires a cost centre, business area or similar
Account cannot be posted directlyReconciliation or automatic-posting-only G/L account used manually

Why this matters for SAP FICO learners

Interviewers for SAP FICO roles routinely ask about posting keys, document types, GR/IR and the MM–FI integration shown above, because they reveal whether a candidate understands what happens behind the screens. If you know double-entry accounting already, this is mostly about learning where SAP stores each rule. For the purchasing side, see the SAP MM overview; and for the accounting background, the limits of financial accounting. If you are new to SAP's transaction codes, this beginner's guide to SAP codes explains how to navigate them.

Placed Students

Our Clients

Partners