Exploring the potential of the Clearing API Journal Entry – Clearing (Asynchronous) | SAP Help Portal can be an exciting journey for many of our customers. However, understanding its diverse functionality, distinguishing it from Fiori's clearing apps and preparing payloads might be complex. To ease this process, we've compiled this user-friendly guide. It provides clearer insights into the functions and capabilities of the Clearing API and guides you on how to use it effectively to simplify your financial transactions.
Business context:
Before we look into Clearing API, it's essential to know what Open Item Management and Clearing are.
Open items are incomplete business transactions. Clearing is the transaction when an offset value is posted to an item or a group of items, so that the resulting balance of the items is zero. Clearing transactions always create clearing entries.
To better understand, we take the examples in area of AR(Accounts Receivable), AP(Accounts Payable) and G/L(General Ledge).
In AR accounting, the customer Invoice create open items. When make payments, these open items get cleared, resulting in a zero balance. For more information, please see Clearing of Open Items | SAP Help Portal
In AP accounting, vendor invoices generate open items. When make the payments, these open items get settled. Clearing result in a zero balance. More details can be found Clear Outgoing Payments | SAP Help Portal
In G/L - Consider an account like a bank transfer account. It remains an open item until a bank statement is obtained and cleared. More details can be found Clear G/L Accounts | SAP Help Portal and Open Item Management for G/L Accounts | SAP Help Portal
Scope of the Clearing API:
The Clearing API is designed to manage the clearing of open items for the general ledger, accounts receivable, and accounts payable. However, it's important to note that this API only supports the clearing function and does not offer the ability to combine posting with clearing in a single step.
In accounts receivable, for instance, the customer invoice and incoming payment posting may not be automatically cleared. That's where Clearing API comes in. It clears the open items of customer invoices and incoming payments. Nonetheless, with the "Post Incoming Payments " app, you can post incoming payment and clear customer invoice in on step Post Incoming Payments | SAP Help Portal
Similar situation that for account payable, you can clear the outgoing payment and vendor invoice with Clearing API. But you can not post the payment and clear the vendor open item in one step, as app Post Outgoing Payments | SAP Help Portal.
Using the Clearing API in Different Business Scenarios:
1.G/L Clearing:
<JournalEntry>
<CompanyCode>{{CompanyCode}}</CompanyCode>
<AccountingDocumentType>SA</AccountingDocumentType>
<DocumentDate>{{Today}}</DocumentDate>
<PostingDate>{{Today}}</PostingDate>
<CurrencyCode>EUR</CurrencyCode>
<DocumentHeaderText>Full Clearing</DocumentHeaderText>
<ReferenceDocument>Full Clear</ReferenceDocument>
<CreatedByUser>APITEST</CreatedByUser>
<GLItems>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>{{GL_OPEN_GLAccount}}</GLAccount>
<FiscalYear>{{Year}}</FiscalYear>
<AccountingDocument>{{GL_Journal_Entry_01}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
</GLItems>
<GLItems>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<GLAccount>{{GL_OPEN_GLAccount}}</GLAccount>
<FiscalYear>{{Year}}</FiscalYear>
<AccountingDocument>{{GL_Journal_Entry_02}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
</GLItems>
</JournalEntry>
2. AR/AP full Clearing:
Please put vendor invoice and payment open items in the <APARItems> Node
<JournalEntry>
………
<APARItems>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{PaymentEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
</APARItems>
<APARItems>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{InvoiceEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
</APARItems>
<APARItems>
……
</APARItems>
</JournalEntry>
3. Payment Differences - Partial Payment:
<JournalEntry>
………
<APARItems>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{PaymentEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
</APARItems>
<APARItems>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{InvoiceEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
<PartialPaymentAmtInDspCrcy currencyCode=“EUR">4000</PartialPaymentAmtInDspCrcy>
</APARItems>
<APARItems>
……
</APARItems>
</JournalEntry>
4. Residual Items with Payment Difference:
<JournalEntry>
………
<APARItems>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{PaymentEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
</APARItems>
<APARItems>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{InvoiceEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
<OtherDeductionAmountInDspCrcy currencyCode="EUR">-300</OtherDeductionAmountInDspCrcy>
<PaymentDifferenceReason>050</PaymentDifferenceReason>
</APARItems>
<APARItems>
……
</APARItems>
</JournalEntry>
5.Residual Items using Write-Off Reason Codes:
<JournalEntry>
………
<APARItems>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{PaymentEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
</APARItems>
<APARItems>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<AccountType>K</AccountType>
<APARAccount>1041</APARAccount>
<FiscalYear>2024</FiscalYear>
<AccountingDocument>{{InvoiceEntry}}</AccountingDocument>
<AccountingDocumentItem>1</AccountingDocumentItem>
<OtherDeductionAmountInDspCrcy currencyCode="EUR">-1000</OtherDeductionAmountInDspCrcy>
<PaymentDifferenceDistribution>
<PaymentDifferenceReason>050</PaymentDifferenceReason>
<OtherDeductionAmountInDspCrcy currencyCode="EUR">-400</OtherDeductionAmountInDspCrcy>
</PaymentDifferenceDistribution>
<PaymentDifferenceDistribution>
<PaymentDifferenceReason>040</PaymentDifferenceReason>
<OtherDeductionAmountInDspCrcy currencyCode="EUR">-600</OtherDeductionAmountInDspCrcy>
</PaymentDifferenceDistribution>
</APARItems>
<APARItems>
……
</APARItems>
</JournalEntry>
This guide has been specifically designed to help you maximize the use of the Clearing API while minimizing potential issues, ultimately resulting in a more efficient accounting process. As we continue to evolve this guide, expect to see additional relevant business scenarios for a richer understanding and smoother financial journey.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
2 | |
2 |