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 11, 20261 min read
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

Explain PTP Process Along With Accounting Entry At Each Step.

Explain PTP Process Along With Accounting Entry At Each Step.

Learn the complete Procure to Pay (PTP) process in SAP, from purchase requisition to vendor payment, with finance entries and real-world examples.

Jul 11, 2026Read more
Real SAP FICO interview questions on GL accounting.

Real SAP FICO interview questions on GL accounting.

Prepare for your SAP FICO 4HANA GL Accounting interview with top interview questions, expert answers, and practical concepts for career success.

Jul 11, 2026Read more
SAP Controlling S4HANA Interview Questions & Answers.

SAP Controlling S4HANA Interview Questions & Answers.

Prepare for your SAP CO S/4HANA interview with top interview questions, expert answers, and practical concepts to boost your confidence.

Jul 11, 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.