cancel
Showing results for 
Search instead for 
Did you mean: 

Post Incoming payments with an API S/4HANA CLOUD Public edition

DavidAvila
Explorer
0 Kudos
3,276

Hello,

We are trying to connect a POS solution with S/4HANA cloud, we already made the integration with some Apis that allow us to create the sales order and the subsequent billing document, but we are searching for an Api that allow us to post incoming payments (receivables management) what we want to do is "replicate" the function of the S/4HANA cloud application "POST INCOMING PAYMENTS" ( the F-28 transaction in the on-premise version).

We found this API "Journal Entry - Post (Synchronous)" but we have not been able to find the way to post the payment (clearing the open item) once the client pays, either in cash or any via of payment, for the good or service that was delivered.

I would like to know if this API works for this need or if there is another API in the API business hub repository, that works for this case.

Thank you.

View Entire Topic
Hardeep_Tulsi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello David. Please see the response and hope this help get you the detail understanding on what are possible options.

1. Journal Entry Post API provides SOAP APIs which enable remote systems to post journal entries to the S/4HANA Cloud system, this API has two types of SOAP inbound interfaces. One is the synchronous SOAP inbound interface "JournalEntryCreateRequestConfirmation_In" and other is asynchronous SOAP inbound interface "JournalEntryBulkCreationRequest_In".

https://help.sap.com/viewer/085edb30fb3d413da552832f3d5c01c0/2002.500/en-US/bae9c6f0061042be8cbf61e0...

Above API supports posting document for customer or vendor payment, however the API does not support clearing open item. Currently there is No API to change journal entries (clearing open items).

2. You can Create Custom API to interact with SAP S/4HANA Cloud. Here are the details that you can review to create the design for your need and evaluate further.

blog - https://blogs.sap.com/2023/02/13/creating-custom-inbound-api-in-sap-s-4hana-cloud-public-edition/

Creating Custom Inbound API in SAP S/4HANA Cloud, public edition

https://developers.sap.com/tutorials/s4hc-abap-environment-create-custom-api.html

Here you will find the Developer extensibility https://api.sap.com/products/SAPS4HANACloud/developerextensibility/bointerface

BO Interface Name:General Ledger Adjustment Accounting Notification

ID:I_GLADJMTACCTGNOTIFTP

You can further look at App Extensibility: Post Incoming Payments in case you want to work with Fiori Application.https://help.sap.com/docs/SAP_S4HANA_CLOUD/918bca53037f408f91a2295d04ac16bc/9257d89568014a3ab186ea96c02a9111.html?state=DRAFT&version=2302.503&q=Post%20Incoming%20Payment

3. SAP Build Process Automation BOT can as well help Cash Management Specialist to upload each bank statement individually to SAP S/4HANA Cloud to be processed using the "Mass Upload of Bank Statement Files (4X2)" SAP Build Process Automation Bot

https://store.irpa.cfapps.eu10.hana.ondemand.com/#/package/ffe656ae-48c9-480c-bcba-fe2393f0b446

This bot uploads bank statement files saved in a predefined folder directly into the Manage Incoming Payment Files Fiori app. This bot generates a log file after the runs and sends an email notification to the relevant stakeholders.

You should have the SAP S/4HANA Cloud scope item 1EG (Manage Bank Statements) activated.

SAP_COM_0316 is the standard communication arrangement to import electronic bank statements.

4. Additionally for outbound : For bank statements in order to provide automated integration from SAP to the house banks SAP recommends the use of SAP Multibank Connectivity (MBC).

MBC is a SAAS based solution that provides direct connections to the customer House Bank either through banks which are members or to other banks through the SWIFT network.

Application Interface to Retrieve Payment Files (‏2YM‏)

https://rapid.sap.com/bp/#/browse/scopeitems/2YM

Hope This helps with you need.Thank You
DavidAvila
Explorer
0 Kudos

Thank You Hardeep. I'm going to submit the information to my team.

Best Regards.

prathish_23
Participant
0 Kudos

Hi har1234,

As you mentioned, "As of now, there is no API available to change Journal Entries (Clear Open Items)". Can't we utilize the Journal Entry - Clearing API to clear Open Items in SAP S/4 HANA Public Cloud?

Thanks & regards,

Prathish.

Javier_del-Peso
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi prathish_reddy

Journal Entry - Clearing API is only for G/L account open item postings but not for Customers / Vendors open items.

Regards,

Javier del Peso

prathish_23
Participant
0 Kudos

Hi 546944,

Thank you for your prompt response, I am really thankful for your support & patience.

After your statement saying that the 'Journal Entry-Clearing API is only for G/L account open item postings but not for Customers/Vendors open items,' I went through the blogs regarding the Journal Entry-Clearing API, where I found information indicating that this particular API can also be used for clearing customer accounts.

Screenshot :

API URL :

https://blogs.sap.com/2019/09/10/guidelines-for-api-journal-entry-clearing-asynchronous/

Could you please go through the blog I mentioned and confirm whether I can use this API for Customer Account Clearing or not?

Thanks & regards,

Prathish

Javier_del-Peso
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi prathish_reddy

I double check the API, and it's correct, supports also APARitems.

Journal Entry – Clearing (Asynchronous) | SAP Help Portal

APARItems | SAP Help Portal

Regards,

Javier del Peso

schz
Explorer
0 Kudos

Dear all,

I need to do something similar to the logic of transaction FB05, using an API.

There are open items at the supplier with CME Indicator.
The open item(s) must be cleared to a bank account because they are already paid.

I am trying to do it with the following API's:

API Journal Entry - Post (Synchronous):  This API is not Clearing.

API Journal Entry – Clearing
I need to add the Bank Account item, however, the GLItems node parameters of this API do not allow manual entry.

Is it possible to do it with some API?
Any suggestions?

Thanks in advance.

Regards!