cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Clear incoming payments with api

Pyae_Phyo_Thwe
Explorer
0 Kudos
729

Hello experts,

With the api, I want to create incoming payments as from "Post Incoming Payments" app. In that "Post Incoming Payments" app, we have to add the JE we want to clear and the GL account and the amount.

I found Journal Entry - Clearing (Asynchronous) API can create data in Post Incoming Payments. But that api does not have field for debit amount and credit amount.  How can I create the Post Incoming Payments adding debit amount or credit amount. 

Pyae_Phyo_Thwe_0-1720402087027.png

API #S4 hana #Post Incoming payments

Accepted Solutions (0)

Answers (1)

Answers (1)

AndreasMuno
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @Pyae_Phyo_Thwe , I am not 100% sure about this, but you may want to try to first find the appropriate journal entry to match with using a different API, like "Accounting Document - Read or "Line Item of Treasury Posting Journal Entry – Read" to find matching entries in the line items with the proper posting key for debit or credit, 40 or 50:

        "AccountingDocumentItemRef": "0000000001",
        "TreasuryPostingCategory": 1,
        "TreasuryPostingCategoryName": "Position Posting (Book Value) in Position Currency",
        "TreasuryGLAccountSymbol": "1",
        "TreasuryGLAccountSymbolName": "Position (book value)",
        "PostingKey": "40",
        "PostingKeyName": "Debit entry",
        "GLAccount": "12041000",
        "CompanyCodeCurrency": "USD",
        "AmountInCompanyCodeCurrency": "211621.88",
        "TreasuryTransactionFlow": 2,
        "AccountingDocument": "7000010027",
        "JournalEntryType": "SA",

Once you obtained the matching item you would simply reference the Accounting Document and item Reference ID of the matching items when using the clearing API. As long as there are no amount discrepancies between the payment and the reference document no credit or debit amount would be needed. only for exceptions to this default you may want to add details in segment APARItems of API Journal Entry - Clearing (Asynchronous).

If this answers your question please mark as solved, accordingly. Thank you.    

Pyae_Phyo_Thwe
Explorer
0 Kudos
Thanks a lot for your answer. But what we want is we want to clear against the JE amount with the Main bank or Bank clearing account which is GL account in "Post Incoming Payment" app. Is there any other api, that we can use to add the GL account and amount to clear the incoming payment.