on 01-13-2022 11:43 AM
Hi all. I have created a End to End RAP solution using Eclipse and BTP Trial and it works fine.
When I try to create the same project in onpremise S/4HANA 2020, an error appears during Service Binding creation.
The error message says "Error during compilation. See next line for details." but there is no details available in Problems perspective. How can I deal with this?
This errors appears only in odata v2. In odata v4 it works.
Hi all!
I had the same problem and it was because I used in context of the assotiation, tables, not views. The CDS view data model allowes this and shows no error, but the Service Binding will not compile.
You muss also be careful about the used views.
I_InternalOrder is using conversation exits in WBS element, then you will get an error, therefore I used A_InternalOrder.
association [0..1] to A_InternalOrder as _InternalOrder on $projection.AUFNR = _InternalOrder.InternalOrder
Check the error log when testing your service.
/IWFND/ERROR_LOG - SAP Gateway Error Log
br, Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all.
I am facing the same issue but I have no annotations with "@ObjectModel.readOnly: true" .
Does someone know how to get the detailed error message? Or is there a list of annotations which are not allowed in the RESTful ABAP Programming model?
Thanks & Best regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had same issue with on-premise. I found all the virtual elements used in the exposed entities (of composition hierarchy) are to be marked as 'readonly' in their corresponding behaviour definition. This has solved my issue.
field ( readonly ) <virtualElement1>, <virtualElement2>,...;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may have to check if your CDS view has anything not acceptable by RAP service.
For me the issue was annotation "@ObjectModel.readOnly: true" in the CDS view. This is good for ABAP BOPF CDS Views but not for RAP. In RAP this is controlled in the Behaviour Definition, so the annotation was causing issues.
Although the error message could be clearer! I figured it out by trial and error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cristiano,
I have similar issue on our S4HANA ON PREMISE 2020 and as a work around, I now create these Service Bindings from a different client (Configuration) and that is working for me.
Hope this helps,
Best Regards,
Subbaiah Choudary Kotha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cristiano,
I created and used these in the client where we have data and test scenarios. The development client, where all the CDS views are created, has authorization issues for us to create the service bindings. But I was able to create and run them from the second client where we have configuration as well as test data.
Hope this helps,
Best Regards,
KS
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.