cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CORS and Access-Control-Allow-Origin in SAP Build APPS when I try to call SAP ABAP cloud odata

Lamiafarhat
Discoverer
0 Likes
658

Dear Community 

I'm working on implementation of SAP Build Apps application low code based on ABAP on cloud odata service . 

I have created the destination in SAP BTP destination as follows : 

Lamiafarhat_0-1744105443700.png

And I have tried to make a get call over this destination as follows : 

Lamiafarhat_1-1744105502510.png

Unfortunatly I'm blocked and it does not work : 

Lamiafarhat_2-1744105551087.png

I tried many workaround and it does not work . 

 

And samething when I used basic authentification it does not work . 

 

your urgent help is highly appreciated 

Accepted Solutions (0)

Answers (1)

Answers (1)

ArunJacob
Active Participant
0 Likes

Hi,

Please use the relative url like '/destination/EMDEMO/sap/opu/odata/sap/ZSRV_EM_ORDERS_BIND' instead of the 'https://<backend>.ondemand.com/sap/opu/odata/sap/ZSRV_EM_ORDERS_BIND'

CORS blocking due to direct calling of the url.

Thanks,

Arun

Lamiafarhat
Discoverer
0 Likes

Hi Arun Jacob

I basically wanted to follow the steps in this link : SAP Build Apps – REST API Integration - Customize ... - SAP Community 

My aim is to call function import for SAP ABAP cloud odata services and even if I correct it for the Get Part , I'm not sure how to proceed for function import . 

 

Thanks a lot for your quick reply 

 

Regards 

Lamia 

ArunJacob
Active Participant
0 Likes
In the metadata of the service, function import already implemented? Like '<FunctionImport Name="MyFunction" EntitySet="..." ReturnType="..." m:HttpMethod="POST" />'?