cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating the Service Binding in ABAP Cloud instance

0 Kudos

Hello andre.fischer ,

I was following you blog to call anOData service from on-prem system to ABAP cloud instance using the metadata file

https://blogs.sap.com/2019/10/20/how-to-call-a-remote-odata-service-from-the-trial-version-of-sap-cl...

I have built a service consumption model and I could see the following artifacts to be generated in abap cloud instance:

1. Service Consumption Model

2. Service Definition

3. Data definition which is abstract

Now, I want to build a Fiori Application on Cloud itself using this Odata service which I just imported through metadata file. But the problem is,I am not able to create the Service Binding on top of Service Definition.

Could you please explain how to proceed further to build a fiori application using this data.Please refer the attachement.

Regards

Shilpa Gupta

abap-cloud-instance.png

Accepted Solutions (0)

Answers (5)

Answers (5)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos
0 Kudos

Hi Andre ,

Still, we are not able to create Service Binding for Odata Service in BTP BAP. The solution you had given via RFC FM is ok but it is like redeveloping same code . What if we want to reuse existing Odata service ???As we have many used is standard apps.

We referred to link - https://help.sap.com/docs/SAP_S4HANA_CLOUD/25cf71e63940453397a32dc2b7676947/aa3a88a28694471d8c90623d...

and getting error while creating Service Binding for standard Odata service - Abs. Entity VL_SH_H_T001W not allowed in Service Definition ZSCM_MMIM_MAT_PLANT_F4

Please suggest.

Regards,

Harsha

0 Kudos

Hello Andre,

Thank You for sharing the blog.

I have followed the same steps to read an OData service from on-prem system using the communication scenario 276 and when I execute the ABAP class where I have written the code to read the OData service, it gives me data in console only.

What my problem is: I want to use this OData service to build a fiori application into ABAP Cloud Platform.

I have added this ABAP instance as a data source in SAP WEB IDE as well, but how to make the service available there.

Could you please help me on that.

Thanks & Regards

Shilpa Gupta

former_member678980
Discoverer
0 Kudos

I have exactly same doubt, Could you solve it?, i have set up tha aba trial system, and i have created an ODATA service there following https://developers.sap.com/group.abap-env-restful-managed.html

So now, i want to import this ODATA on web ide, but i'm not able to configure this ABAP-Trial as a Data Source on Web-ide.

I belive we need to configure this Abap trial system as an Destination on SCP, but im getting error

maybe andre.fischer can help us to solve this

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos
0 Kudos

Hello Andre,

Thanks for the response.However could you please share the blog link you have mentioned to refer above.

And further on this I want to know that if this Service Definition is not meant to be published , then what can be the usage of reading it from On-prem system. How to use this data further.

And apart from all this,we have tried one more scenario where we are reading the data by the means of Communication arrangement and HTTP destination and called an OData http service from on-prem system to abap cloud using the class method implementation as shown in the attachement. Please refer the attached file.

Thanks & Regards

Shilpa Gupta

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

The service definition you have created is not meant to be published as on OData Services.

Instead you have to perform similar steps as described in this blog where I describe how to develop an OData Service where the data is fetched from a remote function module.

Instead of calling the RFC function module you can call the remote OData Service.

Best Regards,

Andre