Financial Management Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Angelou
Product and Topic Expert
Product and Topic Expert
368

Hi Everyone,

As you read the blog post's title, I'm sure you're excited to get to the interesting section where you'll discover how to use SOAP Service to write to SAP S/4 HANA Cloud.

The public cloud version of SAP S/4 HANA offers equivalent SOAP APIs, which can be leveraged in the Universal Model. This flexibility enables you posting documents not just in SAP S/4 HANA On-premise, but also in the SAP S/4 HANA Cloud.

For more information, see SAP S/4 HANA Public Cloud SOAP APIs.

Now allow me to demonstrate your prerequisites and procedures.

Prerequisites

  • You must have an existing SAP PaPM Cloud Universal Model subscription. More information, Account Setup.
  • You must have an existing SAP S/4 HANA Public Cloud.

Scenario

You were able to read data records from SAP S/4 HANA Public Cloud in context of the recent blog post SAP PaPM Cloud Standard and Universal Model OData Integration with S/4HANA Public Cloud.

Now, you are required to sent back the calculated data records from Universal Model using SOAP Service.

Procedure

1.     Creation of Communication User and System

You may follow the same approach of the Creation of Communication User and System from the mentioned blog post above on our scenario but without ticking the box Inbound Only.

Angelou_0-1760535151839.png

Then add a User for Inbound and Outbound Communication.

Angelou_1-1760535179736.png

For more information about the procedure, see Create a Communication System with Inbound and Outbound Users.

2.     Creation of Communication Arrangements

For this blog post, let’s use the Journal Entry by Ledger – Post (Asynchronous).

Angelou_2-1760535210004.png

In the procedure from the official documentation of Create Communication Arrangement. Proceed on creation of Communication Arrangement.

3.     Creation of Destination

Create the Destination according to the configuration that you have created from previous steps.

Fields

Values

Name

S4HC_DEST

Type

HTTP

Description

Destination for using SOAP Service SAP S/4 HANA Public Cloud

Proxy Type

Internet

URL

<api-url of your communication arrangements>

Authentication

BasicAuthentication

User

<Your Communication User>

Password

<Your Communication Password>

Additional Properties

sap-client :<your s4hc client>

For reference, see image below.

Angelou_3-1760535598481.png

4.     Creation of Connection

Since you already have the Destination, you may now proceed on the creation of Connection in Universal Model.

For the Journal Entry by Ledger - Post (Asynchronous), you may refer for the Models and Fields that are being used for the General Ledger posting.

If you want more detailed fields that I have added, please refer to SAP PaPM Cloud Universal Model (SAP PaPM Cloud UM) Posting Strategy via SOAP Services as it uses the same use case for Journal Entry.

Angelou_4-1760535622137.png

Once all Models and Fields are configured, you may now proceed on pressing the Sync Models button to generate the Model Entities that will be used as a Result Model function in your Writer.

For more information, see Manage Connections.

5.     Setting up of Writer function

You can maintain the Connection created from previous procedures and Model in your Writer function.

Angelou_5-1760535661121.png

Configure the mapping of fields according to what you have added from previous procedures.

With this configuration, when you Run the Writer function, it will generate a Message ID that we can check in SAP S/4 HANA Cloud.

Angelou_6-1760535677128.png

6.     Validation of Posting in SAP S/4 HANA Public Cloud

In the SAP S/4 HANA Public Cloud Message Monitoring for Administrators, you will be seeing an Interface /FINANCE – JRNLENTRIN – 00001 that you can open to search the Message ID from generated from Universal Model.

Angelou_7-1760535700823.png

Once opened, search the Message ID.

Angelou_8-1760535750628.png

It will show the status of posting and returns the Document number accordingly by SAP S/4 HANA Public Cloud.

Disclaimer: All data like Connection names, message IDs, document numbers and other examples are our dummy records. And this is only to showing how you can use SOAP Service in Universal Model.

And that will be it for this blog post! I hope you have learned now how you can setup the writing of SAP PaPM Cloud Universal Model to your SAP S/4 HANA Cloud Public Cloud.

See you again onto the next topic!