on 03-11-2012 2:18 AM
Hi All
In the Quick Launch page of HANA studio we have an option "Generate Time Data" , can any body explain usage of this option.
Thanks
Santosh
"Generate Time Data" will create records in table SYSBI.M_TIME_DIMENSION (and others, check schema SYSBI) according to a calendar and granularity you choose. You can use this data to build time-based Attribute Views and then use these inside your Analytical or Calculation Views
--juergen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Juergen
In that case, Once it is generated can we use it in designing multiple analytical views.If one has generated time data already can any body use those generated tables in designing their analytical views and calculation views .e
Also I can't see others message, I got a reply through mail notifications but those replies are not visible here.request the moderator's help
Thanks
Santosh
Message was edited by: varada santosh
Hi Santosh,
Generate Time Data option under Quick Launch helps the user to generate the Time data so that it can be used for the creation of Time based Attribute Views.
When you click Generate Time Data,you will be provided with two options
1.Gregorian:Mainly the data will be generated beased on From and To years along with the granularity(Hour,Min,Sec,Day,Month) mentioned
2.Fiscal:In this case,the time data will be generated based on the variant defined(some companies may use their own time period)
This time data will be stored under _SYS_BI.M_TIME_DIMENSION table(For Gregorian)/_SYS_BI.M_FISCAL_CALENDAR table(For Fiscal).If any user is having the access to this _SYS_BI schema, then he can start using these tables to create a Time based Attribute Views and can consume that in Analytic or Calculation VIews..
Hope this helps you!
Rgds,Murali
Hi Santosh,
Yes,you are right
You can refer this for more details on Generate Time Data : http://help.sap.com/hana/hana1_model_en.pdf
Rgds,Murali
Hi Neha
Thanks for adding a new point,can you eloborate or explain why do we need these tables to generate time data.If it is the case then how can we use this option with Non-SAP systems as these tables won't be there in Non-SAP systems. Request you to eloborate the releation ship between these tables and Generating Time Data.
Thanks
Santosh
Hi Santosh,
These are te standard tables that needs to there in SAP HANA Studio. Because if these tables are not exist then you are not able to use the Time Data option.
Personally, when we set up the SAP HANA studio in our lab, I am facing the same challenge and after replicating the standard table now I am able to use the option.
Hope it answer to your question.
Regards,Neha
Hi All,
Some how the table M_TIME_DIMENSION in schema _SYS_BI is deleted in our HANA DB system. And when we are trying to regenerate the time data, we are getting below error
Message :
Exception while generating time data: SAP DBTech JDBC: [256]: sql processing error: Internal error: 'UPDATE TIME DIMENSION DAY 2012 2012 FIRST_DAY_OF_WEEK SUNDAY' could not generate data (Table _SYS_BI:M_TIME_DIMENSION not found):
Can you please suggest , as all other built models are throwing error out of this table missing.
Thanks
MB
I'm having the same challenge as Manjunath Bidarkar. Is there a way to populate M_TIME_DIMENSION with SQL Syntax?
thanks!
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We have a requirement to generate these dates using SQL script. When I tried to execute the SQL script mentioned above i.e. "MDX UPDATE TIME DIMENSION Date 2000 2020" from HANA studio console, I get the below error.
Could not execute 'MDX UPDATE TIME DIMENSION Date 2000 2020'
SAP DBTech JDBC: [2]: general error: MDX query doesn't support prepared statement
Can you pls let me know if am doing anything wrong ?
We are in SAP HANA version: 1.00.096.00.1432206182
Thanks
Venkatesh
Hmm... apparently there had been a change in the SAP HANA studio so that now all SQL commands get prepared before execution...
Anyhow, I was able to do something like this on rev. 96:
create procedure run_upd_time ()
language sqlscript
as
begin
exec 'MDX UPDATE TIME DIMENSION Year 1950 1953';
end;
call run_upd_time();
Shouldn't be too difficult to build upon this.
- Lars
Hi All,
Can someone share the structure of table M_TIME_DIMENSION from _SYS_BI schema or else can provide SQL syntax to Create table M_TIME_DIMENSION. We need to create this table to rectify Generate Time Data Error in our Hana studio.
Please help, thanks
Regards,
MB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is the SQL table definition.
CREATE COLUMN TABLE "_SYS_BI"."M_TIME_DIMENSION" ("DATETIMESTAMP" LONGDATE CS_LONGDATE NOT NULL ,
"DATE_SQL" DAYDATE CS_DAYDATE,
"DATETIME_SAP" VARCHAR(14),
"DATE_SAP" VARCHAR(8),
"YEAR" VARCHAR(4),
"QUARTER" VARCHAR(2),
"MONTH" VARCHAR(2),
"WEEK" VARCHAR(2),
"WEEK_YEAR" VARCHAR(4),
"DAY_OF_WEEK" VARCHAR(2),
"DAY" VARCHAR(2),
"HOUR" VARCHAR(2),
"MINUTE" VARCHAR(2),
"SECOND" VARCHAR(2),
"CALQUARTER" VARCHAR(5),
"CALMONTH" VARCHAR(6),
"CALWEEK" VARCHAR(6),
"YEAR_INT" INTEGER CS_INT,
"QUARTER_INT" TINYINT CS_INT,
"MONTH_INT" TINYINT CS_INT,
"WEEK_INT" TINYINT CS_INT,
"WEEK_YEAR_INT" INTEGER CS_INT,
"DAY_OF_WEEK_INT" TINYINT CS_INT,
"DAY_INT" TINYINT CS_INT,
"HOUR_INT" TINYINT CS_INT,
"MINUTE_INT" TINYINT CS_INT,
"SECOND_INT" TINYINT CS_INT,
"MONTH_LAST_DAY" TINYINT CS_INT,
PRIMARY KEY ("DATETIMESTAMP")) UNLOAD PRIORITY 0 AUTO MERGE
Hope useful for you.
Regards.
YS
Hi there,
given the SAP HANA Studio JDBC trace, the time data is actually populated by the MDX syntax you mentioned.
As an example I created the data for the years 1950 to 1953 with granularity YEAR and this command got recorded:
MDX UPDATE TIME DIMENSION Year 1950 1953
Looks as if the syntax is something like
MDX UPDATE TIME DIMENSION <granularity> <start year> <end year>
However, as the syntax is not officially documented yet, this is not officially supported.
- Lars
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.