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. Spark&Hive:如何使用scala开发spark访问hive作业,如何使用yarn resourcemanager。

    背景: 接到任务,需要在一个一天数据量在460亿条记录的hive表中,筛选出某些host为特定的值时才解析该条记录的http_content中的经纬度: 解析规则譬如: 需要解析host: api.m ...

  2. springmvc之格式化要显示的小数或者日期。

    把保存的小数或者日期按照想要的格式显示. 首先导入jar包joda-time-2.3.jar,下载地址http://pan.baidu.com/s/1gfNuUfp 这里使用注解的方式进行格式化. 创 ...

  3. [原创]java WEB学习笔记104:Spring学习---AOP 前奏,通过一个问题引入动态代理

    本博客的目的:①总结自己的学习过程,相当于学习笔记 ②将自己的经验分享给大家,相互学习,互相交流,不可商用 内容难免出现问题,欢迎指正,交流,探讨,可以留言,也可以通过以下方式联系. 本人互联网技术爱 ...

  4. sql要点

    oracle 并操作 union  自动去除重复    如果想保留重复,需要使用union all 交操作intersect  自动去除重复    如果想保留重复,需要使用intersect all ...

  5. 实验三——for语句及分支结构else-if

    1.本节课学习到的知识点: (1)for语句是循环语句,它可以实现c语句的重复执行 (2)for语句中的3个表达式的执行顺序和书写顺序不同 (3)遇到复合语句时要用大括号将几句话括起来,复合语句在语法 ...

  6. 创建 MIME 类型////////////zzz

    用 Apache 创建 MIME 类型 在 Apache 里, MIME 类型和文件扩展名之间的映射是被存放在配置文件 "apache根目录/conf/mime.types" 里的 ...

  7. Nodejs express 文件上传

    文件上传 以下我们创建一个用于上传文件的表单,使用 POST 方法,表单 enctype 属性设置为 multipart/form-data. index.htm 文件代码修改如下: <html ...

  8. centOs安装jdk1.7

    1,下载jdk-7u75-linux-x64.tar.gz,地址http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloa ...

  9. C#.NET 通用控件数据源绑定类

    using System.Data; using System.Collections; using System.Collections.Generic; using System.Web.UI; ...

  10. Eclipse断点调试方法

    1. 条件断点 断点大家都比较熟悉,在Eclipse Java 编辑区的行头双击就会得到一个断点,代码会运行到此处时停止. 条件断点,顾名思义就是一个有一定条件的断点,只有满足了用户设置的条件,代码才 ...