SAP Fiori tools includes an Application Generator that provides a wizard-style approach for creating applications based on SAP Fiori elements page types and the RAP back-end service you created in the previous chapters. You are going to use it to create your list report page app.
Once you are in the development space, you will see a Welcome page from which you can create the application project.
-
Open a folder: from the hamburger menu, open File > Open Folder… and choose the folder projects. It is displayed in the Open Folder dialog. Confirm the dialog by choosing OK.
-
From the hamburger menu, open View->Command Palette…, type Application Generator
, and select Fiori: Open Application Generator.
-
Select the tile List Report Page and click Next.
-
Now the application has to be connected to the OData service that was created in the previous chapter Prepare the RAP-Based Travel Service
Enter the parameters by selecting the according values from the drop-down lists provided. For the Service field choose your individual OData service ZUI_FE_TRAVEL_######_O4
.
Note: If you see an error within the footer indicating that your organization and space in Cloud Foundry have not been set, please have a look at Step 3: Set up organization and space of the tutorial Develop and Run SAP Fiori Application With SAP Business Application Studio.
Click Next.
-
Choose the main entity Travel
as shown in the screenshot.
Select No for Automatically add columns to the list page. There is no need to create default annotations, because you will maintain annotations in backend in the next tutorial Refine the List Report with Annotations.
Click Next.
-
Maintain further application attributes as shown in the screenshot below.
Be sure to choose exactly the Module name and the Application namespace as shown above, because these are referenced in the sample code.
Click Finish to complete the input of application parameters. The new SAP Fiori elements application is now generated using the service and the configurations you provided in this step.
After the project is generated, an Application Information page is shown giving you an overview of project details and tasks that you may perform on this project.
It is recommended that you keep this page open as it will be used in other steps. You can open it any time using selecting menu View->Command Palette… and select Fiori: Open Application Info
You will also see a new folder travellist
inside the PROJECTS
folder.