3 weeks ago
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
Request clarification before answering.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
6 | |
6 | |
5 | |
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.