Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@sap/generator-fiori
Advanced tools
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
The SAP Fiori application generator provides a single entry point to generate both SAP Fiori elements applications and SAP Fiori freestyle applications. Users can choose the type of template required, along with the relevant data source, and an application will be generated into the specified folder.
The generated application conforms to the Fiori Design guidelines and SAP best practices.
npm install -g yo
. Note: yo
version 4.3.0 or higher required for macOS Monterey.npm install -g mta
.The SAP Fiori generator can be installed using either of the following methods:
Install the generator from NPM
Execute
npm install -g @sap/generator-fiori
Install the generator from the SAP Fiori Tools extension pack.
After installation, verify your installation to see if Yeoman has been installed correctly with the Fiori generator.
yo
Make sure you see the @sap/fiori
generator listed.
yo
OR
CMD + Shift + P -> Open Application Wizard
SAP Fiori application
CMD + Shift + P -> Fiori: Open Application Generator
. This will launch the Yeoman UI Wizard but restrict it to just work with with the SAP Fiori Tools Application Generator.Once SAP Fiori application generator is launched successfully, a user is asked to choose the application type. The user can choose between Fiori elements and Fiori freestyle applications. The templates (floorplans) of the selected application type are then listed for user to choose.
Select the required template type to use when generating your application. The generator currently supports the following templates:
SAP Fiori elements
SAP Fiori freestyle
Currently, the generator supports the following methods to provide the Data Source:
Connect to a System
You can connect to a System in VSCode by selecting one of the following methods:
In both cases, if you choose to save the SAP system for future reference, the system details will be stored in the secure storage location of your operating system.
Connect to an OData service
Enter the OData endpoint URL you wish to use in your generated application. Currently, the generator supports an OData endpoint that is either unauthenticated or authenticated with Basic authentication. For an authenticated OData endpoint, you will be asked to provide a username and password.
Connect to SAP Business Accelerator Hub
You can use any of the services available in the SAP Business Accelerator Hub by providing your authentication details and choosing the relevant service.
Use a Local CAP Project
For Odata V4 CAP projects, you can reference an existing project and use the service in that project during generation.
Upload a data service metadata file
Upload a service metadata file that represents the back end service from the file system. This allows the user to generate the application without relying on a back end service being available.
Note: Uploading a data service metadata file will restrict the generated application to only be available using mock data.
Once the data source has been supplied, the SAP Fiori application generator will present a list of entities from the OData service to choose.
In the next step, provide the following information:
Module name Required. Must be alpha-numberic and cannot contain spaces. The generated NodeJS application will use the module name as its package name. Will also be used as the folder name of the generated application.
App Title Required. This will be the title in the header of the generated application
Namespace Required. The UI5 project namespace to be used. Must start with a letter and contain letters, digits and periods only.
Description Required. The text description of the application.
Parent Folder Required. The parent folder into which the new application will be generated. The new application will be generated in a new folder with the Module Name
as detailed above. If there already exists a folder with the same name, the user must choose a new Module name.
Advanced Configuration Optional. The user can choose to customise the generated application with the following options:
Deployment Configuration Optional. If selected, an extra step will be added to the generator for adding deployment configuration using either ABAP or Cloud Foundry
FLP Configuration Optional. If selected, an extra step will be added to the generator for adding Fiori launchpad configuration to the generated application.
After the application has been successfully generated, open a terminal and browse to the root folder of the generated application. For a V2 template application, there are two methods available to run the application:
Running the application with connection to the live OData endpoint
Start the application using npm start
. This will make the application available on localhost:8080
, and will connect to the live OData endpoint. If the OData endpoint requires authentication, the user will be asked to authenticate in the browser.
Running the application using mock data (V2 only)
Start the application using npm run start-mock
. This will make the application available on localhost:8080
, but will use a mock server to reflect the OData endpoint. This ensures that developers can use the application without having to connect to a live OData service.
Running the application using context menu
Under the src
folder, find the app.json
file. Right click and select Open Preview in Browser (launches a browser with your application).
The generated application requires the following software to be installed:
Join the SAP Fiori Tools Community. Ask Questions, Read the Latest Blogs, Explore Content. Please assign tag: SAP Fiori tools
To log an issue with SAP Fiori Tools, please see Contact SAP Support.
FAQs
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
The npm package @sap/generator-fiori receives a total of 89,552 weekly downloads. As such, @sap/generator-fiori popularity was classified as popular.
We found that @sap/generator-fiori demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.