2

Setting up a UI5 Application on BAS for CAPM Full Stack UI5 Development

 2 years ago
source link: https://blogs.sap.com/2022/04/04/setting-up-a-ui5-application-on-bas-for-capm-full-stack-ui5-development/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
April 4, 2022 4 minute read

Setting up a UI5 Application on BAS for CAPM Full Stack UI5 Development

Welcome to the fifth episode of the Series: SAP CAPM Full Stack UI5 Application with CRUD Operations. Till now we have created Development Space in BAS, set up a project structure for development, created entities and exposed the same as Odata services. In this episode, we will create a FreeStyle UI5 Application for the project.

Assumption(OR Must Have to Start):

  • You have followed our previous episode where we create entities and exposed the same.

Your project structure should look like below if you carefully followed all our previous episodes.

47-2.png

We will be using Template Wizard to create the UI5 application.

So lets start,  choose the app folder

a1.png

Click on View & Choose Find Command from the list.

A2.png

You will get the below screen with list of commands.

A3.png

Type command

Open Template Wizard

a4.png

You will see the Template Wizard Screen like below.

a5.png

Choose SAP Fiori Application from the available list of templates & click start.

A6.png

This will start the Wizard Flow, First it will show the Floor plans. We have 2 Application types here

  • SAP Fiori Elements
  • SAPUI5 Freestyle

A7.png

We will choose SAPUI5 Freestyle as we want to create things from scratch. Secondly, we will choose SAPUI5 Application as the floor Plan & click next.

a8-1.png

Now, we will get the option to choose the Data Source for the application. We get the below list of options which include various types of Data Sources.

a9.png

Here in our case we will use Local CAP Project that we created in our previous episodes. As we want to consume the Entities that we created in our CAP project.

a10.png

Next it will ask to browse the project folder of the Local CAP Project , so click on browse to map our created project.

a11.png

It will show all the available projects in your workspace.

A12.png

Click on the created project & click on Open.

a14.png

Now , it will show the available Odata services , we will choose Catalog Service that we created in our previous episodes.

A15.png

Now click on Next to proceed to Entity Selection.

A16.png

Here it will ask to choose a View Name for your Application.

a17.png

We are naming it as Home, then click next.

73.jpg

Now we will be asked for Project Attributes.

74.jpg

Kindly follow and use as per the below screenshot.

75.jpg

We want to Deploy the App on Fiori Launchpad so will set FLP Radio button to Yes & click on Next.

76.jpg

Now we will be requested for FLP Configuration.

77.jpg

You can refer to the Below screenshot for the details & click on Finish.

78.jpg

You will see the Application Details like below finally.

79.jpg

Your Final Project structure should look like below:

80.jpg

Now, just to npm install in the terminal to download all required node modules.

npm install

81.jpg

Feel free to drop your comments in the comment section.

In this blog post we have learnt how to create Free Style Application for CAP Based Project

In the next blog post we will see how to set add data to our databse entity.

Further reading – https://cap.cloud.sap/docs/guides/

Next Episode: Coming Soon.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK