Search code examples
sap-cloud-sdk

GetAll method is not generated in VDM for custom OData Service


We have a custom OData Service. The service url is as below:

https://host:port/sap/opu/odata/sap/ZAPI_TRANSFERPRICE_CONDTYPE_SRV/$metadata

It can return all the price conditions by accessing the following URL:

https://host:port/sap/opu/odata/sap/ZAPI_TRANSFERPRICE_CONDTYPE_SRV/TransferPriceCondition

After the service classes are generated based on the metadata of this service. The getAll method is not generated.

all the methods generated for the service

I am not sure if something is required in the OData service.

SAP Cloud SDK Version is 3.7.0.


Solution

  • The getAll() method is disabled explicitly by setting sap:addressable="false" for the entity which is the case in the EDMX file you provided.