on 2024 Jul 16 12:11 PM
Hi community,
I'm using SAP Cloud SDK for JavaScript to generate a client for SAP standard API services, OData v4 protocol (e.g. https://api.sap.com/api/WAREHOUSEORDER_0001/overview). The resulting client does not generate bound actions (there are many in the mentioned services above, one would be ConfirmWarehouseTaskExact on the WarehouseTask entity). This is not an issue related to this specific service. It seems to me that bound functions are simply not supported by the generator. Is that true and if yes, do you know if there is any plan to introduce this feature?
According to the documentation it is (in general) possible to call bound actions with Cloud SDK:
https://sap.github.io/cloud-sdk/docs/js/features/odata/v4-client#operations-functions-and-actions
Right now I'm using a workaround, calling the action manually with sap-cloud-sdk/http-client. But I would much prefer calling it with the generated client (most of all to be able to make batch calls conveniently).
Thanks for any input!
Daniel
Hi Daniel,
I am facing the same problem but according to this issue https://github.com/SAP/cloud-sdk-js/issues/707 it is currently not supported to generate a corresponding OData client since it would be much effort to implement and they are waiting for "bigger demand".
I am going to comment on the issue hoping they now have capacities to implement it. If the topic is still relevant for you maybe you can leave a comment there as well to generate more demand.
Best regards,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.