Skip to content
Techvaa

Blog

What is posting key in sap?

Learn Posting Keys in SAP S/4HANA. Understand how posting keys determine debit or credit entries, account types, and financial document postings.

Jul 21, 20261 min read
posting key in sap ficowhy sap uses posting keyposting key vs debit credit
What is posting key in sap?

A Posting Key in SAP S/4HANA is a two-digit code that controls how line items are posted in financial documents. It determines whether an entry is a debit or credit, identifies the account type, and manages the posting behavior for each transaction.

Can we create our own posting key?

SAP software comes with many pre-defined posting key. There is no need to create any new posting key because sap provides many posting keys to meet all requirements. Choosing the right posting key is important. If trying to post with wrong posting key then document posting will fail.

How to choose the right posting key for document posting?

In an accounting document, we need to debit some GL and credit some GL. In SAP, instead of debit or credit we use posting key. It's a two digit number representing debit or credit.
Along with debit or credit information, it also control the account type.
If you want to debit a GL account, use posting key 40
If you want to debit a Customer account, use posting key 01

Here in this example, posting key 40 & 01 both are for debit only but differ on account type. I will use 40 for debiting GL and 01 for debiting customer.

When we post a document manually, then we need to choose posting key manually while entering document in sap.
When document is posted automatically, then posting key is picked up automatically.

Conclusion:

Understanding Posting Keys is essential for working with SAP S/4HANA Finance, as they control debit and credit postings, account types, and document behavior. A strong understanding of posting keys helps ensure accurate financial transactions and is a frequently tested topic in SAP FICO interviews.

Related articles

ISO 20022 Structured/ Hybrid address requirement for cross border payment

ISO 20022 Structured/ Hybrid address requirement for cross border payment

ISO 20022 recommends fully structured or at least hybrid structred address for cross border payments.

Sep 12, 2026Read more
SAP FICO interveiw questions collected from interviews of 8 companies

SAP FICO interveiw questions collected from interviews of 8 companies

List of questions asked to 4 years experienced candidate who gave interviews for sap fico consultant job role.

Sep 8, 2026Read more
SAP FICO interview questions collected fom candidates who gave interview in august 2026.

SAP FICO interview questions collected fom candidates who gave interview in august 2026.

These questions are collected from candidates who faced sap fico interview recently in august 2026.

Sep 4, 2026Read more

Get in touch with our experts

Have questions about a course, batch schedule, or placements? Send us a note and a Techvaa advisor will get back to you within one business day.

Protected by reCAPTCHA — Google's Privacy Policy and Terms of Service apply.