This is part 5 of the 6 series blog. Please start with Part 1: Introduction to understand the Use case, Solution Architecture, High-Level functionality, and context of this blog series.
This blog series is divided into 6 parts:
Part 1: Introduction
Part 2: SAP Ariba – API Setup
Part 3: SAP Integration Suite – Integration Flows Build
Part 4: Ariba Requisitions Service Application
Part 5: Ariba Requisitions Fiori Application
Part 6: Central Fiori Launchpad Setup
Part 5: Ariba Requisitions Fiori Application
Note: Fiori application built in this blog is ArbaReqsFA4-router. It is the same as the Ariba Requisitions Fiori Application depicted in the architecture diagram.
Build Ariba Requisitions Fiori Application (ArbaReqsFA4-router) Using SAP Business Application Studio
Create Multitarget Application Project
On SAP Business Application Studio,
- Click on the View menu
- Select Find Command… to bring up the command finder.
On the Command finder, type Fiori: Open CF Application Router Generator and Click on enter to display the Application Router Generator screen.
On the Application Router Generator screen, provide values as specified in the below tables and Click on Finish.
Step | Field Name | Value |
1 | Application router project path | Leave the default value as shown |
2 | MTA ID | ArbaReqFA4 |
3 | MTA description | A Fiori application for ariba reqs. |
4 | Add router module | Managed Approuter |
5 | Finish | Click on Finish button |
Note: ArbaReqsFA4 appears in the Projects pane. Wait for the notification The files has been generated appears at the right bottom of the screen.
Generate SAPUI5 Template-Based Application
On SAP Business Application Studio,
- Click on the View menu.
- Select Find Command… to bring up the command finder.
On the Command finder, type SAP Business Application Studio: New Project from Template and Click on enter to display New Project From Template screen.
On New Project From Template Screen,
- Select SAP Fiori application
- Click on Start to go to the Floorplan Selection screen
On the Floorplan Selection screen, provide values as specified in the below tables and Click on Next.
Field Name | Value |
Application Type | SAPUI5 freestyle |
Which floorplan do you want to use? | SAPUI5 Application |
Next | Click on Next button to display Data Source and Service Selection screen |
On Data Source and Service Selection screen, provide values as specified in the below tables and Click on Next.
Step | Field Name | Value |
1 | Data Source | Connect to an OData Service |
2 | OData service URL | This is the URL of the BTP Service you deployed in BTP Service section.
https://<your value>-dev-arbareqs-srv.cfapps.us10.hana.ondemand.com/v2/catalog Note: URL without the entity. |
3 | Next | Click on Next button to display Entity Selection screen |
On the Entity Selection screen, provide values as specified in the below tables and click on Next.
Step | Field Name | Value |
1 | View Name | arbarequisitions |
2 | Next | Click on the Next button to display the Project Attributes screen |
On the Project Attributes screen, provide values as specified in the below tables and click on Next.
Step | Field Name | Value |
1 | Module Name | arbarequisitions |
2 | Application Title | Ariba Requisitions |
3 | Description | A Fiori app for ariba reqs |
4 | Project folder path | /home/user/projects/ArbaReqsFA4
Note: This is the path to the ArbaReqsFA4 application router project created in the previous section |
5 | Add deployment configuration to MTA project | Yes |
6 | Add FLP configuration | Yes |
7 | Configure advanced options | No |
8 | Next | Click on the Next button to display the Deployment Configuration screen |
On the Deployment Configuration screen, provide values as specified in the below tables and click on Next.
Step | Field Name | Value |
1 | Please choose the target | Cloud Foundry |
2 | Destination Name | CAPArbaReqsDest
Note: This is the destination created earlier in the BTP Destination section |
3 | Next | Click on the Next button to display the Fiori Launchpad Configuration screen |
On the Fiori Launchpad Configuration screen, provide values as specified in the below tables and click on Finish.
Step | Field Name | Value |
1 | Semantic Object | Object |
2 | Action | display |
3 | Title | Ariba Requisitions |
4 | Next | Click on the Finish button to generate the Fiori project files in the ArbaReqFA4 directory |
Note: Wait until dependencies are generated and a message The project has been generated appears at the right bottom of the screen.
Layout Editor and UI Changes
In SAP Business Application Studio, perform the below steps in same sequenece.
- In the Projects panel, click on the ArbaReqsFA4 project to display the full project structure.
- Navigate to AribaRequisitions.view.xml file under ArbaReqsFA4 –> arbarequisitions –> webapp –> view directory.
- Right click on the AribaRequisitions.view.xml file
- Select Open With…
- Select Layout Editor
- Displays Layout Editor showing the empty canvas.
On Layout Editor, perform the below steps in the same sequence
- Type “list” and press enter to get search results in the Controls pane.
- Select List from the search results.
- Drag and drop in the AribaRequisitions.view.xml canvas.
- Select Entity Set as /Requisition
- Bind Title to field UniqueName
- Bind Description to field Name
Build and Deploy Ariba Requisitions Fiori Application Using SAP Business Technology Platform
On Explorer –> Projects pane,
- Select the ArbaReqsFA4 project to show the complete structure.
- Right click on mta.yaml file.
- Select Build MTA Project to start the build process. The build process creates a .mtar file that packages the project for deployment. Wait for the build process to complete and show a message saying MTA archive generated.
- ArbaReqsFA4_0.0.1.mtar file is created and saved in ArbaReqsFA4/mta_archives
On Explorer –> Projects pane,
- Select the ArbaReqsFA4 project to show the complete project structure.
- Right click on ArbaReqsFA4_0.0.1.mtar file.
- Select Deploy MTA Archive to start the deployment process. Wait for the ‘Process finished’ message to appear in the Task: Deploy MTA Archive panel
At this point, the SAP Ariba Requisitions Fiori is deployed as an application in your BTP SubAccount –> Space with the name ArbaReqsFA4-router.
Testing Ariba Requisitions Fiori Application (ArbaReqsFA4-router)
Go to the SubAccount and then to the Space where you deployed the ArbaReqsFA4-router application.
- Shows the list of all applications deployed to your SubbAccount –> Space
- Click on the ArbaReqsFA4-router to show ArbaReqsFA4-router – Overview screen
On ArbaReqsFA4-router – Overview screen,
- Make sure the application is in Started status. (If not, use the Start button to start the application)
- Click on the Application Route link to open the application in a new browser window.
You should see a new browser window with contents as below.
Next In Series
Part 6: Central Fiori Launchpad Setup