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. hadoop_elk架构图

  2. IE or Chrome can not use localhost, firefox can works.

    因为服务器开启'localhost:9999",使用IE无法登陆,firefox下正常. 遂查看cookie,果然没有写入. stackoverflow.com: "ie enab ...

  3. git-----------------git:如何让git识别我修改了文件夹名字和文件名字的大小写问题。

    修改每个项目里面的隐藏的.git文件里面的config文件.将箭头指的原本是true改成false.

  4. 返回值是JSON的阿贾克斯方法

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  5. C++动态加载DLL调用方法

    一.构建DLL路径 char szTmp[_MAX_PATH]; char* szPath = getcwd(szTmp, _MAX_PATH);//获取当前工作目录  //构建dll路径  strc ...

  6. github Android-Universal-Image-Loader

    目存在于Github上面https://github.com/nostra13/Android-Universal-Image-Loader,我们可以先看看这个开源库存在哪些特征 多线程下载图片,图片 ...

  7. 浅析MySQL中exists与in的使用

    exists对外表用loop逐条查询,每次查询都会查看exists的条件语句,当 exists里的条件语句能够返回记录行时(无论记录行是的多少,只要能返回),条件就为真,返回当前loop到的这条记录, ...

  8. mysql数据库的备份与恢复

    假定我们的目标数据库是 test, 表是 user.假定mysql的用户名和密码均为 root. 备份与恢复所用的程序分别是mysql软件包提供的 mysqldump 命令和 mysql 命令.思想很 ...

  9. Qt中使用Windows API

    在Windows平台上进行开发,不可避免与Windows API打交道,Qt中使用的时候要添加对应API的头文件和链接lib文件,另外使用的Windows API的代码部分要使用#ifdef  Q_O ...

  10. php读取excel内容

    使用php读取到excel文件中的内容 1.下载PHPExcel类 2.代码: header("Content-type:text/html;charset=utf-8");req ...