SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
Upcoming SlideShare
Loading in...5
×
 

SAP HANA Developer Access Beta program - 7 steps towards your first HANA report

on

  • 2,664 views

So you receive an invitation to the SAP HANA Developer Access Beta program, but then what? Information ...

So you receive an invitation to the SAP HANA Developer Access Beta program, but then what? Information
on how to use HANA is floating around the net, but as always, you need to know where to look. I did all the
research for you. The result is written in this document: 7 steps towards your first HANA report!

Statistics

Views

Total Views
2,664
Views on SlideShare
2,664
Embed Views
0

Actions

Likes
1
Downloads
197
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

SAP HANA Developer Access Beta program - 7 steps towards your first HANA report SAP HANA Developer Access Beta program - 7 steps towards your first HANA report Document Transcript

  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportApplies to:HANA 1.0SummarySo you receive an invitation to the SAP HANA Developer Access Beta program, but then what? Informationon how to use HANA is floating around the net, but as always, you need to know where to look. I did all theresearch for you. The result is written in this document: 7 steps towards your first HANA report!For those of you not aware what the SAP HANA Developer Access Beta program is, there is an excellentFAQ on SDN which you can find here:http://wiki.sdn.sap.com/wiki/pages/viewpage.action?bc=true&pageId=257820641Author(s): Ronald KonijnenburgCompany: LogicaCreated on: 3 December 2011 Author Bio Ronald has been an SAP consultant for over 15 year. He is a Principal Business Intelligence Consultant at Logica, specialised in Consolidation, Planning, BW and BOBJ. He is currently involved in two Business Objects implementations and is SAP BI Practice lead for Logica. In that role he follows the latest SAP trends on Cloud, Mobility and HANA.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 1
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportTable of Contents Step 1 – Cloudshare .................................................................................................................................. 3 Step 2 – Getting big data ........................................................................................................................... 3 Step 3 – Create your table in HANA ........................................................................................................... 4 Step 4 – FTP and import your files into the HANA system .......................................................................... 5 Step 5 – Create an Analytic view for reporting ............................................................................................ 7 Step 6 – Using Explorer to report on your data ......................................................................................... 11 Step 7 – Using Excel to report on your data ............................................................................................. 14SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 2
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportHANA Developer Access Beta programA couple of days ago I was Lucky enough to receive an invitation to the SAP HANA Developer AccessBeta program. For those of you not aware what that is, there is an excellent FAQ on SDN which you canfind here:http://wiki.sdn.sap.com/wiki/pages/viewpage.action?bc=true&pageId=257820641The following paragraphs will describe 7 steps towards your first HANA reporting by using SAP HANASandbox.Step 1 – CloudshareIn your invitation mail there is a link to cloudshare.com. Create a new account, log on to the desktop andfollow the following YouTube video on how to set up your own HANA system:http://www.youtube.com/watch?v=9NKSYgt5eX4A great tip is given on how to use remote desktop instead of using the web version which comes withCloudshare. This is highly recommended as navigation is much easier in the remote desktop. Logon details for your RDP session are given on the Cloudshare page each time you activate theenvironment:Step 2 – Getting big dataSo you managed to set up a system and created a RDP session. Good job! Now to find some “big data”. Inthis article I’m using data which I downloaded from the guys over at Infochimps. I’ve used the following datasources which in total will give me about 20 million records. • AMEX Exchange Daily 1970-2010 Open, Close, High, Low and Volume • NASDAQ Exchange Daily 1970-2010 Open, Close, High, Low and Volume • NYSE Exchange Daily 1970-2010 Open, Close, High, Low and VolumeThe files contain stock exchange data. Great recipe for finding something interesting.You will be getting a bunch of separate csv files. Use the daily prices ones. For simplicity sake I havemerged all files into three separate csv files. Good old DOS can help you with that by using the followingcommand:copy *.csv importfile.csvMake sure to execute the command in the same directory your files are placed. Replace importfile.csv withsomething recognisable (like AMEX.csv, NASDAQ.csv, NYSE.csv).SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 3
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportStep 3 – Create your table in HANAAnd now the fun begins! You need to create a table which holds all your data records.Remember those files I downloaded from Infochimps? The files have the following structure:That means I need to replicate that structure into my HANA table. You can create your table in the HANAstudio using the modeler or by using SQL.Modeler:Please note that you should create the table in your own schema and use Column Store (to witnessawesome speed later on).SQL:I prefer SQL because it’s faster. The following command will create your table:create column table "S0001432066"."NASDAQ"( "EXCHANGE" VARCHAR (10) not null, "STOCK" VARCHAR (10) not null, "DATE" DATE not null, "PRICEOPEN" DECIMAL (15,2), "PRICEHIGH" DECIMAL (15,2), "PRICELOW" DECIMAL (15,2), "PRICECLOSED" DECIMAL (15,2), "STOCKVOLUME" DECIMAL (15), "PRICECLOSEDADJ" DECIMAL (15,2),primary key ("EXCHANGE","STOCK","DATE"))SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 4
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportStep 4 – FTP and import your files into the HANA systemThe guys over at SAP will make you do a little treasure hunt in order to find the user id and password for theFTP server. Go into you HANA system and execute the following SQL statement:Select * from SYSTEM.FTP_SERVEREt voila, a username and password (masqued for obvious reasons):Take note of what is mentioned on where to store the files. More specifically you should create a folder onthe server equal to your SCN number (in my case S0001432066).Fire off your favourite FTP client (mine is FileZilla):SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 5
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportCreate a directory and store your files:Take note that next to my files containing the data there is a so called “ctl” file. These files are required inorder to be able to load data in your created (NASAQ) table. The files have the following content:Import datainto table S0001432066."NASDAQ"from AMEX.csvrecord delimited by nfields delimited by ,optionally enclosed by "error log Text_Tables.errNASADAQ is the name of my created table, AMEX.csv the file I will load.If required, additional information can be found in this post:http://forums.sdn.sap.com/thread.jspa?threadID=2072330&tstart=0SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 6
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportTime to import your 20 million something records into HANA! Execute the following SQL statement:IMPORT FROM /dropbox/S0001432066/AMEX.ctlNote the name of the folder I created in step 4 (folder S0001432066), /dropbox/ is a prefix.After a while you will get the following result back:Statement IMPORT FROM /dropbox/S0001432066/AMEX.ctl successfully executed in7:22.046 minutes - Rows Affected: 0Hang on I hear you thinking. 0 Rows? No it’s not actually. You can check by firing off the following SQLstatement:select count(*) from NASDAQThat looks promising! Let’s check some more:We have data! Look at the log file:Fetched 30 row(s) in 15 msWow!Step 5 – Create an Analytic view for reportingSAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 7
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportFirst step create a package which will hold your view:Create a so-called Analytic View:Give it a name:Select your table:SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 8
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportDrag your objects into the attributes and measures sections:Validate, save and activate your view. Well done! We can use this view in Explorer and Excel. Note that youcan preview your data and even auto document if by using these buttons:Important! In case preview fails it is likely you have to “grant” your schema by executing this statement:grant select on schema s0001432066 to _SYS_REPO with grant optionReplace s0001432066 with your own namespace ofcourse.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 9
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportAs an extra step your could create an extra table which holds the stock names. If you follow the sameprocedure as for creating the table with the stock records, you can join your two tables and have textstogether with the stock names. Sequence for this would be: 1. Create and load your text table 2. Create an attribute view 3. Link your analytic view together with your attribute viewResult would be:Preview:SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 10
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportStep 6 – Using Explorer to report on your dataOn your desktop a shortcut to Explorer can be found:Fire it off and be sure to enter the correct server which can be found in your invitation mail:Go to manage spaces :SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 11
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportSelect your view and press “New”:Give it a name:Put in your objects:And press ok!SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 12
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportIndex your data:Refresh your page and you have a new information space:Press it and start analysing! This one is for you Steve. Apple stock prices in the year he had to leave Apple:Be sure to select enough data to get a nice trend.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 13
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportStep 7 – Using Excel to report on your dataThere is also a possibility to use Excel pivot tables for your reporting needs. Fire off Excel and connect toyour viewChoose Other/advanced:Select the MDX connection:SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 14
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportEnter server credentials (check your invitation mail if not known):Select your view:You now have your data in a pivot table format. Set some filters and analyse your data at great speed!SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 15
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportNote that data retrieval is at great speed, but Excel makes it a bit sluggish in a RDP session.Many thanks for bearing with me till the end and good luck with this great opportunity to test drive HAHA!Related ContentFAQ SAP HANA Developer Access (Beta) – HANA Sandbox SystemSAP HANA Developer Access (Beta)Forum: In-Memory Business Data ManagementSAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 16
  • SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportCopyright© Copyright 2011 SAP AG. All rights reserved.No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.The information contained herein may be changed without prior notice.Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9,iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server,PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes,BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe SystemsIncorporated in the United States and/or other countries.Oracle is a registered trademark of Oracle Corporation.UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks ofCitrix Systems, Inc.HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, MassachusettsInstitute of Technology.Java is a registered trademark of Oracle Corporation.JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape.SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentionedherein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, andother Business Objects products and services mentioned herein as well as their respective logos are trademarks or registeredtrademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.All other product and service names mentioned are the trademarks of their respective companies. Data contained in this documentserves informational purposes only. National product specifications may vary.These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAPGroup") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors oromissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in theexpress warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting anadditional warranty.SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com© 2011 SAP AG 17