Generate Time Data(普通日期主数据)

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时间维度进行数据分析)

来自为知笔记(Wiz)

时间: 2024-12-06 07:07:34

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

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

背景介绍: 主数据服务(Master Data Services)是微软平台支持的主数据管理(MDM)平台.类似MDS这样的系统,如果后续维护得当,会给企业提供一个强大的中心数据库系统,来防止企业数据变得不同步或不一致:同时也是企业内部管理数据流的可靠方式. 目前一个企业很多时候通过良性循环或者收购来实现业务增长.无论哪种方式,都将增加企业应用程序的数据流的数量和复杂度.如果断开和分离这些系统,将带来的各种问题,如数据不一致.数据数据碎片.数据不准确等等,并且对IT部门来讲,也会面对越来越多的困

DATA TIME 日期函数

1 DECLARE @d1 date, @t1 time, @dt1 datetime; 2 SET @d1 = GETDATE(); 3 SET @t1 = GETDATE(); 4 SET @dt1 = GETDATE(); 5 select @d1 date格式,@t1 time格式,@dt1 datetim格式

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

声明:原创作品,转载时请注明文章来自SAP师太技术博客:www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将追究法律责任!原文链接:http://www.cnblogs.com/jiangzhengjun/p/4287014.html 员工 0HR_PA_0 业务数据源中有一个CALMONTH日历年/月的字段,只要员工还在职,每个员工每个月都会产生一条数据:   人事事件 0HR_PA_1 业务数据源中有一个CALDAY日历天的字段,只要员工发生人事

Shell脚本执行hive语句 | hive以日期建立分区表 | linux schedule程序

#!/bin/bash source /etc/profile; ################################################## # Author: ouyangyewei # # # # Content: Combineorder Algorithm # ################################################## # change workspace to here cd / cd /home/deploy/rec

数据集成之主数据管理(一)基础概念篇

数据集成是当下比較热门的话题,相关的产品和平台也越来越多.非常多CIO都在各种数据集成平台和产品之间犹豫不决.因此对数据集成平台的框架体系有全面的理解,对各个厂家产品所提供的功能有深入的认识才干为数据平台选型的决策提供可靠的保证. 我有幸參与了国内一个知名企业的集成平台的设计工作,并主导了数据集成平台的需求分析和产品选型工作.这次工作中,研究了非常多新的技术方向和产品,以下我主要讲一下数据集成领域的一种新兴的产品平台主数据管理平台MDM(Master Data Management). 主数据的

Indexing Sensor Data

In particular embodiments, a method includes, from an indexer in a sensor network, accessing a set of sensor data that includes sensor data aggregated together from sensors in the sensor network, one or more time stamps for the sensor data, and metad

主数据0

1.主数据的概念 借用其他网站的一个数据分类模型,我们可以看到有元数据(metadata),引用数据(Reference Data),主数据(Master Data),企业结构数据(Enterprise structure Data),交易活动数据(Transaction Activity Data),交易审计数据(Transaction Audit Data)这六大类数据. 元数据:数据的数据,平时我们设计表时,大部分属性字段就是元数据.比如,性别,国籍,出生省份等.这个是最接近自然意义的的数

extjs日期控件

Ext.onReady(function () { var md = new Ext.form.DateField({ name: "testDate", editable: false, //不允许对日期进行编辑 width: 100, format: "Y-m-d", emptyText: "请选择日期..." }); md.render('Data'); }); extjs日期控件

How to: Create a Business Model in the XPO Data Model Designer

How to: Create a Business Model in the XPO Data Model Designer This topic provides step-by-step instructions on how to use the XPO Data Model Designer in XAF applications. We will create a simple business model consisting of two objects - Employee an