Quantcast
Channel: SCN : Blog List - All Communities
Viewing all articles
Browse latest Browse all 2548

Create Hello World Application in Fiori Smart Template (Part 2)

$
0
0

Go to Part 1


5. Create a Project in Web IDE

           Start from creating a new projectFile>New>Project from Template

          22.jpg

    • Choose  Smart Template Application from Template Selection and click Next

          23.jpg

    • Provide Basic Information

          24.jpg

 

    • In Data Connection; select the system and OData service, then click Next

          25.jpg


    • Annotation Selection

          26.jpg

         

With that we are done and our project got created.

 



6. Edit Project in Web IDE

          27.jpg

 

Note: i18n is used for internationalization purpose. Hence all the text will be maintained here.

  • You can manually update annotation.xml. Annotation file can be edited in two different ways.
    1. Code Editor
    2. Annotation Modeler

                    28.jpg

 

Using Code Editor you will have to manually edit the code.

 

 

 

7. Edit using Annotation Modeler

               28.jpg

            30.jpg  

    • Now Add LineItem as Data Field

          31.jpg

          32.jpg

          Click Apply.

 



6. Run the Application

          33.jpg

          34.jpg

              The Application Preview is started, the application is loading and data is fetched from the OData Service.




7. Deploy the application to UI5 ABAP Repository

 

     Now we deploy this Fiori Application to our on premise Fiori Launchpad

    • Right click on the project->Deploy->Deploy to SAPUI5 ABAP Repository

          35.jpg

    • Deploy a new application or update an existing application

          36.jpg

    • Click Next,

                    Now select the project from the existing list and Confirm.

                    Now go to ABAP system and check BSP application created for the project.

               37.jpg


8. Deploy the app to an on Premise Fiori Launchpad

          Create Launchpad Role; tcode LPD_CUST -> click on New Launchpad

          38.jpg

          Role: HelloWorld

          Instance: Transactional

          39.jpg

          - Provide URL: /sap/bc/ui5_ui5/sap/* (your project name)

          - Additional Information: SAPUI5.Component=HelloWorld (You can find Component from Compoent.js in Web IDE)

          40.jpg

  • We need a corresponding Semantic Object: tcode-> /UI2/SEMOBJ

          47.jpg

 

  • Now go to Fiori Designer to create Catalog, tile and group.

https://<host>:<port>/sap/bc/ui5_ui5/sap/arsrvc_upb_admn/main.html?sap-client=200&sap-language=EN

 

        Enter User and Password

          41.jpg

- Create a Tile

42.jpg

- Create Target Mapping

43.jpg

- Create role for SAP Fiori Tile Catalog

44.jpg

 

- Add the role into your user

               45.jpg

- Finally run the application

https://<host>:<port>/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=200&sap-ui-language=EN&sap-ui-appcache=false#helloworld-display

               46.jpg


Viewing all articles
Browse latest Browse all 2548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>