Fiorizar
sábado, 20 de maio de 2023 21:01
https://stratserv.co/2022/03/how-to-add-abap-custom-sap-transactions-to-the-fiori-launchpad-by-saps-abir-cherif/
1. Create semantic object :
Use the transaction «/N/UI2/SEMOBJ_SAP» to create a semantic object. Click on the «New
Entries» button and enter the name of the semantic object «ZFI_PAY» as shown in the
screenshot below.
2. Create business catalog :
Open the Fiori Launchpad designer using the transaction «/N/UI2/FLPD_CUST» or by
opening this link : https: // : /sap/bc/ui5_ui5/sap/arsrvc_upb_admn/main.html
Next, create a new catalog by clicking « + » :
Select the «standard» catalog, enter the «title», the «ID» and click «save».
NB: you can always modify the title, but the identifier (ID) cannot be changed.
The business catalog ID and the group ID are useful it will be used when configuring the role.
Click on the tile icon, then click on «+» to add the tile.
Select « App Launcher – Static ».
Página 1 de ABAP
Select « App Launcher – Static ».
Enter the following details «Title», «Subtitle», «Icon», «Semantic Object», the «action» and
click on «save».
The new fiori tile «Payroll integration » is created successfully.
Next, you need to create a new target mapping by clicking on « create target mapping ».
To configure the target, enter the following details: « semantic object», « action», « application
type», « title», « transaction» and click « save».
Página 2 de ABAP
Here is the result we get.
Before finishing, make sure to assign the configuration to a transport request (customizing
request).
Uncheck the «None (Local Object) » checkbox, and then choose the customizing request from
the drop-down box and click «OK».
3. Create Group :
Choose «Groups» from the top toolbar and click on the «+» icon on the left bottom of the
screen to create a new group.
Add the « Title» and the «ID» of the group then click on «save».
Página 3 de ABAP
Click on the icon «+» to add a tile.
Search the business catalog and click on the «add button» to add the tile.
Once it turns green, it means it is added successfully to the Group.
4. Create role and assign to the user :
Use the transaction «PFCG» to create a simple role that will call the custom catalog and
group.
Enter the role name «ZS_FI_PAYE2» and click on « single role».
Next, go to the «menu» tab, click on transaction -> SAP Fiori Launchpad -> Launchpad
catalog and Launchpad group.
Página 4 de ABAP
catalog and Launchpad group.
Assign the catalog and the group name, created in the previous step, to the role.
To visualize the tile, navigate to the user tab, enter the user ID and click save.
Finally, with the transaction /N/UI2/FLP you can view the tile in Fiori Launchpad.
Second method :
In this method we will follow the steps indicated in this diagram.
1. Create semantic object :
Use the transaction «/n/UI2/SEMOBJ_SAP» to create a new semantic object
«ZFI_PAY2» as indicated in the preceding method.
2. Create the technical catalog :
Open mass maintenance tool for app descriptors by executing the FPM Application
Configurations in the «SUI_TM_MM » package.
Página 5 de ABAP
Also, we can follow the tree below :
Define the catalog name « ZTC_FI_PAY2 » and add the semantic object «ZFI_PAY2».
Enter the package and the transport request.
Página 6 de ABAP
Fill these fields: the «semantic object », the «semantic action », the «application type »,
the «transaction code », the «target application title», the «target mapping information »
and click on «save ».
3. Add the mapping between the technical catalog and the system alias:
Map the custom back-end catalog to the front-end alias system by modifying the entries of the
table «/UI2/V_ALIASCAT » using the transaction SM30.
Enter in the catalog, the technical catalog name «ZTC_FI_PAY2» and the alias «S4FICA» and
click on «save».
4. Replicate application backend application to the frontend :
Run the extraction report «/UI2/GET_APP_DESCR_REMOTE_DEV» to extract the
Backend application descriptors and replicate them to the Frontend Technical Catalog.
Choose the «technical catalog», the «system alias», set «add transaction code to tile», set full
replication to the «Replication mode» and click «execute».
5. Create business catalog by reference to the technical catalog :
Open the Fiori Launchpad designer, search the technical catalog and swipe down to create a
reference catalog.
Página 7 de ABAP
reference catalog.
Adicione o título « BC FI PAY» e o ID « ZBC_FI_PAY» do novo catálogo e clique em
«copiar».
Podemos ver que o mapeamento é copiado automaticamente.
Certifique-se de atribuir toda a configuração a uma solicitação de transporte, como fizemos no primeiro método.
6. Crie um novo catálogo comercial:
Crie um grupo «ZBG_FI_PAY2» como fizemos no primeiro método.
7. Crie uma função e atribua ao usuário:
Crie uma nova função simples contendo o ID do catálogo e o grupo como fizemos no primeiro método.
Por fim, como no primeiro método, o bloco é criado com sucesso na barra de inicialização do Fiori.
Tradução de blocos:
Para traduzir os blocos do Fiori Launchpad, você pode seguir as etapas descritas nesta postagem do blog .
Comparação entre o primeiro e o segundo método:
Com o primeiro método, a criação do ladrilho é simples, flexível e não leva muito tempo
em comparação com o segundo método. Mas sua manutenção é complexa e leva muito mais tempo.
A principal diferença entre esses dois métodos é que no primeiro tudo é criado
no catálogo comercial. Mas com o segundo método, o catálogo de negócios é criado por referência
Página 8 de ABAP
no catálogo comercial. Mas com o segundo método, o catálogo de negócios é criado por referência
ao técnico e todas as alterações feitas no bloco e no mapeamento de destino também são feitas
automaticamente na referência.
No segundo método, o catálogo técnico tem muito conteúdo, mas em algum momento precisamos
separar alguns aplicativos dos usuários. Neste caso existe o catálogo de negócios que funciona como
um contêiner de conteúdo necessário para usuários específicos ou caso de uso de negócios específico.
Conclusão:
Tecnicamente, os dois métodos permitem criar ladrilhos Fiori, mas sap, conforme descrito neste artigo , recomendou o uso do segundo
método devido ao seu maior benefício, a reutilização.
De <https://stratserv.co/2022/03/how-to-add-abap-custom-sap-transactions-to-the-fiori-launchpad-by-saps-abir-cherif/>
Página 9 de ABAP