segunda-feira, 30 de dezembro de 2019

How to install a FIORI ap

Info
This guide will focus on the installation of a ‘Create Sales Orders’ Transactional Fiori App in an ABAP environment on ERP 6.0 EHP 7 running embedded Gateway using transaction SAINT. There are also other ways to install the apps with SAP Maintenance Planner not described here.

Prerequisites
Make sure you have installed and configured the Gateway and all necessary SAPUI5 components.

Business Scenario
You have been asked to simplify the user experience at your company to save up on training for new and existing employees for Field Sales Representatives. You have heard of FIORI but are not sure how to start.

Step 1 – Find a FIORI app to simplify Sales Orders creation
Access the following link: https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/ and search for ‘Create Sales Orders’ app.
The above website should be the main starting point when implementing a FIORI app. It describes the app features, installation information, configuration as well as extension points which tell you what features of the standard app can be enhanced. If you can’t find a relevant FIORI app, you may consider creating a custom one.
Once you have found the required app, you may want to check the database it runs on as well as the prerequisites for installation:
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_66070.png
‘Any DB’ means we don’t need the HANA database. If the above says ‘HANA’ then we either need SAP Business Suite on HANA or S/4 Hana in order to install and run the app.

Step 2 – Deploy the Front-End Components
a)    Download the Front-End component files
From the FIORI catalogue identify the front ends components to be installed (Implementation Information/Installation/Front-End Components):
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_60250.png
Download the above component from: https://launchpad.support.sap.com/#/softwarecenter
Along with all the corresponding support packages 0001-0010
Example:
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_66744.png
b)    Install the files
Log in to client 000 of your system.
Run transaction SAINT.   
Install the downloaded UI components.
c)    Activate the SICF for App URL
Identify name of the app from the Fiori apps library (Implementation Information/Configuration/SAPUI5 Application)
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_99279.png
Run transaction SICF and use the following path: default_host -> sap -> bc -> UI5_UI5 -> sap -> sd_so_cre
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_15130.png
You can see that the service is grey which means inactive. Right click it and activate.

Step 3 – Deploy the Back-End Components
a)    Download the Back-End components files
From the FIORI apps catalogue identify the front ends components to be installed (Implementation Information/Installation/Back-End Components):
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_26217.png
Download the above component from: https://launchpad.support.sap.com/#/softwarecenter
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_70769.png
Along with the support packages 0001 – 0008
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_52788.png
 b)    Install the files
Log in to client 000 of your system.
Run transaction SAINT.
Install the downloaded Back-End components.
c)    Activate the OData service
 Identify the name of the OData Service from the Fiori apps catalogue (Implementation Information/Configuration/OData Services)
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_35092.png
Run transaction /IWFND/MAINT_SERVICE and click ‘Add Service’:
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_43439.png
Choose the System Alias and Technical Service Name:
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_37953.png
Select the displayed Backend Service and click on ‘Add Selected Services’: 
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_6783.png
You will get an ‘Add Service’ pop up. Assign a package (I am using a local object for test purposes – in real scenario create a package)
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_12448.png
And press continue.
The OData service should now be visible in the Service Catalog of transaction /IWFND/MAINT_SERVICE
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_91139.png
Step 4 – Authorizations
SAP provides you with role templates once you install the relevant app components. You can either use the existing components or take a Z copy of the template. It is up to your authorization team and should be adapted to your authorization concept.
Since I am using embedded Gateway the following steps may differ if using Gateway Central Hub Deployment where you need to take care of authorizations both on the ECC side and the Gateway side.

a) Create PFCG role with Launchpad Start Authorization

Copy role SAP_UI2_USER_700 under the Z namespace e.g. Z_UI_USER
Click on the ‘Menu’ tab and add ‘Authorization Default’
null
Add IWSG authorizations for: ZINTEROP_0001 and ZPAGE_BUILDER_PERS_0001
Go to tab ‘Authorizations’ click on ‘Change Authorization Data’
Click:
Add the following authorization objects:
Make sure the traffic lights are green by clicking on them:
Generate the authorization profile and save it.
Assign the authorization role to the user in the ‘User’ tab and click on ‘User Comparison’

b) Create PFCG Role for Launchpad Catalogues and Groups
Find the business role template in the FIORI apps library documentation for our SD app.
Go to transaction PFCG and copy it into the Z namespace e.g. ZSAP_SD_BCR_FIELDSALESREP_X1
In our new role we can see that the following elements have been copied:
Which gives users access to the tile catalogue and tile group in the FIORI Launchpad.
Generate a profile and assign to the user just like in step a)
c) Create PFCG role to access oData services
Copy roles SAP_SD_SO_CRE_APP under Z namespace e.g. ZSAP_SD_SO_CRE_APP
Add IWSG authorizations for: ZSRA017_SALESORDER_CREATE_SRV_0001
Go to the ‘Menu’ tab and click on add ‘Authorization Default’
Enter the following details:
Save the role menu and you should now see the following:
Generate the profile and assign to the user just like in step a)
Note: In backend the user must have authorization to RFC trusted connection if you have a central hub gateway.
To check for authorisation issues to the backend use transaction: IWFND/ERROR_LOG

Step 5 – Test the app
The natural environment as an entry point for FIORI apps is the FIORI Launchpad which is a container for all your FIORI apps and it should be used in the production environment. After the installation you may want to test if the app is working correctly and test it in the standalone mode.
In order to run the app in a standalone mode you need to use the following link format:
http://<server>:<port>/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=<client>#Shell-runStandaloneApp?sap-ushell-SAPUI5.Component=<ComponentName>&sap-ushell-url=<Encoded-URL>&<AdditionalApplicationParameterKey>=<AdditionalApplicationParameterValue>
Server and port
This is your server name and port your app will be running on
Component Name
To get the Component name run the following link: http://<server>:<port>/sap/bc/ui5_ui5/sap/sd_so_cre/Component.js
And get the component name:
http://www.absoft.co.uk/media/content/dbcae5d0917803ae4868c322bcdaa669_10318.png        
Shell url
This is the URL pointing to the app resource file location on the server: /sap/bc/ui5_ui5/sap/sd_so_cre
The full link will look as follows:
http://server_name:8000/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=060#Shell-runStandaloneApp?sap-ushell-SAPUI5.Component=cus.sd.salesorder.create&sap-ushell-url=/sap/bc/ui5_ui5/sap/sd_so_cre
You should now be able to test your app in the standalone mode. The configuration of the Fiori Launchpad will be described in my next blog.



Nenhum comentário:

Postar um comentário