Infocube Dimension tables manual modification
Hi all,
I have a curiosity: has anyone ever modified manually a dimension table associated with an infocube?
Supposing a situation where an infocube has the dimension ORDER ATTRIBUTES with the fields "Order type" and "Order reason". Dimension table is valorized with 3 tuples:
( TypeA, Reason1)
( TypeB, Reason2)
( TypeC, Reason3)
I should substitute the correspondence ( TypeC, Reason3) with the correspondence (TypeD, Reason1).
I know that it is not the right way to proceed, but I wanted to know if anyone ever faced this issue.
Thanks all,
Edited by: Gianluca Maresca on Feb 7, 2008 11:44 AM
Hi,
if I understod you correctly you don'T want to change the data model but the content of the dimension table itself. For this you should know that the dimension table is set up like dimid, order type sid, reason sid. The Fact table is jioned with the dimension table. So of course you could change the values of the table with an ABAP (but take care you have to look up the SIDs from the corresponding characterisitcs SID table). The disadvantage nobody knows what has happened and you can get possible errors if you try to reconsteuct the cube or want to rebook a request to the cube.
The standard and recommended way is to delete the cube content and reload data.
Regards,
Juergen
Similar Messages
-
Internal table manual modification
I understand this is probably going to be the stupidest question ever posted here. But I wanted to know how to manually add values to an internal table without doing a select statement.
TYPES: BEGIN OF ty_ext,
param(32) type c,
row type i,
field(30) type c,
value(255) type c,
type(4) type c,
length(6) type n,
END OF ty_ext,
DATA: it_ext TYPE TABLE OF ty_ext.
I just want to fill it_ext with data without doing select, I have the data stored in variables.
Thanks,
RisadTYPES: BEGIN OF ty_ext,
param(32) type c,
row type i,
field(30) type c,
value(255) type c,
type(4) type c,
length(6) type n,
END OF ty_ext,
DATA: it_ext TYPE TABLE OF ty_ext,
wa_ext type ty_ext.
wa_ext-param = '123'.
append wa_ext to it_text. -
Change dimension tables for an infocube
hello all,
we have an existing cube where a few of the dimension tables are quite big compared to size of fact table. we understand enough about getting the correct dimension table sizes, our question revolves around the existing cube.
meaning, when we make the dimension table changes in dev and transport to val, will the transport be successful with data in the cube (so it will be stored in a format of old dimension table structure)? do we have to dump the cube before transport and then reload after transport successful?
thanks so much!Hi,
Please check the below link
Re: Cube Transport issue
For remodelling,
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID0196158950DB01648128345571943727End?blog=/pub/wlg/5772
Thanks -
Dimension key 16 missing in dimension table /BIC/DZPP_CP1P
Hi all,
I have a problem with an infocube ZPP_CP1. I am not able to delete nor load any data. It was working fine till some time back.
Below is the outcome of running RSRV check on this cube. I tried to run the error correction in RSRV. But n o use
Please help.
Dimension key 16 missing in dimension table /BIC/DZPP_CP1P
Message no. RSRV018
Diagnosis
The dimension key 16 that appears as field KEY_ZPP_CP1P in the fact table, does not appear as a value of the DIMID field in the dimensions table /BIC/DZPP_CP1P.
There are 17580 fact records that use the dimension key 16.
The facts belonging to dimension key 16 are therefore no longer connected to the master data of the characteristic in dimension.
Note that errors that are reported for the package dimension are not serious (They are thus shown as warnings (yellow) and not errors (red). When deleting transaction data requests, it can arise that the associated entries in the package dimension have already been deleted. As a result, the system terminates when deleting what can be a very large number of fact records. At the moment, we are working on a correction which will delete such data which remains after deletion of the request. Under no circumstances must you do this manually. Also note that data for request 0 cannot generally be deleted.
The test investigates whether all the facts are zero. If this is the case, the system is able to remove the inconsistency by deleting these fact records. If the error cannot be removed, the only way to re-establish a consistent status is to reconstruct the InfoCube. It may be possible for SAP to correct the inconsistency, for which you should create an error message.
Procedure
This inconsistency can occur if you use methods other than those found in BW to delete data from the SAP BW tables (for example, maintaining tables manually, using your own coding or database tools).Hi Ansel,
There has been no changes in the cube. I am getting this problem in my QA server. So I retransported the cube again from Dev to QA. But did not help me..
Any other ideas??
Regards,
Adarsh -
Dimension table greater than Fact table
Hello,
By analysing infocubes with SAP report , i encounter a situation where I have more records in a dimension table than in the cube :
ABI_C0101 /BIC/DABI_C01011 rows: 22 ratio: 0 %
ABI_C0101 /BIC/DABI_C01012 rows: 27 ratio: 0 %
ABI_C0101 /BIC/DABI_C01013 rows: 3.558.433 ratio: 229 %
ABI_C0101 /BIC/DABI_C01014 rows: 1 ratio: 0 %
ABI_C0101 /BIC/DABI_C01015 rows: 66.440 ratio: 4 %
ABI_C0101 /BIC/DABI_C01016 rows: 15.383 ratio: 1 %
ABI_C0101 /BIC/DABI_C01017 rows: 2.533 ratio: 0 %
ABI_C0101 /BIC/DABI_C01018 rows: 1 ratio: 0 %
ABI_C0101 /BIC/DABI_C0101P rows: 2 ratio: 0 %
ABI_C0101 /BIC/DABI_C0101T rows: 122 ratio: 0 %
ABI_C0101 /BIC/EABI_C0101 rows: 0 ratio: 0 %
ABI_C0101 /BIC/FABI_C0101 rows: 1.551.333 ratio: 100 %
As the contents of the cube AND dimension are deleted before reload, I'm wondering how this can happen.
Can somebody help me here ?
Thanks.
Fred.Hi,
As I said yesterday, I'vz got the same feeling and test it by manually delete cube and dimensions before load and dimension is now only 17% of the cube. This is well what I expected.
I will give also a feeback on the report SAP_INFOCUBE_DESIGNS. When I ran it after manual delation of the cube, the number of rows in this report doesn't change ! So, I suppose that thsi program read some statistics but it does'nt read directly tables for sure.
So, conclusion is well that the variant doesn't work correctly. I will check OSS and open a note if required.
Thanks all for you ideas.
Fred. -
Urgent : InfoCube/Dimension
Step 1 : In development box, the Cube was empty and did the few changes as below
From Dimension1 (already have 4 characteristics)
Deleted 3 characteristics from InfoCube via remodeling toolboox - Check the scheduled conversion and it was successful
added 1 characteristic to InfoCube manually just by dragging
Checked the dimension table and the changes are reflecting in the dimension table
Step 2 : The InfoCube ZIBSDPR01 moved to Quality
Note : There is data in the quality box
The transport failed returning the Error Code 8
The below text was highlighted in yellow (warnings)
1) Enhancement category for table missing
2) Enhancement category for include or subtype missing
The below text was highlighted in Red (error)
Dimension1 table could not be activated
But the InfoCube structure got changed (showing only 2 chars in dimension1
- (4 of earlier - 3 (of deleted) +1 (newly added))
Kindly let me know what could be reason for failing the transport request.
Is the error because of manually adding the char by dragging
Any information will be appreciated.
ThanksDPN,
As you said the reason might be that. But you should remodel using only remodeling toolkit. -
Inactive Dimension Tables for Cube
Hi Gurus ,
I am transporting a cube from one system to another and the transport fails becasue the dimension tables are in active in the target system. Now since this system is read only I cannot manually activate it , last resort I even trioed opening the system and activating it and re transported the transport. I get the same error saying that table /BIC/ZXXXXX is inactive.
Can anyone help....please....hi Sanjeev,
did you change any dimensions in dev ?
like delete some characteristics from existing dimension,
or add new characteristic or move from one to another
dimension ?
if so, you may need to delete production data first,
to avoid this, please change back characteristics to previous dimension, and create a new dimension and add new characteristic to the new create dimension.
another possibility is database problem, try to search oss note for infocube dimension inactive.
hope this helps. -
Deletion of Dimension Table data in Process Chain Step
Hi,
I am trying to delete the InfoCube Contents using a Process Chian.This process is successfully deleting the Fact table contents, but not dimension table contents.
I need your help to automate the deletion of dimension table contents.
FYI--
We are using BW 3.0 B.
Thanks in Advance.
Vardhan.Hi
Unfortunately is not possible. I had in the past the same issue and I had also a confirmation from SAP.
You can use RSRV to delete unsed value, manually or build a program.
the process chain allows only to delete the fact table.
regards
Mike -
How to Create a Dimension Table in OBIEE11g
Hello,
Chapter 9, page 221(if pdf) of the Build Repository manual of OBIEE 11g explains following.
Creating Dimensions in Level-Based Hierarchies
After creating a dimension, each dimension can be associated with attributes
(columns) from one or more logical dimension tables and level-based measures from
logical fact tables. After you associate logical columns with a dimension level, the
tables in which these columns exist appear in the Tables tab of the Dimension dialog.
To create a dimension with a level-based hierarchy:
1. In the Business Model and Mapping layer of the Administration Tool, right-click a
business model and select New Object > Logical Dimension > Dimension with
Level-Based Hierarchy.
Note that this option is only available when there is at least one dimension table
that has no dimension associated with it.I am still learning OBIEE, and I can not see the dimension menu item as per point 1 becuse i do not have dimension table associated with it. All I have done at this point is to create logical tables based on few physical tables in physical layer.
How do I create Dimension Tables? using BI Admin tool?
Thanks,RHi Rich,
If you are new to Oracle BI, you would better start with the Oracle Learning Library; http://apex.oracle.com/pls/apex/f?p=9830:41:0::NO:RIR:IR_PRODUCT,IR_PRODUCT_SUITE,IR_PRODUCT_COMPONENT,IR_RELEASE,IR_TYPE,IRC_ROWFILTER,IR_FUNCTIONAL_CATEGORY:,BI,,,,,
You create dimensions based on your logical tables. In a plain star-schema you would have one logical fact table and at least one or more logical dimension tabes attached (joined) to the fact table. Just follow the documentation and you would be good to go.
Good Luck,
Daan Bakboord
http://obibb.wordpress.com -
Regarding Dimension Table and Fact table
Hello,
I am having basic doubts regarding the star schema.
Let me explain first regarding star schema.
Fact table containes Key fiigures and Dim IDs,Ok,
These DIm ids will be connected to my dimension tables.The Dimension table contains Characterstics and these Dim ids ,Ok.
Then My basic doubt
1.How does DIm id will be linked to SID tables
2.If I have not maintained any master data or text or Heirachies then SID tables will it be generated or not?
3.If it is generated I think there is use of This SID now..as we have not maintained Master data.
4.I am haing 18 characterstic which are no way related to each other in that scnerio how does Dimensions have to identified.?or we need to inclued whole chracterstics in one dimensions or we need to create seprate dimesnions for each of them..?(max is 13 dimensions)
5.If Dimension table contains dim ids and characterstics then where does the values for characterstics will be stored...?
( for ex..sales rep is characterstics for this we will be giving values some names where does these values will be stored..)hi Vasu,
e.g we have infocube with
- dimension 'location' -> characteristic 'sales rep', 'country'
- dimension 'partner'.
fact table
dim-id('sales person') dim-id('partner') revenue
1001 9001 500
1002 9002 300
1003 9004 200
dimenstion table 'location'
dim-id sid-id(sales rep) sid-id(country)
1001 3001 5001
1002 3004 5004
1003 3005 5001
'sales rep' sid table
sid sales rep
3001 abc
3004 pqr
3005 xyz
'country' sid table
5001 country1
5004 country2
so from the link dim-id and sid, we get
"sales rep report"
sales-rep revenue
abc 500
pqr 300
xyz 200
"country report"
country revenue
country1 700
country2 300
hope it's clear. -
Fact Table and Dimension Tables
Hi Experts, I'm creating custom InfoCubes for data coming from non-SAP source systems. I have two InfoCubes. Tha data is coming from like 10 tables. I have 10 DataSources created fo this and the data will be consolidated in Standard DSO before it will flow into 2 InfoCubes.
Now client wants to know before how much data will be there in InfoCubes in Fact table nad Dimension tables in both the InfoCubes. I have the total size of all the 10 tables from the sources given to me by the DBA. I wan not sure how I can convert that info for Fact table and Dimension table as I have not yet created these Infocubes.
Please help me with this on how I should address this.hi,
The exact data will be hard to give however you can reach at a round figure in your case.
You are consolidating the data from the tables that means that there is relation between the tables. Arrive at a rough figure based on the relation and the activity you are performing while consolidating the data of the tables.
For example, let us say we want to combine data for sales order and deliveries in a DSO.
Let Sales order has 1000 records and Delivery has 2000 records. Both the tables have a common link (Sales Order).In DSO you are combining the data that means the data will be at the most granular level consist of Delivery data, so the maximum no of records which the consolidated DSO can have is 2000.
regards,
Arvind. -
Urgent-Issue in the Dimension tables
Hi Experts,
Question1:
I have a flat file load to a cube.this flat file has 1.5 mil records.One of the dimension created has a 2 dates(original date & current date) assigned.
When i look at dimension table for # entries is 30million.And when i look at the table i see the sids as 0,0 ( for 2 dates) and dim id's being creted.
When i did a search on the dimension table with current date & original date as not equal to 0.I see only 76,000 records.
Question 2:
we have an ODS which loads to the cube.In the process chain we have program that deletes the data in ods which does not match some conditions and then loads it tot he cube.
My question is,since we are not deleting contents from the cube and reloading it from the ODS(Full update).Will i not be seeing same records coming in with Full update which get agrregated in the cube.
Ex: i have a record in ODS.
A X Z 100 1000
After full update to the cube,the cube would have
A X Z 100 1000
When i run the process chain and data is dleeted from ODS on some condition and i still have hte same record in ODS and when this loads into cube wont this be aggregated with the previous record.
A X Z 200 2000
Would appreciate,if anyone could explain if i am missing anything.Hello,
If you can't see the SID means you have not loaded the master data, that why there is no reference to the SID table and the values are 0.
InfoCube by default will have aggregated values, when there are duplicate records on the Keyfigures will be aggregated.
For example I have a Material Dimension and Customer Dimension
In the fact table, it will be like this
DIM1 DIM2 KF1 KF2
Mat001 Cust1 100 10
Mat001 Cust2 200 5
for this there will be 1 entry in Material DIM table for Mat001 and 2 entries for Customer DIM table for Customer Cust1 and Cust2.
Material Dimension
DIM ID SID
1 Mat001 (Here it will be SID from Material Master)
Customer Dimension
1 Cust1 (Here it will be SID from Customer Master)
2 Cust2 (Here it will be SID from Customer Master)
Note : DIM ID is the combination of one or more SID in the dimension table.
So the exact fact table will look like
MATDIM CUSDIM AMT QTY
1 1 100 10
1 2 200 5
If you load the data again with same characteristics values then the key figure will be aggregated
Example if you load
Mat001 Cust2 25 5
then the fact table will not have a new entry instead the it will aggregates and looks like (bolded one)
MATDIM CUSDIM AMT QTY
1 1 100 10
1 2 220 10
Hope its clear
thanks
Chandran -
Change entris on dimension table
Hi All,
We have two entries in DIM table one for Fixed currency info object in the cube like blow.
1. DIMID SID_0CURRENCY SID_0SALES_UNIT
0 1000000044 2
DIMID is zero beacuse we have created Info Object with fixed currency.
Now we have to open this filed for all the currency but system not allowing to change the Info Object beacuse data in the cube and we have almost 2 Billion record in the cubes.
So we are thinking to do the changes like below.
We have another entries in the table for not fixed currency Info Object
2.DIMID ; SID_0CURRENCY SID_0SALES_UNIT
2 1000000045 3
SO now we are planning to overwrite record 1 with record 2. so my new record 1 look like below.
1. DIMID SID_0CURRENCY SID_0SALES_UNIT
02 1000000045 3
Please suggest me can we change the DIM table.
Saleem.Hi Saleem
Dont manupulate the dimension table values manaually,it may leads to inconsistency(after doing manual change RSRV sure will through error).If you do so the connection of Dimension table with Fact and SID will get distrub,same can be rectified by RSRV,repair objects.Not sure how for it will recreate the connections..
Still if you want to take risk...dont delete the Fact table data...via SE38 (prog name DB_DROP TABLES*...Not sure about the program name,better search) delete the Dimension table values(if its not permissible means same can be achieved by ABAP debugging),delete master table and freshly populate the master data table.
Use SLG1 for more Txn data analysis.
Thanks
TG -
Number of Entries in Dimension Tables and Fact Tables
Hi all,
is there an easy way to check
- the number of entries in the dimension tables
- the number of entries in the fact table?
Thanks a lot
AlexHi Alex,
If u want to see the content of Dimension table and Fact table for a infocube then just right click on a particular info cube then select manage . Select coneten tab there , form there u can either select Fact table to see the fact table conten or Infocube content to see the Dimensiontable content.
Regards.. -
How to find the common dimension tables used in Finance AR/PR and GL,
Hi All,
I need to find the common dimension table used in the Finance modules (AP,AR,PO,GL...), Since separate teams are working on populating each modules, and we need to find the dependency so that our loads shouldn’t impact others.
Thanks!
OBIHi Guys,
Thanks for all your answers.
Yes....You are all right. We can list out the used tables upto certain extent. Anyhow, I have done some R&D to derive the SQL's which is given below:
SELECT TABLE_NAME FROM USER_TABLES
MINUS
SELECT DISTINCT UPPER(REFERENCED_NAME)
FROM user_dependencies
where
referenced_type='TABLE' and UPPER(NAME) in
select distinct UPPER(object_name) from user_objects where UPPER(object_type) in
'MATERIALIZED VIEW',
'PACKAGE',
'PACKAGE BODY',
'PROCEDURE',
'TRIGGER',
'VIEW',
'FUNCTION'
UNION
SELECT UT.TABLE_NAME FROM
SELECT TABLE_NAME FROM USER_TABLES
MINUS
SELECT DISTINCT UPPER(REFERENCED_NAME)
FROM user_dependencies
where
referenced_type='TABLE' and UPPER(NAME) in
select distinct UPPER(object_name) from user_objects where UPPER(object_type) in
'MATERIALIZED VIEW',
'PACKAGE',
'PACKAGE BODY',
'PROCEDURE',
'TRIGGER',
'VIEW',
'FUNCTION'
AND REFERENCED_OWNER=(SELECT sys_context('USERENV', 'CURRENT_SCHEMA') FROM dual)
) UT,
( SELECT * FROM USER_SOURCE
WHERE NAME IN
( SELECT DISTINCT NAME FROM USER_SOURCE
WHERE TYPE NOT IN ('TYPE')
AND
UPPER(TEXT) LIKE '%EXECUTE IMMEDIATE%'
) US
WHERE
UPPER(US.TEXT) LIKE '%'||UPPER(UT.TABLE_NAME)||'%'
AND
(UPPER(US.TEXT) NOT LIKE '%--%')
The above SQL Query can list out unused tables by checking the Dynamic SQL Statement also upto some level only.
Once we extracted the list of unused tables, having a manual check would be also greater to verify as it is should not impact the business applications.
Regards,
Subramanian G
Maybe you are looking for
-
Not able to get the database data into the Tree Control
Hi Everybody, I have to populate the tree control with nodes and items, which is to be populated from the database, and the tree control is <b>dynamic</b>. I mean, there is a <b>toolbar</b>, whenever a <b>pushbutton is clicked</b>
-
How do I get Thunderbird to turn E-mail addresses blue?
I am used to the E-mail addresses automatically turning blue, in some case underlined. Can Thunderbird do this? If so, How? Chris Previously Incredimail.
-
Tracking Level..NOT Close To 0db's?
Hey guys! What should my recording levels be when it comes to tracking in my music and vocals to Logic or any DAW for that matter. From what i know and read with dealing with analog, i was always lead to believe that you want to get your levels as cl
-
I go to print, and when I click the print button, Firefox closes.
-
Old Pixel Aspect from CS3 available in CS4 and 5 ? Here is How to!!!
Hi Folks, for everybody, who wants top work with the old good pixel aspect ratios (pal widescreen - 1.42 or pal dv - 1.07) should read this thread. For a discussion about if this modifikation is useful and correct, we should start another thread. Her