We are facing an issue while trying to create a service consumption model as "edm:ComplexType not supported".
We need to call an API for which we have created the required destinations and Communication arrangement for communication scenario, but still we are getting this error. Can someone help please?
Complex EDM have some restrictions for the Service Consumption Model. We checked this in the documentation here - Service Consumption Model (https://help.sap.com/docs/SAP_S4HANA_CLOUD/6aa39f1ac05441e5a23f484f31e477e7/ed5d88ea66ce439398c37fe3dfc2cfd5.html) and below is what is mentioned:
Not all OData service model features are supported for Service Consumption Models. For example, you might not be able to create a Service Consumption Model for your underlying OData service. This is the case if your Service Model contains Complex Collections, Actions, or Functions.
In such cases please look into the use of BO Interface CDS view available as a part of developer extensibility which can be found here - https://api.sap.com/products/SAPS4HANACloud/developerextensibility/bointerface