19

SAP Fiori – Steps to configure Custom Fiori App for any SAP T-Code

 1 year ago
source link: https://blogs.sap.com/2023/02/20/steps-to-configure-custom-fiori-app-for-any-sap-t-code/
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.
neoserver,ios ssh client

SAP Fiori – Steps to configure Custom Fiori App for any SAP T-Code

SAP Fiori – Steps to configure Custom Fiori App for any SAP T-Code

  • SAP has provided SAP GUI Apps for which currently no Fiori Apps exits in S/4 HANA 2020 SP02
  • In our company current Greenfield project, we were provided list of SAP T-Codes to determine, if SAP Standard Fiori Apps exits for the same. Many T-codes and programs had no associated Fiori or GUI Apps
  • For Security team there was no APP for T-codes SU53, SUIM, STAUTHTRACE, SE116N, SU01D Etc., which was needed to capture authorization errors during testing phase
  • For T-codes or programs where no apps existed the Business users of clients were interested to access such T-codes or programs via the Fiori Launchpad. In short, the Business user should be able to visualize these T-codes or program as a Tile Icon from Fiori Launchpad,
  • This blog will show how to configure the SAP T-Code into Transaction App in easy step-by-step process
  • For this SAP has released a new Launchpad App Manager Tool /N/UI2/FLPAM starting from SAP S/4HANA 2020
  • The main purpose of this tool is to manage all technical catalogs in one place only, thus providing a simpler experience for managing launchpad app descriptor items
  • This is now the preferred configuration tool to create, maintain, and setup Technical Catalogs Only
  • This app can be accessed by admin users by using Fiori launchpad (/N/UI2/FLP)
  • With the advent of this App the Launchpad Designer tool will be deprecated by SAP in near future, in short, the new tool will supersede the same
  • This new central tool will be used to maintain Tiles and Target Mapping (T+TM) and is an immensely powerful tool. This serves as a single point of entry for numerous filtering options
  • Note: This app removes the confusion between Technical and Business catalogs
  • The Launchpad App Manager allows an admin to do following:
  • Create and maintain Technical Catalogs Only
  • This is only option to create Technical Catalogs
  • Allow performing mass changes/ maintenance of tiles and target mappings
  • It can contain multiple launchpad app descriptor items and maintain them
  • Explore existing technical catalogs and their related content
  • Extremely easy to copy and adjust tiles and target mappings, as everything is within a windows
  • Allows to maintain following for Technical Catalogs
  • UI5 (SAP Fiori App)
  • GUI (GUI Transaction)
  • WDA (ABAP Web Dynpro Application)
  • WCF (Web Client UI Framework)
  • URL (URL)
  • Where-used list quickly identifies similar tiles and Target mapping
  • Can reference Tile and Tile mapping from Different Technical Catalogs
  • It provides an option for translate into various language
  • SAP now recommend using the Launchpad App Manager tool to explore and maintain Technical Catalogs only, which then can be referenced to create new Custom Business Catalogs (using /N/UI2/FLPCM_CUST) within a Role
  • In this blog beside creating few Custom T-Codes Apps we will also check how to add SAP GUI and Fiori Apps in the Technical Catalog as an exercise

STEP 1: Check the System Status

  • We are on the S/4 HANA 2020 is SP02 and it is an Embedded System
Capture1-5.jpg
  • Since we are working on Embedded deployment, here we will maintain catalog type as Standard

STEP 2: T-Code MCXA As an Example

  • SAP Transaction Code MCXA (QMIS: Material Analysis-Lot Overview) is part of Material Management module
  • We are going to create a custom SAP GUI App for T-Code MCXA
  • In S/4 HANA system execute MCXA
Capture2-2.jpg
  • SAP GUI Application for MCXA should look like above screen

STEP 3: Verify T-Code marked as SAP GUI for HTML

  • Execute transaction SE93 and verify/check whether the transaction is marked as SAP GUI for HTML
Capture3-2.jpg
  • Click option >> Display
Capture4-2.jpg
  • MCXA is marked for GUI HTML, hence can be converted into a GUI App

STEP 4: Create a Custom Package

  • To create a custom app for SAP T-code we should create package and transport before hand
  • Go to SE80 and create Package
  • We need to create Package for Technical and Business Catalog as well as transport request
Capture5-1.jpg
  • Select the option Package from drop down as shown below under >> Class/Interface
Capture6-1.jpg
  • Enter the Package name
    • ZFIORI_BUSINESS_CATALOG_PKG
Capture7.jpg
  • Hit the Enter Key
Capture8.jpg
  • Click option >>Yes
Capture9.jpg
  • Enter details
Capture10.jpg
  • Click >> Continue>> and enter Transport details
Capture11.jpg
  • Click the option >>Save
Capture12.jpg
  • Request number is >> S4HK900345
  • Click >> Continue
Capture13.jpg
  • The package ZFIORI_BUSINESS_CATALOG_PKG created
  • Similarly create package for Technical Catalog
    • ZFIORI_TECHNICAL_CATALOG_PKG
Capture14.jpg
  • Transport Details
Capture15.jpg
  • Package created
Capture16.jpg
  • List of packages created
Capture17.jpg
  • Details of Packages created are listed below:

Capture18.jpg

  • SE10 Screenshot of Packages Created
Capture19.jpg

STEP 5: Determine Application Components for T-Code

  • To create an existing T-Code to an App, it is a good practice to determine the Application Components used by SAP and which can be used, when creating Custom Semantic Object and Action for a given T-Code App
  • This is done by using T-code: KTRAN
Capture20.jpg
  • Click the icon >>Execute
Capture21.jpg
  • Here, selects the option >>Exact Search
  • Under Transaction Search Term: Enter the T-Code MCXA as shown below
Capture22.jpg
  • It gives the desired Information which can be used to obtain the value of Applic, Component and this for MCXA is QM-QC_IS
  • Beside MCXA, we will also create few more custom Apps, listed below with description and the associated Components
Capture23.jpg

STEP 6: Create Semantic Object

  • To create an existing T-code to an App we need to create the intent which is Semantic Object and action. Create Semantic object by using either T-code
    • /N/UI2/SEMOBJ_SAP
    • /N/UI2/SEMOBJ
  • Note: For any T-Code for which we need to create custom require creating of Semantic Objects and It should be created only if there are no SAP equivalent App available in SAP Fiori Library and the Business/Organization has the need for the same. For example, when you create a custom application for any business entities that are specific to any business stream or sub stream, the Custom Semantic Objects that will be created should follow customer naming convention nomenclature and should start with either Z or Y. Furthermore, the action field is a free text option and SAP provide many lists of the actions from where it can be chosen. Remember Action should always be in lowercase with no spaces and underscore
  • Action determines what it will do and has no direct impact on any authorization. Authorization for custom T-Code should be maintained in PFCG – like Create, Display etc.
  • Semantic Objects are created by Using T-Code: /N/UI2/SEMOBJ_SAP
Capture24.jpg
  • Click the >>Change >>icon option
Capture25.jpg
  • Click >> Continue
Capture26.jpg
  • Click >> Continue
Capture27.jpg
  • Click >> New Entries
Capture28.jpg
  • We are going to use the following table below to create and define some of the desired Semantic Objects

Capture29.jpg

  • Enter the detail as shown below:
Capture30.jpg
  • Click the option >> Save
Capture31.jpg
  • Click the >> Create >>icon to create new Transport Request
Capture32.jpg
  • Click the >> Save
Capture33.jpg
  • Click >> Continue
  • Custom Semantic object is now created and at bottom of the screen a message is displayed showing >> Data was Saved
  • Click the >> Go Back >>icon
Capture34.jpg
  • Overall Semantic objects created are listed below
Capture35.jpg
  • Will use some of them as an example and also show the option Copy and Paste, which also works.

STEP 7: Create Custom Technical Catalog

  • Technical Catalogs contain Original Launchpad App Descriptor Items
  • Technical Catalog allows you to create Tile+TM (Tile + Target Mapping)
  • Technical Catalogs delivered by SAP have the prefix starting with SAP_TC*
  • In Technical Catalog we can maintain other Apps like below:
    • UI5 (SAP Fiori App)
    • UI5 (SAP Fiori App)
    • GUI (GUI Transaction)
    • WDA (ABAP Web Dynpro Application)
    • WCF (Web Client UI Framework)
    • URL (URL)
  • Technical Catalogs allows Reuse of Apps, classic UIs, and navigation
  • The primary purpose of a Technical Catalog is the reuse of Apps.
  • Technical Catalogs provide a common central source of Launchpad App Descriptor Items that can be referenced by Business Catalogs
  • Technical Catalogs should never be assigned to Role as it will give access to many more Apps then required and will have SoD’s issues
  • Technical Catalogs allows you to create your own App Descriptor Item
  • In Technical Catalog, we can copy Launchpad App Descriptor from SAP Technical Catalogs and use the same and modify as needed
  • Now to create new Custom Business Catalog use the T-code for Fiori Application Manager T-Code: /N/UI2/FLPAM
Capture36.jpg
  • Chose the option >> Switch to Search
Capture37.jpg
  • Create a new Technical Catalog by clicking the option >> New Catalog
Capture38.jpg
  • Enter the details as shown below:
Capture39.jpg
  • For Package, select as shown below:
Capture40.jpg
  • Click the option >> Go
Capture41.jpg
  • The final screen looks like this, make sure Transport created earlier is selected
Capture42.jpg
  • Now search for transport created earlier
Capture43.jpg
  • Note: Here we see only Workbench Request, as we are doing development work
  • The final screen is as shown below:
Capture44.jpg
  • Click the option >>Save >> and following screen shows up with Technical catalog created and add custom objects
Capture45.jpg
  • Here, click the icon >> Insert >> to add Custom Semantic Object created earlier
Capture46.jpg
  • Whatever field is updated or add in the above screen gets populated in the bottom screen
Capture47.jpg
  • Under option Action use the >> Search >> icon option
Capture48.jpg
  • Select the option >> display
  • Under App Type >> Select >> Transaction
Capture49.jpg
  • Now following shows up in the below screen
Capture50.jpg
  • Under the option >> * Transaction Code>> enter transaction code MCXA >>  and hit enter
Capture51.jpg
  • The above screen >>Target Application >> automatically updated with the transaction >>  MCXA
  • At the bottom click the option >> Save
Capture52.jpg
  • It shows at the bottom of the screen a message is displayed showing  >> Data were Saved >>  successfully
  • If there is any error, it will show up here
  • Now in the same screen click the option >> Tiles(0)
Capture53.jpg
  • Select the option >> Add Tile >> and gives two options to select from
    • App Launcher – Static
    • App Launcher – Dynamic
Capture54.jpg
  • Select the option >> App Launcher – Static
Capture55.jpg
  • Under the header option >> Tile >> enter the tile description >>  and hit Enter
Capture56.jpg
  • Now under the header option >> Tile Icon>> search for the Tile Icon
Capture57.jpg
  • On my server this >>Tile Icon >> option is not available, but you can select >> Display
Capture58-1.jpg
  • At the bottom click >> Save
Capture59.jpg
  • This is the minimum information needed for Custom Creating Semantic Object Tiles, you can add more info if needed
  • You can download the information by clicking option àà download
Capture60.jpg
  • We have now created a Technical with only one Custom Semantic object
  • We will add others objects later

STEP 8: Create Custom Business Catalog

  • After creating Technical Catalog, we need to create Business Catalogs
  • Business catalogs contain references to Launchpad App Descriptor Items stored in technical catalogs
  • Business Catalogs delivered by SAP starting with the prefix SAP_BC*
  • Now to create new Custom Business Catalog use the T-code for Fiori Application Manger Tool: /N/UI2/FLPCM_CUST
Capture61.jpg
  • Click the option>> Create >> to create new Business Catalog
Capture62.jpg
  • Enter below details

Capture63.jpg

  • Add Business Catalog details
Capture64.jpg
  • Click >>Continue
Capture65.jpg
  • Click the >> Create >>icon
Capture66.jpg
  • Click the option >>Save
Capture67.jpg
  • Click >> Continue
Capture68.jpg
  • Click >> Add Tiles/Target Mappings
Capture69.jpg
  • Select the option>> Add Tiles/TMs to Selected Catalog
Capture70.jpg
  • Under the option >> Search Tiles/Target Mappings >> enter the Technical Catalog name
Capture71.jpg
  • Click the option >> Go
Capture72.jpg
  • Now select the option >> Add Tile/TM Reference
Capture73.jpg
  • At the bottom of the screen a message is displayed showing  >> 1 tile(s) and 1 target mapping(s) added to catalog ‘ZBC_MATERIAL_MANAGEMENT1’
  • Create a Transport by clicking >> Transport
Capture74.jpg
  • Create a new transport by clicking >> Create
Capture75.jpg
  • Click >> Save
Capture76.jpg
  • Click the >>Continue icon
  • At the bottom of the screen a message is displayed showing >> Catalog ZBC_MATERIAL_MANAGEMENT1 recorded successfully in transport request
  • Now select the tab >> Tiles/Target Mappings
Capture77.jpg
  • Now search for the tile >> Material Analysis-Lot Overview (MCXA)
Capture78.jpg
  • Click >> Go
Capture79.jpg
  • The above screen shows where the Tile belongs to in the bottom screen
  • Note: Technical catalog cannot be edited here as it is Read-only and is selected
  • Business Catalog can be edited as the Read-only is not selected

STEP 9: Check SU24 option for MCXA

  • For MCXA check SU24 objects maintained
Capture80.jpg
  • Click >> Execute
Capture81.jpg
  • Select the >> Set Filter >> option
Capture82.jpg
  • Click the >>Continue icon
Capture83.jpg
  • These Objects will show up when we create the custom role via PFCG

STEP 10: Create Custom Role for custom T-Code

  • Now create Custom role for T-Code: MCXA
    • ZFIORI_MM_CUSTOM_TCODES_APPS
    • CUSTOM MATERIAL MANGEMENT ROLE FOR CUSTOM TCODES, SAP GUI AND FIORI APPS
  • Use T-Code: PFCG
Capture84.jpg
  • Click >>Save
  • Under the option >> Menu
Capture85.jpg
  • Select option >> Launchpad Catalog >> and search for the Custom Business Catalog created
Capture86.jpg
  • Click the search option >> Display
Capture87.jpg
  • Click the >> Continue icon
Capture88.jpg
  • Click the icon >> Continue
Capture89.jpg
  • Expand the node >> BUSINESS CATALOG FOR MATERIAL MANAGEMENT MODULES
Capture90.jpg
  • Click option>> Change Authorization Data
Capture91.jpg
  • In the above screen we can maintain and Define Organization level, here we maintain * for Master Role we can maintain blank ‘ ‘
  • Click >>Save >> and Generate the role
Capture92.jpg
  • The above screen shows all the objects maintained in SU24 have been populated within the above PFCG role

STEP 11: Create a Test User

  • Now create a test user and assign the role created and check if the Tile are assigned
Capture93.jpg
  • Two roles are assigned to the test user >> TEST_FIORI
  • Log in as test user by using T-code: /N/UI2/FLP
Capture94-1.jpg
  • Click >> Log On
Capture95.jpg
  • Click the symbol >> TT
Capture96-2.jpg
  • Select the option >> APP Finder
Capture97-1.jpg
  • The App shows up along with the Catalog name
  • Double click the App
Capture98.jpg
  • The App works and has the same output screen as SAP T-Code >> MCXA

STEP 12: Create more Semantic Objects

  • Add some more new Semantic Objects
Capture99.jpg
  • Click >> Save
Capture100-1.jpg
  • Select the same transport created earlier and click >>Continue >> icon at bottom of the screen it shows >> Data was saved
  • Click go back icon
  • Final screen is as follows below
Capture101.jpg
  • Note: It is a good practice to create Excel File with all details of Custom apps to be created as we can copy and paste in the T-Code: /N/UI2/FLPCA

STEP 13: Update Technical Catalogs

  • Add new Semantic Objects created to the Technical Catalog
Capture102.jpg
  • Added four more Custom Semantic Objects
  • Now we will add an SAP GUI APP>> MM71 >> to the Technical Catalog
Capture103.jpg
  • Select the option >> Copy from Other Catalog
Capture104.jpg
  • Here you can use search term or use Technical catalog where the SAP GUI resides
  • In the field>> Search Term >> enter MM71
Capture105.jpg
  • Now click >> Go
Capture106.jpg
  • Click at the bottom of the screen a message is displayed showing >> Copy
Capture107.jpg
  • Here the App is missing Target Application Tiles, which can be added
Capture108.jpg
  • Note: Make Sure you update both places as shown in the above screen
  • Now add any Fiori App
Capture109.jpg
  • Add Fiori App F0842A
Capture110.jpg
  • The Purchase Order App has now been added
Capture111.jpg
  • Everything in the above screen in required order
  • Click >> Save
Capture112.jpg
  • All data was successfully saved message is displayed at bottom of the screen showing >> Data were saved
  • The final screen shot is as shown below
Capture113.jpg
  • The above is the final screen

STEP 13: Update Business Catalogs

  • Business Catalog update is done in /N/UI2/FLPCM_CUST
Capture114.jpg
  • Select under >> Add Tiles/Target Mapping >> and select the option >> Add Tiles/TMs To Selected Catalogs
Capture115.jpg
  • Click >> Go
Capture116.jpg
  • Note: Initially GUI and Fiori Apps do not show up, you need to log out and log back in the system
  • Select as shown below
Capture117.jpg
  • Select >>Add Tile/TM Reference
Capture118.jpg
  • The Business Catalog got updated
  • Click >> Transport
Capture119.jpg
  • Select >> Own Requests >> to check if this is the right transport
Capture120.jpg
  • Click the icon >> Continue
  • Bottom of the screen it shows tiles added message is displayed>> 6 tile(s) and 6 target mapping(6) added to catalog ZBC_MATRIAL_MANAGEMENTS1
  • Now perform the check by Clicking as shown below
Capture121.jpg
  • Select >>Check and Show Service
Capture122.jpg
  • All OData services are green, meaning they are activated
  • If anything is red click >>Activate and Maintain Services >>   and maintain
  • Select the tab >> ICF Services
Capture123.jpg
  • All ICF Services are green
  • If anything is red select the option >>Define Services >> and activate the service

STEP 15: Update the role in PFCG

  • In PFCG and get into Change mode
Capture124.jpg
  • Right click the catalog >>BUSINESS CATALOG FOR MATERIAL MANAGEMENT MODULES
Capture125.jpg
  • Select >>Details >>  or the icon >> Detail
Capture126.jpg
  • Click the icon >> Continue
Capture127.jpg
  • At the bottom of the screen a message is displayed showing >> Nodes text changed
  • Save the role
Capture128.jpg
  • At bottom it shows >> Data saved
  • The Authorization tab turns red
  • Click >> Authorization
Capture129.jpg
  • Select the option >> Expert Mode for Profile Generation
Capture130.jpg
  • Choose >>Read old status and merge with new data
Capture131.jpg
  • Choose >>Full authorization >> and click >> Save >>  and at bottom of the screen  a message is displayed showing  >> Org. levels were saved
Capture132.jpg
  • Maintain as desired
Capture133.jpg
  • At the bottom of the screen a message is displayed showing  >> Profiles(s) were updated
  • Log in as a test user
Capture134.jpg
  • All apps show up
  • Hope you like my blog, appreciate your feedback
  • For more information visit following blogs

Further Reading

SAP Fiori for SAP S/4HANA – Adding Custom Content to Business Roles | SAP Blogs

How to Configure Custom Fiori App for SAP Transaction Code (On-Premise) on Central Hub – ERP Q&A (erpqna.com)

Update Authorization Defaults for Tile Catalogs | SAP Help Portal

SAP Security for S/4HANA – How Adding Business Catalogs to the Role Menu automates authorization maintenance | SAP Blogs


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK