2024 Nov 20 5:29 AM - edited 2024 Nov 26 3:50 AM
Dear experts,
I'm trying to create a service consumption model in BTP environment to consume an OData service in our SAP S/4 HANA Public cloud system. I followed the approaches described here: https://help.sap.com/docs/abap-cloud/abap-development-tools-user-guide/generating-proxies-for-remote...
The .edmx file I downloaded from here: https://api.sap.com/api/API_CHANGEMASTER_0002/overview
Then I use that .edmx file to create the service consumption model and it returned error "This feature is only supported for proxy models for OData V2 services."
But the OData service is clearly stated as OData V2 when I look at it in SAP API Hub (as per above link).
May I ask what can be the reason here and how to fix it?
Update: I have found out the reason, as I tried with many different APIs, some of them work while the others don't. For the working APIs, they DON'T have any Function Imports, while those trouble APIs are all having Function Imports. As soon as I commented out the related code to define the Function Imports inside Service Consumption Model class (as per screen shot), it won't raise any errors. But now the thing to be considered is that will API still can work as expected.
Thanks and regards,
Tan Diep Thanh
Request clarification before answering.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.