Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SICF service reference to a BSP application

Former Member

Hi,

I have created a service reference to a BSP existing service in SICF.

The corresponding service path in SICF is: /default_host/sap/bc/ui5_ui5/sap/zeasybag

The service reference path is: /default_host/EZ and its reference target is /default_host/sap/bc/ui5_ui5/sap/zeasybag

When I test the link from the orginial service, the following URL is launch in my browser and works well:

http://mycompany/sap/bc/ui5_ui5/sap/zeasybag/easybag/index.html

When I test the service reference link, the launched URL is the following:

http://mycompany:8000/ez/index.html

And I get an error message on the page: File sap/zeasybag/index.html NOT found!

The BSP application directory is the following:

So the service reference is not working because it is missing the subdirectory easybag (the parent folder of the index.html file) in its URL.

Is there anyway to configure the service reference to take in account the parent folder ?

Thanks in advance for your help.

Thibault

1 ACCEPTED SOLUTION

former_member192050
Participant

Hi Schalck

As I assumed that u entered differently what u described in post cause in the error it is showing including File sap/zeasybag/index.html NOT found!

so check URL u entered and fire again

Regards

SATHISH

5 REPLIES 5

former_member192050
Participant

Hi Schalck

As I assumed that u entered differently what u described in post cause in the error it is showing including File sap/zeasybag/index.html NOT found!

so check URL u entered and fire again

Regards

SATHISH

0 Kudos

I just found a solution. The deployed application is a SAPUI5 application and is deployed as a BSP Application. The file Page Fragments/webcontent/easybag/component.js needs to be updated.

The first line of this file was originally:  jQuery.sap.declare("easybag.Component");

I change this instruction with:

jQuery.sap.declare("/sap/bc/ui5_ui5/sap/zeasybag/easybag.Component");

The prefix /sap/bc/ui5_ui5/sap/zeasybag/ is the path of the SICF original service.

Now my shorten URL through the service reference works fine. I can launch my application using the following link http://mycompany/EZ instead of http://mycompany/sap/bc/ui5_ui5/sap/zeasybag/easybag/index.html

soldner
Participant
0 Kudos

Am I correct in saying ZEASYBAG is a BSP coded using SAPUI5?  Where does is get the UI5 library?

I  have not tried this yet.

Would it be possible to see some code?

Thanks!

Former Member
0 Kudos

Hello,

We installed Gateway on our SAP Server + the necessary UISAPUI5 software component to develop and run SAPUI5 applications.

You can find documentation and code snippets here:

https://sapui5.netweaver.ondemand.com/sdk/#content/Overview.html

Hope this help.

Regards,

Thibault

0 Kudos

Thanks!  I understandt.