Skip to Content

I have wrote a small tutorial that will walk you through the creation of the Developer Center account, CloudShare, creation of row and column tables, upload of a CSV file to SAP HANA, creation of Stored Procedure, creation of a view and graphic analysis using SAP HANA Studio own tools.

You can read or download the tutorial on the following link: Getting started with SAP HANA Developer Center.

The tutorial is also available on Experience HANA on the following link: Getting started with SAP HANA Developer Center.

Hope you like it 🙂

Blag.

To report this post you need to login first.

41 Comments

You must be Logged on to comment or reply to a post.

  1. Andy Silvey

    Hi Blag,

    our corporate proxy is blocking DropBox .com

    Any chance you can put the pdf on SDN ?

    Excellent work thank you.

    Petr.

    (0) 
  2. Sergio Azzaretti

    Thanks Alvaro for the nice guide.

    One suggestion to obtain the same result of procedure GetPersonYears(). The example is good to understand stored procedure scripting but the same result can be achieved using only SQL language:

    insert into “EMPLOYEE”

    select ID, name ||’ ‘ || last_name AS NAME,

    FLOOR(days_between(DOB, now())/365) AS _YEARS

    from “PERSON”;

    and without cursor it should be more efficient in terms of perfomance.

    What do you think?

    Thanks

    Sergio

    (0) 
    1. Alvaro Tejada Galindo Post author

      Sergio:

      I know 🙂 I just wanted to show something more complex and fancy than just plain SQL…but taking your suggestion into account, next time I’m going to include all the ways to achieve the same thing 😉 Thanks for your comment! 😎

      Greetings,

      Blag.

      (0) 
  3. Nimesh Master

    Perfect documentation for beginners.

    Followed it and got the expected result in one-shot (Not a single issue at all).

    Awesome job Blag !

    Regards,

    Nimz

    (0) 
  4. Bijesh Krishnan

    Thanks Blag, Perfect starting point for the aspirants! However, I did signed-up for 1 month HANA trial, but when I log-in to Cloudshare, I cannot find any environments and systems. Can you please advise?

    Regards,

    Bijesh

    (0) 
  5. MUNTAZIR SAIYED

    HI

    I am stuck here. on page 19 it says  “SELECT * FROM SYSTEM.FTP_SERVER” . But i dont know where to write this query. I mean where do i navigate in the hana studio so that i get the editor to write the SQL query. I have created all the 3 tables as per the guide.  Sorry i am not familiar with the hana stuido or any BI tool.

    it would be great if you could help me with this

    Thanks

    (0) 
    1. Alvaro Tejada Galindo Post author

      Muntazir:

      Go to page 12. When you right click on the Tables Folder, you will see that there’s an option called “SQL Editor” 😉 Also, on page 13, when you right click on a table a go to Generate –> Insert Statement, you can delete the generated insert line and use any other SQL query 🙂

      Greetings,

      Blag.

      (0) 
  6. aloe fan

    Thanks Alvaro share,I did signed-up HANA trial, but  I cannot find my CloudShare user, and the SAP HANA information. Can you please advise?

    (0) 
    1. Alvaro Tejada Galindo Post author

      Aloe fan:

      If you request your SAP HANA yesterday, then you will have your invitation mail by today 🙂 If tomorrow you still don’t get it, please let me know.

      Greetings,

      Blag.

      (0) 
      1. aloe fan

        hi Alvaro, very thanks,but I have not receive the invitation mail. would you help me to follow it.

        Thanks and regards

        (0) 
  7. Deepti Kumar

    I have signed up for the 30 day SAP HANA/Visual Intelligence  trial environement. I have uploaded the Customer.csv file as well as the Customer.ctl control file  to the ftp server(ftp://ftp.sapdevcenter.com/P1433873838/ in my folder=>/P1433873838/)

    When I execute this statement in SQl Editor within HANA Studio=>IMPORT FROM ‘/dropbox/P1433873838/Customer.ctl’;

    Am I missing a step, which will help make this ftp folder visible to the cloudshare desktop?

    I need help,the above command does not execute, and the error I see is=>

    SAP DBTech JDBC:[257] at 13:sql syntax error incorrect syntax  near” line 1 col 13(at pos 13)

    How do I resolve this? Please advise.

    (0) 
    1. Alvaro Tejada Galindo Post author

      Deepti:

      Two simple things 🙂 First…I change the permission on your file (Right click –> File Permissions) and add the “Read” permission…

      Also, in your file your calling Customer.csv, while your actual file is called CUSTOMER.csv

      Please try again and let me know 😉

      Greetings,

      Blag.

      (0) 
      1. Deepti Kumar

        Alvaro – this helped, thanks you very much!.

        And the other thing I had to do was to change the definitions of all my tables to column store.

        (0) 
  8. Benedict Venmani Felix

    Hi Alvaro,

    I am facing some problems with User authentication. I was able to log-in and try it out the first time but now I am getting an error,

    I am able to “add system” using the user name and password received from inmemorydevcenter. In the navigator pane the added system is displayed-DCJ(P935244), but when I try to access it I am getting the message “Invalid User name or password”.

    Please help.

    Regards,

    BenyV

    (0) 
  9. Shwetha S

    Hi Alvaro,

    I am stuck in page 26 with an error while creating the procedure.

    I have managed to populate years using a different script. I am trying to use the same script of you and I am getting an error as

    Could not execute ‘CREATE PROCEDURE GetPersonYears() LANGUAGE SQLSCRIPT AS v_age VARCHAR(10) := ”; v_years VARCHAR(2) …’

    SAP DBTech JDBC: [1281] (at 268): wrong number or types of parameters in call: C_CURSOR1: line 9 col 16 (at pos 268)  “

    Please advise…

    CREATE

    PROCEDURE GetPersonYears()


    LANGUAGE

    SQLSCRIPT AS


    v_age

    VARCHAR(10) := ;


    v_years

    VARCHAR(2) := ;


    CURSOR

    c_cursor1(v_age VARCHAR(10)) FOR


    SELECT

    ID, NAME || ‘ ‘ || LAST_NAME as “NAME”,days_between(DOB,now()) as “AGE”


    FROM

    Person;


    BEGIN


    FOR

    cur_row as c_cursor1 DO


    IF

    cur_row.age > 100 THEN


    v_years :=

    floor(cur_row.age / 360);


    insert

    into EMPLOYEE


    values

    (cur_row.ID,cur_row.NAME,v_years);


    END

    IF;


    END

    FOR;


    END

    ;

    (0) 
      1. Fabian Schlarmann

        Very nice tutorial for beginners, many thanks!

        I ran into the same issue than you, the solution would be to pass the parameter into the cursor:

        FOR cur_row AS c_cursor1(v_age) DO …

        Regards,

        Fabian

        (0) 
  10. Christian Punz

    hi Blag,

    very nice tutorial which helped me to dig into HANA for the first time. unfortunately i did not manage to upload the CSV, since i could not figure out where to place the statement

    IMPORT FROM ‘/dropbox/Blag/Area.ctl’;

    bye

    chris

    (0) 
    1. Alvaro Tejada Galindo Post author

      Fabian:

      Thanks for you comment and thanks for providing a solution…my HANA server doesn’t complain about a missing parameters for the cursor…but if yours does..then you’re solution is very helpful for everyone 😎

      Greetings,

      Blag.

      (0) 
    2. Alvaro Tejada Galindo Post author

      Christian:  Of course you need to replace “/Blag” with your own folder 🙂

      And you have to type it on a Script file…you can do that by doing a right-click and selecting SQL Editor.

      Greetings,

      Blag.

      (0) 
      1. Christian Punz

        hi Blag,

        the replacement was no problem, i had a slight idea that my name is not blag 😉 .

        the only misunderstanding was the “script file”. some days ago i found out that i have to load the script-content into the “SQL-editor”. that worked fine. thanks! unfortunately my trial-period is exhausted now 😥

        greetz,

        christian

        (0) 

Leave a Reply