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

S4H public cloud - Custom CDSView External API for create/update operations

RWeidner
Explorer
0 Likes
515

Hi all,

is it possible to enable create/update operations for custom External APIs?

Documentation does not state anything about it, all docs/demos end with a view in the browser.

When I call the API the response basically says:

<app:collection sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:contentversion="1" href="YY1_RWETest">
I didn't find anything in the creation process where I could change that.How to create/update data of custom business objects via external API?
thanks,
Reinhard

Accepted Solutions (0)

Answers (1)

Answers (1)

Vincent_Zhu
Product and Topic Expert
Product and Topic Expert
0 Likes

Yes, create and update operations are possible for custom External APIs, but with important distinctions based on the type of custom object you're working with.

For Custom Business Objects (CBOs)

Full CRUD operations are supported for Custom Business Objects. This includes:

  • Create - Add new business object instances
  • Read - Query existing data
  • Update - Modify existing instances
  • Delete - Remove instances

You can also use batch operations to load datasets in a single API call, which is particularly useful for bulk data operations.

For updating Custom Business Objects via External API, refer to the SAP Help documentation on "Updating Business Object Instances with an OData Request".

For Custom CDS Views

Custom CDS Views created for External API scenarios are read-only. The External API scenario for Custom CDS Views only supports:

  • Read operations - Data retrieval and querying
  • View/Browse functionality - Displaying data in browsers

Create, update, and delete operations are not supported for Custom CDS Views exposed as External APIs.