Technical Articles
Develop and Deploy SAPUI5 application with launchpad Module from Business Application Studio
Dear Readers,
I hope this blog post will be helpful for you to develop and deploy SAP UI5 application from Business Application Studio to Cloud Foundry with launchpad Module.
Prerequisite :
1. SAP Business Application Studio.
Now lets see the step by step procedure,
Step 1: Create a New Dev Space for SAP Fiori. Provide the Dev Space name, choose SAP Fiori and select Launchpad module from Additional SAP Extensions and click “Create Dev Space“.
Step 8: Give your view name, adding data source is not mandatory to proceed with this blog post. So choose either Yes or No and click “Next”
Step 12: Configure the target navigation settings. In your manifest.json file,add the below piece of code inside “sap.app”.
"crossNavigation": {
"inbounds": {
"intent1": {
"signature": {
"parameters": {},
"additionalParameters": "allowed"
},
"semanticObject": "Demo",
"action": "display",
"title": "Demo",
"icon": "sap-icon://accept"
}
}
},
your Manifest.json should look like,
Step 13: Give “ctrl+shift+p” and select “Yeoman UI Generator”
Step 14: In Yeoman UI you could see multiple generators. Choose launchpad Module and click “Next“.
Step 15: choose your launchpad module name and click “Next’.
Step 16: choose “Yes” and click “Next”.
Step 17: In your launchpad module name “flp”, go to CommonDataModel.json –. Rename your default group name and add your HTML5 module to this group by clicking the “+” icon.
Step 18: Choose your App and click “Select“.
Step 19: Now its time to deploy your application. Right click on the mta file and click “Build MTA“.
Step 20: Building MTA in the previous file will generate a *.mtar file. Right click on the generated mtar file and click “Deploy MTA archive”
Step 21: If you are logged in to your cloud foundry already you can skip this step.. Otherwise you will receive a below promt asking for CF end point, email Id and password. Then choose your organisation and space in preceeding prompts.
.
Step 23: Click on your application app router.
Step 24: You could see your application routes inside your app router.
Step 25: Your SAPUI5 application with launchpad module look like,
That’s it you have successfully created your launchpad module for SAP UI5 application
Conclusion
In this blog post, We have learnt how to develop SAP UI5 application, add launchpad module and to deploy to Cloud foundry from Business Application Studio.
Suggestions are welcome
Thank you:)
#HappyLearning
Regards,
Hemalatha B.
Great Blog
Thanks Sai.
Amazing Blog. Very Informative.
I am facing an issue which I hope you can help me with.
Deployed App:
When I try to click on URL and open it:
Can you identify what is wrong? (I have not followed step-12 from your blog. Is it required?)
Soham
Thank you Soham.
I hope you are not deploying your app with launchpad module.
So here you are running your deployed approuter which is not redirecting to your HTML5 module. Give <your URL>/<namespace of your application excluding “.”>/index.html. You could see your application.
You just need to write a line of code in your application to redirect directly on clicking the route. Go to your application approuter folder. In xs-app.json add the below line.
Brilliant answer Hemalatha !!!!
I was able to run the app by
Really appreciate your help with it.
I will connect in future in case I face any road block.
Soham
You are welcome Soham. Thanks again.
Hemalatha,
I am also facing a similar issue. I also created a standalone approuter and there is no data service added. I followed your above suggestion and added "welcomeFile": "nshtml5module". But I am still getting "Not Found" error.
Could you please help? Attached is the snapshot of the project structure and xs-app.json in projectname-approuter.
Project-Structure
Regards,
Rajinder Singh
Hi Rajinder Singh,
Run your deployed approuter as
<your URL>/<namespace of your application excluding “.”>/index.html.
If it is working. try to recreate your *.mtar file, then deploy it again and check.
Regards,
Hemalatha B.
Hi Hemalatha,
It worked. Thanks for helping me out.
Thanks and Regards,
Rajinder Singh
Great blog and very informative
Thank you Chaithra.
Thanks for the helpful blog.
I have one query that can we import our SAP Web-IDE projects into SAP Business Application Studio.
Hi Avinash,
Yes we can. I hope the below blog post by Yuval Morad will be helpful for you.
Migrating SAP Fiori Applications from SAP Web IDE to SAP Business Application Studio
#HappyLearning
Regards,
Hemalatha.B
Thank you Hemalatha.
Very good blog!
Please consider to add in the prerequisite entitlement section for not trial.
1. Application runtime
2. Portal service
Sure. Thanks Yuval.
Very Informative. Thanks Hemalatha 🙂
Thank you Sohail
Thanks, very useful post!!
Hello Hemalatha,
I have created test project, as per the steps mentioned above, i was able to Build MTA file, when deploying, i am getting an error. (error screen attached).
Note: I have subscribed for Portal service.
Thanks and Regards
Hari Krishna
Hello!
Thanks for the tutorial. Deploy successfully !!!
Now, I need to add a tile for Business Rules and Process Visibility to the launchpad module.
How to do this? have any tutorial or code to share?
Thanks in advance!
Hello, How can i manage role based tile
Hi Hemalatha Bharanikumar,
Thanks for a great blog.
I've tried entering "yeoman" in command palette but it doesn't show anything.
Do you have any ideas?
Thanks
Tri