Skip to Content

Error while creating the Service Binding in ABAP Cloud instance

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-cloud-platform-abap-environment/

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Mar 23 at 07:40 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 24 at 05:30 AM

    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


    class-code.png (22.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 24 at 07:27 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 01 at 08:40 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 18 at 10:45 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.