cancel
Showing results for 
Search instead for 
Did you mean: 

Using odata service in freestyle app in Business Application Studio

jeffrey_towell2
Explorer
0 Kudos

Previously I created a free style app project in BAS using the "SAP Fiori Freestyle Project" template however it is now flagged as deprecated.

I am therefore using the "SAP Fiori application" template and using the "application type" freestyle.

The issue is that I used to be able to use the Northwind service as a data source which I have configured as a destination as follows:

With the old template I could pull in this destination in the project creation wizard as follows:

Using the new template it always gives an error when trying to retrieve the service:

Of course Northwind is not a SAP system but "Connect to an SAP System" is the only Data source that allows me to see "Northwind" as an option under "System".

Does anyone know how I can use this Northwind destination in the new template creation option?

Accepted Solutions (1)

Accepted Solutions (1)

mariusobert
Developer Advocate
Developer Advocate

A very good question. In fact, I actually had the same question when I first saw this new generator. The product team told me that they don't consider Northwind an SAP System, which I can understand as it's technically correct. But I also understand this is a change as we previously considered it to be one.

That doesn't mean that you can't continue to use this destination for simple web apps. You can continue to do so by selecting "Connect to an OData Service" and provide the URL of the service in the wizard. Then, the traffic redirect will be baked in your run configuration and later in the project, when you add the deployment configuration, you'll get prompted for a destination name. There, you can enter "Northwind" and everthing will work when you deploy your web app.

askmallik
Explorer
0 Kudos

mariusobert I have a trial account with BAS and a productive Sub-Account as well. I am trying to generate a Fiori elements project in my trial BAS.

However I am unable to connect to my on-premise systems' Odata service and finish the generator.
I have maintained SCC config for both trial and productive sub-accounts. But my OData URL http://MyDest/<path>; is not getting accepted.
I tried switching my target from BAS to both contexts but unable to get the connectivity.

I have been following your TechBytes program and any help will be appreciated.

Punit_Upadhyay
Explorer
0 Kudos

Hi Marius , Jeffrey and SAP UI5 Community,

I was trying to achieve the same and was able to get the expected result in SAP Business Application Studio. Although, to complete it I tried to deploy it in the html5 repo and integrate it in the SAP Launchpad services, which gave me an error while loading the metadata. I think I am missing replacing or adding some configuration in the descriptors for actual deployment regarding Odata consumption(Northwind). Could you or the community help in this area ?.

Thanks & With Best Regards,

Punit

master-detail-bas-running-before-deployment.jpg

master-detail-bas-running-after-deployment-and-pos.jpg

Answers (1)

Answers (1)

tashley
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi abheejat

For the OData URL option in BAS, only publicly accessible URL could be accepted. For example, i.e. https://services.odata.org/V2/Northwind/Northwind.svc/

It sound like you have already defined a destination to the on-prem system. In this case, could you try using "Connect to an SAP System"? The destination should be available following this approach.

Thanks.

Ashley

askmallik
Explorer
0 Kudos

Hi tashley

Currently we are evaluating BAS in a trial subaccount (lets call it subaccount A). But our cloud connector is connected to a different subaccount (B) from a different Global Account.

In this case can we access the destinations belonging to Subaccount 'B' from BAS in subaccount 'A' ?

Thanks, appreciate your help on this.

Abhishek

shrivasvishu_ey
Explorer

Hi tashley

Like you mentioned, adding it via URL works.

Adding to your second point, even though the service is added as an destination, "Connect to SAP System" approach doesn't work. I guess like mariusobert mentioned Northwind service is not considered an SAP system.