Develop your first SAP Fiori launchpad site with portal service on SAP Cloud Platform Multi Cloud – part 2
The first blog post of this series, provides a step by step guide to create all assets that are required to develop your first Fiori launchpad site. In this blog post, we continue where we left, and create a Fiori launchpad site, based on the assets you should already have.
We will start by creating a Fiori launchpad site from SAP Web IDE Full Stack, configure the site, deploy it to SAP Cloud Platform and access it.
Read the bottom section of this blog for some answers to FAQ.
Add SAP Fiori Launchpad Site Module to your development project
A. Enable the SAP Fiori Launcpad Site feature, from the settings.
Navigate to the settings of Web IDE Full Stack settings, select Features, locate the SAP Fiori Launchpad Site feature, and turn it to On. Click Save to save your settings.
Enabling the SAP Fiori launchpad Site feature, will allow you to create Fiori Launchpad (FLP) modules from Web IDE Full Stack.
B. Add SAP Fiori launchpad site module to your development project
Navigate to the development section.
Right click on the project to open the menu, and add a new SAP Fiori Launchpad Site Module to our project. Note: this is available only for projects of type Multi Target Application (MTA)
We provide the module a name (in this demo we use flp) and click Finish.
Configure the content and settings of your Fiori launchpad site
A. Add apps to your FLP site
Open the CommonDataModel.json file under the flp\portal-site folder
Click on the Add Group to add two groups: Group1 and Group2
Click on the + icon to add apps to a group. Add app1 to Group1 and App2 to Group2. After you click the + icon to add an app, check the relevant app and click Select
Your CommonDataModel.json launchpad editor should look like this
Note that you can also select the Code Editor tab, to edit the json representation of your portal site
Edit your site setting
Click on the Site Settings tab, view and edit the available settings
Click the save all icon, to save your changes or click ctrl+s.
Build and Deploy your project
A. Right click on your project and select Build
An mta archive file is generated. The file is located under the mta_archives folder in your workspace.
Right click on your project mtar file and select to Deploy to SAP Cloud Platform
If required, select your end point organization and space and click Deploy. (you will be asked to enter your Cloud Foundry environment credentials)
Look on your console pane, to see a log of the successful deployment. After a successful deployment, a URL address of the deployed project is listed in the console pane.
You can access your SAP Fiori luanchpad site by navigating to this link and adding the extension /cp.portal to the URL address
View your site in the SAP Cloud Platform cockpit
Let’s navigate to our Cloud Foundry subaccount
We can see that under our space, our application is now available. Note that the name of your app can have a prefix and that it has the appRouter name as postfix.
Click on the app on the Cloud Foundry environment to see it’s information. You can see the project URL. Click on it. Add to the URL the extension /cp.portal to view the SAP Fiori luanchpad site
End users can now access the Fiori launchpad to access their apps. They can also personalize their home page from the me area.
Answers to frequently asked questions
A. What Cloud Providers are supported?
You can view the supported Cloud Providers from the SAP Cloud Platform Regions and Service Portfolio page
B. What features are supported?
Visit SAP Cloud Platform Portal – Cloud Foundry page to learn more about the supported features
C. I have a license for SAP Cloud Platform portal, can I use the license also for SAP Cloud Platform Portal on the Cloud Foundry environment?
Yes. The quota you licensed (portal site visits or portal users) can be used across Neo and Cloud Foundry – it is not limited to any specific cloud. However, using SAP Cloud Platform services on the Cloud Foundry environment, may require additional licenses.
Hi,
thanks a lot for the blog post.
I tried to follow the steps, but when deploying the build mtar file I get the following error:
Error creating services: Error creating service “portal_resources_PortalDemo” from offering “portal” and plan “standard”: Controller operation failed: 404 Not Found: Could not create service instance “portal_resources_PortalDemo”. Service plan “standard” from service offering “portal” was not found.
Where my Portal demo is the name of the MulitTarget project in WebIDE Full-Stack.
Any idea what I am missing?
Best Regards,
Steffen
Hi Steffen
There is currently an issue with the portal quota for existing portal customers.
Please open a BCP ticket with the component BC-NEO-CIS-OPS and request the quota for the portal. (type ‘Portal’ with plan ‘Standard’)
Iris
Hi Iris,
Thanks for creating this post!
I received a similar error to Steffen when deploying the mtar file:
Error creating services: Error creating service “dt_portaldemo_ui_deployer” from offering “html5-apps-repo” and plan “app-host”: Controller operation failed: 404 Not Found: Could not create service instance “dt_portaldemo_ui_deployer”. Service plan “app-host” from service offering “html5-apps-repo” was not found.
Should I create a similar BCP ticket for this as well? Or is this a different issue?
Thanks!
JJ
Hi John,
Yes, please create a BCP ticket. Please attach the error you receive to the ticket
Regards,
Iris
Hi
I wanted to update that the below mentioned issue is fixed. You can now create portal sites without opening the above mentioned BCP
Cheers
Iris.
Hi Iris Sasson,
Thank you very much for this blog. We are recently migrating from Neo to Cloud Foundry and it’s really hard to find good information as this.
I followed the steps but I got a similar issue to John Juan. So we still need to open BCP tickets?
Best regards,
André
Hi
I followed all steps but getting following error when i try to build –
“Invalid mta.yaml. Make sure that the required module or resource dt_CFPOCHANA_appRouter is defined”
Please help me.
Hi,
Please attach your mta.yaml
Hi Iris Sasson ,
I followed your steps and everything worked fine with a dummy UI5 app. I did the same for a List Report (Fiori Elements template) and it also worked. However, when I tried to use Overview Pages or Analytical Pages (the other two FE templates), there were errors.
The FLP could open the ALP, but nothing loaded as somehow the app couldn’t read the odata’s metadata (the exactly same endpoint that worked fine with the List Report).
The OVP didn’t even open from the FLP, as the Component and manifest couldn’t be reached.
Those were all created directly with the Web IDE’s wizard, without any additional code. Are you aware if extra steps are required for OVPs or ALPs to work with the FLP module?
Best regards,
André
Hi Iris,
thanks for the blog.
The portal service seems to be fixed, which is great news.
However I’m still facing issues with the FLP part. The build part is running fine – however the deployment is failing.
I have checked my logs and there is an error with the buildpack saying: “ERR None of the buildpacks detected a compatible application”
Thanks,
Cara
In case someone is having the same problem as me, here is how I was able to solve it:
Regards,
Cara