cancel
Showing results for 
Search instead for 
Did you mean: 

Error during compilation of odata proxy

Martin_Böschen
Participant
0 Kudos
108

Hello,

I'm following the course https://learning.sap.com/courses/building-apps-with-the-abap-restful-application-programming-model and I'm stuck in week 5, unit 2.

I keep getting the error 

"Error during compilation of '$OPROXY_SRVD#ZSC_RAP_AGENCY_1848'."

The error is thrown from the following code:

    DATA service_consumption_name TYPE cl_web_odata_client_factory=>ty_service_definition_name.

    DATA(http_destination) = cl_http_destination_provider=>create_by_url( i_url = 'https://sapes5.sapdevcenter.com' ).
    http_client = cl_web_http_client_manager=>create_by_http_destination( i_destination = http_destination ).

    service_consumption_name = to_upper( 'ZSC_RAP_AGENCY_1848' ).

    odata_client_proxy = cl_web_odata_client_factory=>create_v2_remote_proxy(
      EXPORTING
        iv_service_definition_name = service_consumption_name
        io_http_client             = http_client
        iv_relative_service_root   = '/sap/opu/odata/sap/ZAGENCYCDS_SRV/' ).

My service consumption model is generated from the metadata on https://sapes5.sapdevcenter.com/sap/opu/odata/sap/ZAGENCYCDS_SRV/, so everything should fit together.

What could be the problem?

PS: Feel free to look in the code in the Abap Trial Platfrom.

Best Regards,

Martin

Accepted Solutions (0)

Answers (0)