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.如果使用 “Generate Time Data”选项生成时间主数据时,需要将ECC里的 T005T, T005U, T009, and T009B里的这些表复制(连带数据)到HANA里来,如果这些表不存在,则不能使用该项功能。

 
1. Open the Quick Launch Page 
•From the Help Menu > Quick Launch(如果是Eclipse插件,则为Quick View)
 
2. Click on “Generate Time Data” under Data.       
  
3. Enter the following entries.
 •Select Gregorian as the Calendar Type.
•Enter 2010 to 2011 (you can use any year)
•Select DAY for the Granularity
•Click Generate.
  
4. Check the Generated data within the table “_SYS_BI.M_TIME_DIMENSION”. There should be an entry for every DAY between 2010 and 2011.
  
5. Create an Attribute view 
生成时间属性视图,以便使用上面生成的Day时间主数据
•Right Click on Attribute View > New > Attribute View.
  
6. Enter “TIME_01” for the name of the view 
•Select Time ->Gregorian.(当然,也可以不选择Time,Atrribute View Type直接设置为默认的Standard标准也是可以的,这样就需手动将相应粒度的维度拖进属性视图了,只不过这里创建时间属性视图时,会自动根据你选择的时间粒度将相应的时间维表加进来而已,这样方便快捷)
•For the Granularity select “Date”
•Click on Auto Create.
•Click Finish.
 
 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.
当选择属性视图类型为Time类型时,根据你选择的时间粒度Granularity,自动将相应的时间表(这里为_SYS_BI.M_TIME_DIMENSION)加入到属性视图中,并且默认将这个时间维表里的所有字段做为视图的输出字段,你可以根据实际的需要删除一些不需要的属性字段
  
8. Save the view first. Right Click on the Attribute View > Activate.
 
9. Right Click on the Attribute View > Preview.
  
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 
•Search for CE1IDEA table(CE1IDEA应该是个业务数据表)
•Click Ok
 
13.  Add HZDAT as an Attribute. Right click on HZDAT(HZDAT为到天的且带日期格式的日期,10位,日期格式应该与当前登录的国家语言环境有关) > Add as Attribute.
  
14.  Open the Logical View(新版本的Studio应该是Star Join). Click on the tab ‘Logical View’ at the bottom of the detail screen. 
•Drag TIME_01 attribute view in Window.将TIME_01时间属性视图里的DATE_SQL拖到业务表的HZDAT时间字段上,产生关联
•Create a Referential (n ..1) Join between TIME_00.DATE_SQL and Data Foundation HZDAT field.
  
15. Activate & Preview.
这样就可以对业务表CE1IDEA按季度(QUARTER)进行分析了(当然也可以按照月MONTH时间维度进行数据分析)
 

Generate Time Data(普通日期主数据)的更多相关文章

  1. Generate Time Data(财务日期主数据)

        1. Generate the master data from the specific time frame that you are interested in根据你输入的时间段来产生主 ...

  2. MS MDS系列之初始MS Master Data Service(微软主数据服务)

    背景介绍: 主数据服务(Master Data Services)是微软平台支持的主数据管理(MDM)平台.类似MDS这样的系统,如果后续维护得当,会给企业提供一个强大的中心数据库系统,来防止企业数据 ...

  3. How to generate the complex data regularly to Ministry of Transport of P.R.C by DB Query Analyzer

    How to generate the complex data regularly to Ministry of Transport of P.R.C by DB Query Analyzer 1 ...

  4. HR数据抽取:通过 Read Master Data 转换规则读取时间相关主属性数据

    声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...

  5. How to: Create a Business Model in the XPO Data Model Designer 如何:在 XPO 数据模型设计器中创建业务模型

    This topic provides step-by-step instructions on how to use the XPO Data Model Designer in XAF appli ...

  6. PHP日期与时间

    时间戳是自 1970 年 1 月 1 日(00:00:00 GMT)以来的秒数.它也被称为 Unix 时间戳(Unix Timestamp).Unix时间戳(Unix timestamp),或称Uni ...

  7. 第八天:JS内置对象-Date日期对象

    1.Data对象 日期对象用于处理日期和时间 2.获取当日日期    代码如下: <!DOCTYPE html> <html lang="en"><h ...

  8. Chrysler -- CCD (Chrysler Collision Detection) Data Bus

    http://articles.mopar1973man.com/general-cummins/34-engine-system/81-ccd-data-bus CCD (Chrysler Coll ...

  9. Shell脚本运行hive语句 | hive以日期建立分区表 | linux schedule程序 | sed替换文件字符串 | shell推断hdfs文件文件夹是否存在

    #!/bin/bash source /etc/profile; ################################################## # Author: ouyang ...

随机推荐

  1. Warning C4819

    VC工程里有个文件,只有文件里写了汉字,就报警告C4819 Warning C4819:The file contains a character that can ot be represented ...

  2. RDIFramework.NET ━ .NET快速信息化系统开发框架 V3.0 版本新增序列管理

    欲了解V3.0版本的相关内容可查看下面的链接地址. RDIFramework.NET ━ .NET快速信息化系统开发框架 V3.0 版本发布 在V3.0版本的Web(Mvc.WebForm)与WinF ...

  3. 一个DNS统计,RCFs,工具站点

    RCFs http://www.statdns.com/rfc/ DNS resources A collection of DNS related resources DNS Servers Nam ...

  4. PostgreSQL 磁盘使用大小监控

    表大小信息 postgres=# SELECT *, pg_size_pretty(total_bytes) AS totalpostgres-# , pg_size_pretty(index_byt ...

  5. 转-- js(jQuery)获取时间的方法及常用时间类

    来自:http://blog.csdn.NET/liujun198773/article/details/7554628  感谢 $(function(){ var mydate = new Date ...

  6. Ubuntu16.04 802.1x 有线连接 输入账号密码,为什么连接不上?

    ubuntu16.04,在网络配置下找到802.1x安全性,输入账号密码,为什么连接不上?   这是系统的一个bug解决办法:假设你有一定的ubuntu基础,首先你先建立好一个不能用的协议,就是按照之 ...

  7. cocos的helloworld写法

    我觉得吧,做工作是找一份自己喜欢的工作,然后一做很多年,想做安卓就去做,做苹果也去做,现在想转行做游戏,游戏方向有很多,选定前段吧,选定平台COCOS,COOCS有2D和3D,先玩2D吧,写一个hel ...

  8. JVM内存结构---《深入理解Java虚拟机》学习总结

    Java虚拟机在执行Java程序的过程中会把它所管理的内存划分为若干个不同的数据区域.这些区域的用途各不相同,同时也依据着各自的执行规则,独立的创建和销毁数据. 虚拟机内存的划分,如图所示: 线程之间 ...

  9. Linux 环境变量PS1设置

    新建用户不显示IP和机器名 CentOS下新增加一个用户,登录进去会发现shell脚本信息没有显示用户名和主机名,反而显示的是user1@202.173.1.12 解决方案: 1.在新建用户的-目录下 ...

  10. 利用lambda和Collection.forEach

    2.外部VS内部迭代 以前Java集合是不能够表达内部迭代的,而只提供了一种外部迭代的方式,也就是for或者while循环. 1 2 3 4 List persons = asList(new Per ...