cancel
Showing results for 
Search instead for 
Did you mean: 

Expose CDS View as OData Service/API in S/4HANA Public Cloud Edition

filipagatic
Explorer
0 Kudos

Hello together,

i have created a CDS View in Eclipse in my ABAB Cloud Project in S/4HANA Cloud and now i want to expose the CDS View as an OData Service / External API to use it in the Integration Suite. How can i achieve this? I am working in a Development Tenant.

Best regards

View Entire Topic
Oleg_Vokh
Product and Topic Expert
Product and Topic Expert

Hi, 
initially we need to make CDS as BO and then select the OData Web API in the service binding.
Here is a guide on how to do this.

 After that, we need to take the following steps:

 Create New → Communication Scenario.

OlegVokh_0-1710429274260.png

Enter a name and description.

 After that in the tab ‘Inbound Service’ click Add and select the name of just created Service Binding.

OlegVokh_1-1710429274266.png

After adding click the Publish Locally.

OlegVokh_2-1710429274271.png

Go to the Maintain Communication Users application to create new.

OlegVokh_3-1710429274275.png

Click the New to create a new communication user.

OlegVokh_4-1710429274278.png

In a new window provide the User Name, Description, and iput the password.

OlegVokh_5-1710429274281.png

Be sure to save the password because you won't be able to see it later.

Open the application Communication Systems to create a new one.

OlegVokh_6-1710429274284.png

Click New

OlegVokh_7-1710429274288.png

Enter ID and Name and click Create.

    The communication system always represents the remote system. Therefore, host name is the name of the remote server. This is only necessary for outbound communication. If a scenario only provides inbound services/APIs, then you can set in the Communication System the flag "Inbound Only" and then you don't need to provide a host name, else enter Host Name.

OlegVokh_8-1710429274291.png

Add the created user and save system.

OlegVokh_9-1710429274294.png

When adding a user to the inbound communication, simply enter his or her User Name and click Ok.

 Navigate to the Communication Arrangements application and create a new one.

OlegVokh_10-1710429274297.png

OlegVokh_11-1710429274301.png

 Provide Communication Scenario Name and click Create.

OlegVokh_12-1710429274305.png

Fill in the remaining required fields to complete the arrangement.

OlegVokh_0-1710429849942.png

 

Now you can get CDS data from this API. You can test it from Postman and connect to this API using IS tools for example CPI.

I hope this helps you.

BR,
Oleg Vokh

filipagatic
Explorer
Thank you very much! It helped me solve my problem!
filipagatic
Explorer
0 Kudos

@Oleg_Vokh I have now transported the Package with the CDS Views into the Test System. But how do i setup the communication scenario in the Test Environment? It does not allow me to create it in ADT.

Oleg_Vokh
Product and Topic Expert
Product and Topic Expert
Hi, Filip, to be completely honest, I don't have experience working in a QA tenant, so I can't answer to your question.