Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

Click and Try Sample XS Applications on the SAP HANA Cloud Platform

$
0
0

Recently, SAP HANA Cloud Platform Tools released a new feature for Eclipse IDE (Kepler), that allows you to import sample SAP HANA XS applications into your account at the SAP HANA Cloud Platform Trial landscape. Importing the sample applications is quite easy - а few mouse clicks in a standard Eclipse import wizard, and you are ready to use them. It gives you the opportunity to play around with fully featured SAP HANA XS applications in no time. The provided sample applications show different features of SAP HANA XS.

Here are the sample applications that you may try:

  • EPM Sample - a sample application that will show you how to use SAP HANA analytic power via modeled views, XSJS scripts, and expose this to the end user via SAP UI5 user interface. You may find info how to build this application from scratch in the blog 8 Easy Steps to Develop an XS application on the SAP HANA Cloud Platform.
  • SHINE - SAP HANA Interactive Education SPS6, is a demo application that makes it easy to learn how to build native SAP HANA applications. It is complete with sample data and design-time developer objects for the application's database tables, data views, stored procedures, OData, and user interface.

 

Prerequisites:

install.png

 

1. Importing a sample XS application

  • In Eclipse IDE open menu File -> Import...
  • [Steps 1,2] Select SAP HANA Content -> Sample Applications, and press Next button
  • [Step 3] Select the sample application for import, and press Next button
  • [Steps 4,5] Select the system for import, and press Next button
  • [Steps 6,7] Select the package for import, and press Finish button
  • [Step 8] Observe the import job status until it states Completed Successful

import.png

After refreshing your package you have to see the imported application.

import_result.png

 

2. Using sample XS applications

The "Sample Applications for HANA Cloud Platform" plugin provides a few sample XS applications. In the examples below is used a sample account named: p123456trial and a sample trial instance named: sample. Having this setup <your_package> is replaced with p123456trial.sample.

 

2.1. EPM Sample

Here are the steps to try it:

  • Import EPM SAMPLE application (see point 1)
  • Grant <your_package>.epm_sample.roles::model_access role to the SCN user who will access EPM SAMPLE. Using SQL console execute:

CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('<your_package>.epm_sample.roles::model_access', '<SCN user name>')

 

Example:

CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('p123456trial.sample.epm_sample.roles::model_access', 'p789012')

cockpit_epm_sample.png

Here is how the EPM SAMPLE application looks like:

epm_sample.png

 

2.2 SHINE

Here are the steps to try it:

  • Import SHINE application (see point 1)
  • Grant <your_package>.shine.data::model_access role to SCN user who will access SHINE. Using SQL console execute:

CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('<your_package>.shine.data::model_access', '<SCN user name>')

 

Example:

CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('p123456trial.sample.shine.data::model_access', 'p789012')

cockpit_shine.png

Here is how the SHINE application's entry screen looks like:

shine.png

The SHINE sample application also has an admin part which allows you to generate data, synonyms, etc. (for more information see: SAP HANA Interactive Education (SHINE) SPS7). If you want to use the currency conversion in SHINE, you have to generate synonyms. Here are the steps:

  • Grant admin role to the SCN user who will access the admin part (e.g. your SCN user). Using SQL console execute:

    CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('<your_package>.shine.data::model_admin', '<SCN user name>')

     

    Example:

    CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('p123456trial.sample.shine.data::model_admin', 'p789012')

  • [Step 1] Open the admin part of the SHINE application

<shine URL from cockpit>/shine/admin/ui/WebContent/admin.html


Example:

https://s2hanaxs.hanatrial.ondemand.com/p123456trial/sample/shine/admin/ui/WebContent/admin.html

  • [Step 2,3] Check the "Create Synonyms" box, and press the Execute button

shine_admin.png

Now you may enjoy the SHINE reports graphics

shine_report.png

Summary

Congratulations! Having done the steps above, means you have at least one fully functional XS application in your developer account on SAP HANA Cloud Platform Trial landscape.

 

Contributor:

Dobrinka Stefanova

 

References

Blog 8 Easy Steps to Develop an XS application on the SAP HANA Cloud Platform

 



Viewing all articles
Browse latest Browse all 3285

Trending Articles



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