SapHanaTutorial.Com HOME     Learning-Materials Interview-Q&A Certifications Quiz Online-Courses Forum Jobs Trendz FAQs  
     Explore The World of Hana With Us     
About Us
Contact Us
 Apps
X
HANA App
>>>
Hadoop App
>>>
Tutorial App on SAP HANA
This app is an All-In-One package to provide everything to HANA Lovers.

It contains
1. Courses on SAP HANA - Basics, Modeling and Administration
2. Multiple Quizzes on Overview, Modelling, Architeture, and Administration
3. Most popular articles on SAP HANA
4. Series of Interview questions to brushup your HANA skills
Tutorial App on Hadoop
This app is an All-In-One package to provide everything to Hadoop Lovers.

It contains
1. Courses on Hadoop - Basics and Advanced
2. Multiple Quizzes on Basics, MapReduce and HDFS
3. Most popular articles on Hadoop
4. Series of Interview questions to brushup your skills
Apps
HANA App
Hadoop App
';
Search
Stay Connected
Search Topics
Topic Index
+
-
XSA Overview
+
-
XS Overview
+
-
Hello World Example
+
-
XS OData Service
+
-
HANA XSJS Service
+
-
Core Data Service
+
-
Others

Hello World XS Project using HANA Studio

In the article Introduction to SAP HANA XS, we explained the basic feature of SAP HANA XS.
In this article we will show you how to create a basic Hello World Project in SAP HANA XS using HANA Studio.

Prerequisite:



  1. Open HANA Studio. Select “SAP HANA Development” perspective.
SAP HANA XS Hello World
  1. Select “Repositories” tab in the left side. Right click and select “Create Repository Workspace”. In the popup window, provide Workspace name. You may keep everything as default.
SAP HANA XS Hello World
 
Click on “Project Explorer” tab. Right click and select “XS Project”. Provide a name for your project and click Next.
SAP HANA XS Hello World
  1. Select the Workspace. Click on the browse button and select the package where you want to create the XS project.
SAP HANA XS Hello World
Note: If you need to create a new package, go to System tab and create it under Content.
  1. Leave everything else blank and click on Finish. Later we will explain the components like hdbschema, xsjs etc. But in this article we will only focus to create a simple Hello World application.
SAP HANA XS Hello World

  1. An XS project will be created as shown below. Note that it automatically creates 2 mandatory files - .xsapp and .xsaccess. To read more about these files read SAP HANA XS Application descriptor and Application access files
SAP HANA XS Hello World
  1. Right click and go to New à File. Give file name as “HelloWorld.html”.
SAP HANA XS Hello World
  1. Copy paste below code.
 
<HTML>
   <HEAD>
      <TITLE>
         HANA XS Hello World Application
      </TITLE>
   </HEAD>
<BODY>
   <H1>Hi</H1>
   <P>This is my first "hello world" example.</P>
</BODY>
</HTML>

  1. Save the file. Right click and select Team à Activate.
SAP HANA XS Hello World
  1. Done. You have created your first HANA XS Application. Now let’s run it. Right click on the file once again and select “Run As” à HTML. It will open in your default browser. Provide HANA user id and password. It should open like image below.
SAP HANA XS Hello World
 
Continue reading:



Support us by sharing this article.



Explore More
Close X
Close X

3 thoughts on “Create Your First HANA XS Application using HANA Studio

  1. Sumeet Durgia says:

    Hi,

    I have created as above but I am not able to see my repository schema in catalog tab. Can you please help?

    BR
    Sumeet

    • Admin says:

      Hi Summet,
      Are you checking the “Repositories” tab?
      There is no schema mentioned in this article. Could you please check and let me know if you follow this article or some other article.

  2. JS says:

    Hi,

    I’ve created this app, but as soon as I executed, I get a timeout error. I can ping the server but this HTML is not executed.
    Am I missing something?

    Regards,
    JS

Leave a Reply

Your email address will not be published. Required fields are marked *

Current day month ye@r *

 © 2017 : saphanatutorial.com, All rights reserved.  Privacy Policy