2 weeks ago
Hi Experts,
I've questions below.
How to create an OData Service in SAP Public Cloud?
Where do I find the GET Entity method and GET EntitySet Method?
Where do I pass the Input JSON for the POST method?
I want to create an OData with CRUD operations in the SAP Public Cloud.
Can anyone suggest the best practice?
Thanks,
Naveen.
Request clarification before answering.
Hi iamnaveen
Could you provide some more information about your use case?
For example, you can use the Public APIs already provided:
https://api.sap.com/products/SAPS4HANACloud/apis/all
If you want to update something, you will need to use x-csrf-token cross site scripting token:
Or you can create a custom CDS View and expose it as Odata (for Read only)
https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/f4dcfd6e14b54177b98d6099...
If you want to create your own custom APIs and expose them, you can investigate Developer Extensibility:
https://api.sap.com/products/SAPS4HANACloud/onstackextensibility/bointerface
thank you
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jerry_Lowery ,
In SAP GUI, I can create an OData for a Custom table with CRUD Operations, which I can also use in the Fiori Application. But how do I achieve that in the public cloud?
Thanks,
Naveen
Hi iamnaveen,
The equivalent extensibility for such a custom table is probably the Custom Business Object, which you can expose as an OData service and create a UI with the CBO.
If you want to adapt an app to use it or use it in your own app, you probably need to look into Developer Extensibility. I don't know a way of adding the table to an existing UI without Developer Extensibility if that is what you are trying to do.
If you could describe your use case, there might be a better approach.
There are several blogs in the community about CBOs.
I hope this helps
User | Count |
---|---|
94 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.