cancel
Showing results for 
Search instead for 
Did you mean: 

Cross client issue when deploying SAP UI5 app into Gateway system

Former Member
0 Kudos

Hallo Experts,

I built a SAP UI5 app (REST Based application, no OData) in eclipse and deployed into my ERP(AAA) system, where the data coming from; Which has no issues at all. But When I deploy my app into Netweaver Gateway system(XXX) then I am able to open the app, but the data is not coming from my ERP system(AAA). My service url still refers to my ERP (AAA) system.  sServiceUrl = "http://XXXXXXXXXX.com:8000/sap/bc/zprdemo". Could you please guide me?

Thank you,

Murali Pinnamaneni

Accepted Solutions (0)

Answers (2)

Answers (2)

santhu_gowdaz
Active Contributor
0 Kudos

this links may solve your issue,

Former Member
0 Kudos

Hi Santhosh,

I tried the below option as I am working with ICF-based services, but it still does not work. -

3.1 Example for ICF-based Services

When you create simple HTTP-Services with ICF, you can add very easily additional header information. Besides, you can implement this feature in an own HTTP-Handler-Class, which will be added to your Handler-List in SICF.

  1. SERVER->response->set_header_field( 
  2.       EXPORTING 
  3.           name = 'Access-Control-Allow-Origin' 
  4.           value = '*' 
  5. ). 

This is what my error message.

XMLHttpRequest cannot load http://(ERPsystem).com:8000/sap/bc/zprdemo/customer_list?CLASS=4&KAPPL=M. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://(NGWsystem).com:8000' is therefore not allowed access. The response had HTTP status code 401.

Thanks,

Murali

Former Member
0 Kudos

Hi,

Do you work with a gateway hub?

Check the hub option.

Kind regards,

RW

Former Member
0 Kudos

Hi Robbe, I do not use Gateway hub (services). I only upload UI5 app into my mime repository and access the application.

Thanks,

Murali

Former Member
0 Kudos

Implement option 1