Sap Hana Application
In this chapter we will learn how to develop an application in SAP HANA Studio that displays Hello World. Follow the given procedure :
Step 1 : Open SAP HANA Studio and select ‘SAP HANA Development’ option.
Step 2 : Go to the ‘Repositories’ tab, right-click on it and select ‘Create Repository Workspace’. Write the Workspace name and other fields can be kept as default.
Step 3 : Go to the Project Explorer tab, right-click on it and select ‘XS project’, rename it and click next.
Step 4 : Now go to the Workspace, click on the ‘browse’ button and select the package where you will create the project. Click on ‘Finish’ button.
Note: If you need to create a new package, go to System tab and create it under Content.
Step 5 : Right click and click on ‘New File’. Rename it as ‘Hello World.html’ and hit ‘Finish’ button.
Step 6 : Write following lines of code to display Hello World:
<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>
Step 7 : Save the file. Right-click and go to ‘Team’ and select ‘Activate’.
Step 8 : Now right-click on it once again and click on ‘Run as a HTML’. Provide the SAP HANA User ID and Password and it will appear as follows :