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. python---基础之模块,列表,元组,字典

    1. 模块 写模块的时候尽量不要和系统自带的模块的名字相同 调用模块的时候,会先在当前目录下查找是否有这个模块,然后再会如python的环境变量中查找   a.模块1:sys 代码如下: import ...

  2. ebs R12.2启动报错"failed to start a managed process after the maximum retry limit"

    启动日志: Error --> Process (index=1,uid=1739599208,pid=4479) failed to start a managed process after ...

  3. goim socket丢包粘包问题解决。

    -(NSInteger)bytesToInt:(unsigned char*) data { return (data[3]&255)|(data[2]&255)<<8|( ...

  4. sed处理文本文件

    SQL文件处理在以select 开通的行的上一行添加 explain analyze 并写入文本(-i)sed -i '/^select/i\explain analyze' test_load2.l ...

  5. 纪勇破解QQ号问题

    试题描述 来到了新学校,才相处不到一个月,jy就对oyjy一见钟情.于是向oyjy问QQ号.当然身为创(实)新(验)一班的同学,oyjy还是要考考jy.她给了纪勇一个加密后的QQ号,让纪勇解密,解密规 ...

  6. Hdu 1081 To The Max

    To The Max Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total ...

  7. JOptionPane类提示框的一些常用的方法

    JOptionPane类提示框的一些常用的方法 XMLOracleSwing 最近在做swing程序中遇到使用消息提示框的,JOptionPane类其中封装了很多的方法. 很方便的,于是就简单的整理了 ...

  8. msql,触发器无事物回滚,插入之前满足条件再插入

    很少写mysql的触发器和存储过程,由于需要需要做一个很小的判断,要用到触发器,要达到的效果就是,插入之前判断是否满足条件如果不满足就不插入 如果用sqlserver 或者orcale 就很简单,按s ...

  9. Ansible 学习笔记

    最近因为需要管理很多台机器,而这些机器又需要频繁重新安装,实在受不了Puppet需要在每个客户机上都安装一遍,于是转头开始学些Ansible.根据这段时间的使用,这个确实是神器,唯一的感觉就是相见恨晚 ...

  10. hashCode的作用

    在一般的应用中你不需要了解hashCode的用法,但当你用到HashMap,HashSet等集合类时要注意下hashCode.     你想通过一个object的key来拿HashMap的value, ...