Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Generate Time Data in SAP HANA - Part 1

Hello Everyone,

.c
o

In this document, I tried to explain "Generate Time Data" functionality. Through this, I am
trying to provide the general functionality and idea about the "Generate Time Data" with
calender type "Gregorian".

ss

In order to better understand how to use Generate Time Data, we are going to
use standard table for the examples.

ce

Note: While using this option you need to replicate the standard table
into SAP HANA that is T005T, T005U, T009, and T009B. If these standard
tables are not available then you will not be able use the Generate
Time Data function.

1. Open the Quick Launch Page

.s
er

ve
rs

From the Help Menu > Quick Launch

ac

Procedure:

2. Click on Generate Time Data under Data.

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

.c
o

Generate Time Data in SAP HANA - Part 1

Select Gregorian as the Calendar Type.


Enter 2010 to 2011 (you can use any year)
Select DAY for the Granularity
Click Generate.

ce

ss

3. Enter the following entries.

.s
er

ve
rs

for every DAY between 2010 and 2011.

ac

4. Check the Generated data within the table _SYS_BI.M_TIME_DIMENSION. There should be an entry

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

5. Create an Attribute view

ve
rs

ac

ce

ss

.c
o

Generate Time Data in SAP HANA - Part 1

.s
er

Right Click on Attribute View > New > Attribute View.

6. Enter TIME_01 for the name of the view

Select Time ->Gregorian.


For the Granularity select Date
Click on Auto Create.
Click Finish.

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

ve
rs

ac

ce

ss

.c
o

Generate Time Data in SAP HANA - Part 1

.s
er

7. As a result you will see the Dimensions table with the generated Attributes. Optionally you can remove any

attribute fields that are not needed.

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

ve
rs

ac

ce

ss

.c
o

Generate Time Data in SAP HANA - Part 1

8. Save the view first. Right Click on the Attribute View > Activate.

9. Right Click on the Attribute View > Preview.

Enter AN_TIME_00 for the name of the view.

11.

.s
er

10. Create the Analytical view and use the Attribute view: TIME_01

Click finish.

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

.s
er

12. Click on Add link

ve
rs

ac

ce

ss

.c
o

Generate Time Data in SAP HANA - Part 1

Search for CE1IDEA table


Click Ok

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

ss

.c
o

Generate Time Data in SAP HANA - Part 1

.s
er

ve
rs

ac

ce

13. Add HZDAT as an Attribute. Right click on HZDAT > Add as Attribute.

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

Generate Time Data in SAP HANA - Part 1

14. Open the Logical View. Click on the tab Logical View at the bottom of the
detail screen.

ce

ss

.c
o

Drag TIME_01 attribute view in Window.


Create a Referential (n ..1) Join between TIME_00.DATE_SQL and Data Foundation HZDAT field.

ac

15. Activate & Preview.

ve
rs

Hope it is helpful for all.

Part-2 : http://scn.sap.com/docs/DOC-26752

.s
er

Related Content:

1. http://help.sap.com/hana/hana1_model_en.pdf

2. Boot camp Material

Regards,
Neha Singla

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

Generate Time Data in SAP HANA - Part 1

.c
o

9. Right Click on the Attribute View > Preview.

ce

ss

10. Create the Analytical view and use the Attribute view: TIME_01

11. Enter AN_TIME_00 for the name of the view.


Click finish.

12. Click on Add link

ve
rs

ac

Search for CE1IDEA table

Click Ok

.s
er

Add Table

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

Generate Time Data in SAP HANA - Part 1

ss

.c
o

13. Add HZDAT as an Attribute. Right click on HZDAT > Add as Attribute.

ac

ce

14. Open the Logical View. Click on the tab Logical View at the bottom of the
detail screen.

Drag TIME_01 attribute view in Window

.s
er

ve
rs

Create a Referential (n ..1) Join between TIME_00.DATE_SQL and Data Foundation


HZDAT field.

15. Activate & Preview.

Generated by Jive on 2012-07-07+02:00

www.serversaccess.com

10

You might also like