ADVICE: Using ID Dimensions w/ OLAP_TABLE

Some advice from a consultant in the UK...
My discovery using AW dimensions with a datatype of ID with the OLAP_TABLE function - hopefully it will save you some time !!
I have the follow objects in an AW which I migrated from OES 6.3.2:
DEFINE DJ_DATE DIMENSION TEXT WIDTH 5
DEFINE DJ_BAND DIMENSION TEXT WIDTH 3
DEFINE DJ_INDUSTRY DIMENSION TEXT WIDTH 3
DEFINE DJ_GEOG DIMENSION TEXT WIDTH 2
DEFINE DJ_IDX_CURR DIMENSION ID
DEFINE DJ_INDEX_VAL VARIABLE DECIMAL <DJ_DATE DJ_BAND DJ_CMP_1 <DJ_INDUSTRY DJ_GEOG DJ_IDX_CURR>>
I create the following ADT's & Views:
CREATE TYPE DFR_DJINDEXVAL AS OBJECT (
dj_date DATE,
dj_band VARCHAR2(3),
dj_industry VARCHAR2(3),
dj_geog VARCHAR2(2),
dj_idx_curr VARCHAR2(3),
dj_index_val NUMBER);
CREATE TYPE DFT_DJINDEXVAL AS TABLE OF DFR_DJINDEXVAL;
CREATE OR REPLACE VIEW DFV_DJINDEXVAL_OT AS SELECT * FROM TABLE (CAST (OLAP_TABLE (
'DJ duration session',
'DFT_DJINDEXVAL',
'DIMENSION dj_date FROM dj_date
DIMENSION dj_band FROM dj_band
DIMENSION dj_industry FROM dj_industry
DIMENSION dj_geog FROM dj_geog
DIMENSION dj_idx_curr FROM dj_idx_curr
MEASURE dj_index_val FROM dj_index_val
LOOP dj_cmp_1
AS DFT_DJINDEXVAL));
I get an error when I issue the following query:
select * from DFV_DJINDEXVAL_OT
where dj_date = '06JUN00'
and dj_industry = 'DOW'
and dj_geog = 'W1'
and dj_band = 'ALL'
and dj_idx_curr = 'USD';
select * from DFV_DJINDEXVAL_OT
ERROR at line 1:
ORA-29400: data cartridge error
ORA-01401: inserted value too large for column
WARNING 1) Despite having no values which exceed 3 characters in length, the dj_idx_curr AW dimension has been defined with datatype ID and therefore 8 characters will be inserted, regardless of content.
The way round this is to change the column defintion in the ADT.
CREATE TYPE DFR_DJINDEXVAL AS OBJECT (
dj_date DATE,
dj_band VARCHAR2(3),
dj_industry VARCHAR2(3),
dj_geog VARCHAR2(2),
dj_idx_curr VARCHAR2(8),
dj_index_val NUMBER);
I can now select against the view without error, but I still don't get the result I expect:
SQL> select * from DFV_DJINDEXVAL_OT
2 where dj_date = '06JUN00'
3 and dj_industry = 'DOW'
4 and dj_geog = 'W1'
5 and dj_band = 'ALL'
6 and dj_idx_curr = 'USD';
no rows selected
WARNING 2) ID dimension values will be padded out with blank characters to make them up to a width of 8 characters.
The following query gives me what I want:
SQL> select * from DFV_DJINDEXVAL_OT
2 where dj_date = '06JUN00'
3 and dj_industry = 'DOW'
4 and dj_geog = 'W1'
5 and dj_band = 'ALL'
6 and dj_idx_curr = 'USD ';
DJ_DATE DJ_ DJ_ DJ DJ_IDX_C DJ_INDEX_VAL
06JUN00 ALL DOW W1 USD 238.563007
06JUN00 LRG DOW W1 USD 261.824481
06JUN00 MID DOW W1 USD 200.667549
06JUN00 SML DOW W1 USD 183.01086
06JUN00 TOP DOW W1 USD
06JUN00 LOW DOW W1 USD
6 rows selected.
This is obviously not ideal. A possible solution is to define another view and query this instead:
CREATE OR REPLACE VIEW DFV_DJINDEXVAL AS SELECT
dj_date,
dj_band,
dj_industry,
dj_geog,
rtrim(dj_idx_curr) dj_idx_curr,
dj_index_val
FROM DFV_DJINDEXVAL_OT;
The following query gives me what I want:
SQL> select * from DFV_DJINDEXVAL
2 where dj_date = '06JUN00'
3 and dj_industry = 'DOW'
4 and dj_geog = 'W1'
5 and dj_band = 'ALL'
6 and dj_idx_curr = 'USD';
DJ_DATE DJ_ DJ_ DJ DJ_IDX_C DJ_INDEX_VAL
06JUN00 ALL DOW W1 USD 238.563007
06JUN00 LRG DOW W1 USD 261.824481
06JUN00 MID DOW W1 USD 200.667549
06JUN00 SML DOW W1 USD 183.01086
06JUN00 TOP DOW W1 USD
06JUN00 LOW DOW W1 USD
6 rows selected.
Hope it helps.
Stuart

ADT objects were mandatory in 9.2 but are optional in 10.x
As you are using 10.2, you should use automatic ADT's as shown here
Stuart

Similar Messages

  • Use of Dimensions in APO DP Planning Object Structures

    In APO DP Planning Objct Structures, I know that it's possible to assign Dimensions to characteristics.
    The standard help documentation suggests this is 'to improve performance'.
    Can anyone give practical guidance about how to assign Dimensions to improve performance?
    Thanks,
    Bob Austin

    the characterisitcs are grouped logically using the Dimensions
    the use of dimensions allows data to be stored in a combination of dimension tables and fact tables
    the dimention table consists of the dimension number, a primary key characteristics you assign to the dimension
    the primary keys from various dimension tables link up at the fact table and to the values stored in it
    so you can think of a star schema of tables with the dimension acting as the link
    so when you look for a particular value the dimension table is first quesried based on which the fact table the primary key is linked to is looked up
    in order to improve performance, make sure you dont assign too many characterisitics to one dimension
    try to logically group the characterisitics - geography for eg can be made of state, region (not material type)
    you can also try to match the dimension with the selections you will be using in the planning book,
    dimension tables could grow as your characteristic values increase so SAP advices you keep an eye on it (i am not sure of how functionally you can help this but i believe basis will be able to help you with allocating space on an oversized table)
    there is a document somewhere in sap marketplace that i am not able to find a link... hopefully someone will link it up here

  • Use one dimension to feed 2 other dimensions

    Is there a way to use one dimension to push data into two other dimensions using push logic?  The client has one dimension in App1 that is a combination of 2 dimensions in App2 ie the Costcenter dimension in App1 is a combination of Plant and Account in App2.
    Now they want to push data from App1 into App2 using the Costcenter dimension to populate the Plant and Account.
    I have Plant and Acct properties in the Costcenter dimension for mapping.
    I tried to use *Rename_dim CC= CC.Plant and *Rename_dim CC=CC.Acct but would get errors when validating the logic script.
    Any help would be greatly appreciated.

    Parameters
    COSTCENTER: 70101014
    When I test the logic using the logic debugger, I get the error:
    Validate member failed:
    70101014
    70101014
    70101014
    70101014 on COSTCENTER dimension
    When I run the logic thru data manager, the package is successful but the end of the detail status log is 'No records to process'
    The push logic should ideally take the Costcenter 70101014 from App1 and take the first 4 char (7010) and record to the Plant dimension in App2 then take the last 4 char (1014) and record to the Account dimension in App2
    Logic script:
    *DESTINATION_APP= APP2
    *RENAME_DIM CC = ACCOUNT
    *RENAME_DIM CC= PLANT
    *WHEN CATEGORY
    *IS "AOP"
    *REC(CC=CC.RPT_A,CC=CC.PLANT,CATEGORY=AOP)
    *ENDWHEN     
    *COMMIT

  • #SYNTAX error while using Merge Dimension in webi report

    Hi All,
    # Syntax error when using merge dimension in webi report
    screen shot has been attached.
    iam using BO 4.0 SP6
    checked the datatypes in BW
    they are same in BW in both the queries
    i followed the given links but no result.
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3138343530303526
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3136323339323126
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3137353438313026
    http://scn.sap.com/thread/3592588#15241008
    Need Help!!!!!
    Regards
    Sushma

    Hi Mark,
    Thanks for the reply,
    I did not use any formula,
    I used merge dimension
    Anyways i tried in other system,it s working fine.
    Regards
    sushma

  • Payment Advice using Correspondence

    Hi friends,
    I need to generate the Payment Advice for Vendor Payments. The issue is that I am making the payments through F-53 and the payment method is Bank Transfer. Is there any way of generating the Payment Advices in this case? Has anyone generated Payment Advices using Correspondence F.27? I have tried assigning the Form for PaymentAdvice in the Correspondence settings but all I see is a blank form when I execute F.27.
    Any help in this regard will be highly appreciated.
    Thanks,
    Hrishi

    Any help plzz.....

  • #Error & #Syntax when we are using merged dimension in BO4.1 SP3

    Dear All,
    We are using BO4.1 SP3 and Bex query as datasource.
    When we are trying to take merged dimensions in Report block its giving #Syntax Error.
    When we are defining variable with merged dimension, its giving #Error message and the merged dimension is deleted from the definition.
    Please guide how can I use merged dimension.
    Kindly let us know if there are some update required in the current BO version.
    Warm Regards,
    Sonal

    First things abt merge dimension is that merge is applicable only on dimension not on measures.
    And other is dimension that are going to be merge should have same data type.
    I think you should check these conditions then it will works.
    Merge is nothing but full outer join between two data providers. It helps joining two result sets on webi level.
    Kindly attach your screen shots so that it would be helpful.

  • Using a Dimension/ Measure in a Where clause of Another Dimension/ Measure in IDT

    Hi All
    I am building a Universe using Information Design Tool. In the Business Layer, I need to use a created Business Layer Dimension (not Tables) in a Where clause of another dimension as follow:
    Dimension: "Current Week No"
         SELECT
              budgets.dbo.Calenderweeks.WeekNo
         WHERE
              budgets.dbo.Calenderweeks.EndDate = convert(SMALLDATETIME, fn CURDATE()})  
    Dimension: "Last Week No"
         SELECT
              budgets.dbo.Calenderweeks.WeekNo
         WHERE
              budget.dbo.Calenderweeks  .WeekNo = @Select(Dimension\Current Week No) - 1
    The first dimension is working well. However, the "Last Week No" shows NOTHING (I do not get any value)
    Anyone can explain why I am not get any value from the second dimension, and how I can use a Dimension/ Measure in a Where clause of another Dimension/ Measure ?
    Thanks

    Short answer:
    Beware of object WHERE clauses. They are rarely (I'd almost say never) the solution to the problem you're trying to solve.
    Long answer:
    It doesn't work because you are inadvertently filtering the same value twice in two incompatible ways in the same SQL statement.  Both objects SELECT the same column in the database.  The first object uses a WHERE clause to set it to the current week.  The second object attempts to use a WHERE clause to set it to the previous week, but does so by selecting the first object, so you end up with both objects in your data provider.
    Remember that BO is going to place all the objects in your data provider in the same SQL (except of course where your context definition has ensured otherwise.), so you have two WHERE clauses in your generated SQL which attempt to find a line equal both the current week and the previous week... and returns, naturally, no results.
    Rewrite it with a derived table (as explained in the response above) and you'll get what you want.

  • Using time dimension in materialized view

    Do anybody has an example of using Time dimension in MVIEW?. The time tablke has no relation with oder object (ex. i will join the time table with sales table, which has no relation with each other.
    Thanks in advance
    Mehdi

    Hi
    Check the foreign key on the fact table to see how it is related to the time dimension table.
    Cheers
    David

  • Using a Dimension in Multiple Modules...........

    Hi All,
    Can anyone tell me how to use a "Dimension created in One module in another module.
    Waht I did was, copied the Dimension from Module1 (Dimension) to the Module2(Dimension) -- is this is the right way?
    + Module1
    + Dimension
    Common_DIM
    + Modile2
    + Dimension
    Common_DIM ??
    Thanks in advance for your kind replies.
    Ramesh Mutyapu

    Jean,
    Thanks for your repsonse. My question is like this way.
    I have couple of dimensions which are common to two modules and I want to create the FACT table by using the combination of Dimensions from each module. Can you tell me which is the right way?
    Ramesh
    Hi,
    The answer depends on what you want to do. If you want to have people work on 2 copies, you are on the right track. However if you want to use them to load data into or lookup data from, you are fine with just module holding the dimension.
    In other words, in the mapping you can combine objects from various modules to do your extraction.
    Thanks,
    Jean-Pierre

  • How to use time dimension.

    Hi All,
    I have to create a report that will show the worth of portfolio based on time frame that is monthly, quarterly, yearly and since inception.
    How can i proceed because i have never used time dimension?
    Further i have only one column "Date" in the portfolio table that has a corresponding
    worth value. SO i need to create the dimension based on this date column.
    Pls help me
    Thanks

    If all you want is to achieve drills from Month, Quarter and Year then treat it as a normal dimension and create the levels. But if you want to do calculations like YTD, QTD and MTD then you need to create a time dimension. Check my blog entry here http://oraclebizint.wordpress.com/2007/11/05/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-ytd-qtd-and-mtd/ for creating a sample time dimension. Also, you need to manually create logical columns corresponding to the levels that you need. So, if you have only a date column then create logical columns Year, Month and Quarter from this column and then create the time dimension.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Find Webi documents that use merged dimensions

    I would like to be able to locate Webi documents that use merged dimensions.  I have looked through the Java ReportEngine SDK and did not see anything that would help.
    I am running BOXI R2 SP5 FP5.5

    Where do you originally merge the dimensions, is this done on the Webi level, or the Universe level?  If it is done at the Universe level, Webi will just see it as a dimension, you would need to be able to know which dimensions were merged and just look for that object by name not be any specific property.

  • Matrix in  java using  two dimension array

    hi!
    Everybody here's a problem I have cpould any body out there give nice piece of sourcr code for "matrix in java using two dimension array"I have to give a presentation how it works.Yes I'd appreciate as many example as possible
    If anybody can??
    Please help
    regards
    ardent

    nice piece of sourcr
    code for "matrix in java using two dimension
    n arraySure,
    int[][] matrix = new int[5][5];
    That declares a two-dimensional 5 by 5 array with integer elements. All elements are initially 0.
    For further information check you favourite Java textbook.

  • Using a dimension twice

    Hi,
    I have a fact table which is using one dimension twice (dimension location "from" and "to"). I have problems with the discoverer working on it.
    When using the dimension in a matrix report, discoverer is asking which of the two foreign key constraints it should use. Using both is not a good idea, because it forces "from" and "to" to be equal. Using just one workings fine.
    I tried to copy the dimension to a new folder and using the other foreign key constraint there, but then the selection of the "to" location depends of the "from" location showing me just the target locations for the selected source. Choosing the "to" location first, I don't have that dependency on the "from" location.
    Is there a way to select both dimension "from" and "to" independend?
    Regards,
    Torsten

    LS,
    Another alternative is to create 2 views on your location table, for instance v_location_from and v_location_to, and import these into the Business Area instead of the location table itself.
    Then in your disco-report you will have 2 different folders to refer to and no longer have a problem with FK's, even if on the database you are accessing the same object more than once.
    You could even make a distinction in the view code if it is really a large table, select only from-locations for your from-view and the same for the to-view (if it is possible to make this distinction in the first place, of course).
    Hope this helps.
    Cheers, Patrick

  • BPC Office Client : No data retrieval when using static dimensions

    Hello,
    We have used static dimensions to build reports / input schedules, but the data range remains empty when refreshing the workbook after the column - and row key ranges have been filled. There is definitely data in the application for the combination of the current view members and range members chosen. I have put 3 dimensions in the row key range and 4 dimensions in the column key range.
    What are the common solutions for this problem ? I don't receive any errors while refreshing the workbook.

    Have you checked security member access profiles to know that the user has access to that slice of data?
    You might also double-check your data in BW by running the Shared Query Engine test program UJQ_SQE_TEST from transaction SA38 or SE38.  Just select your AppSet and Application, along with matching in the filters the static members you've set in your report.
    If you still have issue, try to replicate the issue with a delivered template report and confirm no data is shown.
    Otherwise, please create a customer [message|http://service.sap.com/message] in the SAP Service Marketplace and report your issue as a potential bug. To expedite a solution it would be helpful if you detail the steps exactly for the Support team to recreate, verify and troubleshoot the problem.
    Best regards,
    [Jeffrey Holdeman|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/jeffrey+holdeman]
    SAP BusinessObjects
    Enterprise Performance Management
    Regional Implementation Group

  • Using hidden dimensions on data form (Planning V11)

    Hi,
    I’m using EPM – Planning 11.1.1.2.0.
    I’m building a data form. I’d like to use 5 dimensions in columns of my table. And I’d like to set hidden 2 of 5 these dimensions.
    My trouble that Planning can show me this data form if hidden ONE dimension has been set LAST in order. In other variants I had an error (browser IE was crashed). If I set TWO hidden dimensions (has been set LAST in order) Planning shows me data form but when I try to enter data my browser was crashed again.
    How can I build my form to use it (hidden dimensions in table columns) successfully? I can't found any limits to use hidden option for dimensions in columns in admin guides for EPM 11.
    Have you such trouble too?

    NoFog, Hi!
    11.1.1.3 is now available on e-delivery!
    I want ask you another question. Did you solve V11: Essbase Exception: ESSG_ERR_OPERATIONFAILED (1100027) problem?

Maybe you are looking for

  • Publishing from a different computer/online?

    Is it possible to publish/update your blog from a different computer? For example, if I'm on the windows side of my MacBook, or just on another computer all together that DOESN'T have iWeb, is it possible for me to post an update?

  • Downloading and Installing Acrobat X Pro

    Hi, I have purchased Acrobat X Pro on disk some time ago and have registered the serial number in "My Adobe". I have now purchased a new laptop/tablet hybrid without a CD-ROM drive and would like to download and install instead of using the disk, is

  • Another question about threads

    Hi guys, I'm looking for a method to pause a thread for some time. I tried sleep(), but sleep() executes the run method after "sleeping". I just want a method to stop execution and resume at the same line of code. Is there a way I can do this?

  • How do i get the inverted colors setting changed on my phone?

    how do i change my screen from inverted colors back to the regular screen? not exactly sure what i did but i cant find that setting in the phone lol

  • DDE Server

    Hi, I'd like to set up a graphing program to pull some data from a labview VI. I want to be able to just have the data pulled at the demand of the graphing software, so, if I'm not mistaken, I want to write a dde server. I have some example code on h