cancel
Showing results for 
Search instead for 
Did you mean: 

Service Binding error in creation: Error during compilation. See next line for details.

cristiano_santos
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

Mynot12
Explorer

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

rwa
Discoverer
0 Kudos

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

SureshRa
Active Participant
0 Kudos

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>,...;

rchudziak
Participant
0 Kudos

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.

kschoudary
Participant
0 Kudos

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

cristiano_santos
Participant
0 Kudos

kschoudary8 do you mean connect in another client in dev system, and create these service binding in this client?

kschoudary
Participant
0 Kudos

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