cancel
Showing results for 
Search instead for 
Did you mean: 

How do i add a second OData Service in Business Application Studio?

former_member592880
Participant
0 Kudos

Dear SAP Community,

i have a Fiori application with a oData service from the CDS View and another from SEGW.

traditionally i would add both the services in the App via WebIDE's wizard.

how do i do something similar with the Business Application Studio

regards

Siddharth Shaligram

Accepted Solutions (1)

Accepted Solutions (1)

yuval_morad
Employee
Employee

Which template is used to create the project? I think that if you used Fiori elements it should work

another option is :

1. go to menu View->Find Command

2. In the dialog enter Consume SAP Service

3. Choose the UI folder

4. Choose My SAP System

5. Choose the relevant data source (destination)

As a result a new datasource is added to your manifest (I think you need to add own model though)

former_member592880
Participant
0 Kudos

Dear Yuval,

thanks a lot for answering my question.

regards

Siddharth

Ahmedkhan29789
Participant
0 Kudos

Hi Yuval, I followed the procedure as you suggested, but replacing my existing datasource somehow in business application studio
1. go to menu View->Find Command

2. In the dialog enter Consume SAP Service

3. Choose the UI folder

4. Choose My SAP System

5. Choose the relevant data source (destination)

Answers (2)

Answers (2)

yuval_morad
Employee
Employee

Hi

Please right click on manifest.json -> Open Service Manager

There you can add service

former_member592880
Participant
0 Kudos

Dear Yuval,

thank you for answering my question.

I got this error : An unexpected error occurred, Cannot read property 'customMiddleware' of undefined.

what do i do with this??

thanks and regards

Siddharth Shaligram

junwu
Active Contributor

go to your manifest.json, find the datasource section, you will see how the odata service is define there, just make a copy and change the name&url to your new service.

Ahmedkhan29789
Participant
0 Kudos

but when url have basic authentications where i would define the username and password?