Programatic creation of OLAP Levels?

While I can create an OLAP Level in Action Script. It seems a
fruitless endeavor due to that fact that all the attributes of the
object are read only.
var myOlapDim2Level1:OLAPLevel = new OLAPLevel();
myOlapDim2Level1.name = "Product";
This creates an OLAPLevel object, no problems there.
myOlapDim2Level1.dataField = "product";
This however fails due to the dataField being read only. Same
is true of the attribute property. So there seems to be no means of
assigning a data field to a OLAP Level created in action script.
Anyone have any ideas?

quote:
OLAPLevel gets associated with the OLAPAttribute object with
that name. The dataField property of the OLAPAttribute would be
used by the OLAPLevel.
So the following should just work then? Without having to
assign the attribute to the level?
//Create dimension 1
var myDimension1:OLAPDimension = new
OLAPDimension("CustomerDim", "Customer");
//Create hierarchy for dimension 1
var myHierarchy1:OLAPHierarchy = new
OLAPHierarchy("CustomerHier", "Custmer");
myHierarchy1.hasAll = true;
myHierarchy1.allMemberName = "(All)";
//Create the levels
var myOlapAttribute1:OLAPAttribute = new
OLAPAttribute("Customer");
myOlapAttribute1.dataField="customer";
var myOlapDim1Level1:OLAPLevel = new OLAPLevel("Customer");
myOlapDim1Level1.attributeName="Customer";
//assign hierarchy & levels to dimension 1
myHierarchy1.levels = new
ArrayCollection([myOlapDim1Level1]);
myDimension1.hierarchies = new
ArrayCollection([myHierarchy1]);
I've tried this, and while it compiles I dont seem to be
getting any data in the datagrid and chart. Its acting like it did
before I added the levels and attributes (empty dimensions). So I
feel I'm still missing something.
In fact, the query is failing on the cube when I try to pull
out the attribute of the dimension.

Similar Messages

  • Universe Creation On OLAP Cube(SSAS) throwing error. in BO X1 3.1

    Hi Experts,
    I have created OLAP universe based on SSAS Cube using Microsoft SQL Server 2005 Analysis Services Driver.
    i have created webi report based on this SSAS Cube,everything is fine
    but when i create condition in universe level,if i use the same universe in webi report its throwing error:An internal error occured while calling the 'processDPCommands' API.
    Thanks,
    Prasad

    This should be set up in steps, Have you configured java AD kerberos so you can login via your web/app with AD? This is a prerequisite before setting up any type of delegation to the DB.
    You can also set up SSO in the front end but this shouldn't be necessarry for delegating to the DB.
    What SPN's do you need...
    Well if using java AD you should have an SPN for the account running the SIA (typically BOBJCentralMS/something) This SPN needs to be set in the CMC, You will need the krb5 and bsclogin files to login to your web/app with kerberos/AD. The krb5.ini will have to have a setting forwardable = true, and finally the MSAS server will need SPN's http://support.microsoft.com/kb/917409
    This a a very complex configuration and you will likely need to open an incident with support to get an engineer to help. I'm not sure where our current docs for the configuration are.
    Regards,
    Tim

  • Creation of OLAP Variable for Master data

    Dear BW Experts,
    How to Create OLAP Variable for Master data  in SAP BW? What is the use of OLAP Variable?

    The entry column Type (Variable) on the Select Data tabpage indicates a variable time frame in which the data should be requested. The variables are not replaced by concrete values until a request is made. There are eight options:
    Variable            Data request        Description
    0
                          Yesterday
                                            (12am – 12am)
    1
                         Last week
                                            (Monday-Sunday)
    2
                           Last month
                                            (1. (First day - last day of previous month)
    3
                           Last quarter
                                           (1. (First day - last day of previous quarter)
    4
                           Last year
                                          (01. (January 1 – Dec 31 of previous year)
    5
                      User time selection
                                               See below
    6
                       ABAP routines
                                               See below
    7
                         <b>OLAP variables</b>
                                                See below
    <b>Time selections with the help of the variables 0 to 4.</b>
    The variables 0-4 only refer to date fields of the data type DATS.
    <b>User time selection</b>
    Type 5 gives you a free selection of all fields.
    If you select this variable for a field, confirm the selection, and then choose Detail for Type, an additional dialog box appears. In this dialog box you can freely limit the values of the fields and determine the next period value and the number of periods until a repetition.
    Variables are placeholders for values and are not replaced by concrete values until a data request is made. You can also use a Variable for selections when requesting data for an InfoObject, if you choose type 7, confirm the selection, and then choose Detail for Type.

  • In Material Master creation (MM01) organizational levels tab.

    Hi,
    In the transaction MM01 after selecting the views i choose the organizational levels for selecting the plant and the storage location, But here i am not able to see the plant field, and only storage location filed is there for me to key in the data how do i recover this for the plant option in the organizational level tab.
    I checked this in OMS9 and OMSR but i could not able to identify the modification for the field that i have done earlier.
    Request you help how to make that visible again to the transaction MM01 and MM02.
    Regards,
    Deepak GS

    1. I have entered transaction OMS9
    2. Entered the Field selection group as 2
    3. Below the fields option 3 RM03M-WERK280  (Plant)  i double clicked and checked there is hide option.
    4. I came back selected the T001W - Name1 (Name)     I double clicked that in 34 , 35 , 54 was enabled with hide i changed to opt entry but still it seems to be the same.
    5. I came back again and below in the field selection tab checked for the MM01 and MM02 transaction as well as fert,halb,roh as opt entry
    It did not work.Kindly guide me if there is some other option available for this to revoke the plant option.
    Any help would be really appreciatable.
    Regards,
    Deepak GS

  • Examples of programatic creation of EPN elements

    Hello,
    I'm looking for examples of how to create things like Channels, CQL Statements, etc programatically, not just statically creating them using the EPN editor in eclipse.
    For example:
    I want to have a static processing network that just takes all events and passes them to a bean. The bean then looks at the events and decides that a new channel should be created for something in this event (say event type, or subject). So it would dynamically create a new channel and pass that event on to it. Then any time it started seeing similar events, it would pass those on to this new channel as well. I'm not sure if this is a good idea or a good use of CEP or not though at the same time...
    Here is another example:
    We want to expose an API to allow clients to create new queries into the stream on demand. So we have predefined queries set up that handle default events. A new client comes in and wants to start getting certain events (content based routing basically). So they make a call to the API and say I want to start getting events with x in them. A new CQL query is created (select * from stream [now] where thing = x) and probably also a new channel/bean is created as a destination.
    I can't find anywhere that describes how you do any of these things. You can do all this using Esper, so I assume Oracles CEP has a way to do it too...If you can help, that would be great.

    serff wrote:
    I want to have a static processing network that just takes all events and passes them to a bean. The bean then looks at the events and decides that a new channel should be created for something in this event (say event type, or subject). So it would dynamically create a new channel and pass that event on to it. Then any time it started seeing similar events, it would pass those on to this new channel as well. I'm not sure if this is a good idea or a good use of CEP or not though at the same time... We don't currently expose any programmatic API for creating EPN elements - part of this is because the connection between elements is augmented in many different ways when the EPN is constructed and also because we optimize certain cases. What is your new channel going to do in this instance? There is nothing stopping you writing an event bean that manages its own "channels" (written by you), but it would help to know a few more details in order to make any recommendation here.
    Here is another example:
    We want to expose an API to allow clients to create new queries into the stream on demand. So we have predefined queries set up that handle default events. A new client comes in and wants to start getting certain events (content based routing basically). So they make a call to the API and say I want to start getting events with x in them. A new CQL query is created (select * from stream [now] where thing = x) and probably also a new channel/bean is created as a destination. The JMX API allows you to create queries dynamically - this is what wlevs.admin does. This may be the easiest way to manage dynamic queries. You could also do this directly by making a bean ApplicationContextAware (a Spring class) and then from that get the BeanFactopry and then the bean you are interested in, cast to the appropriate API and add rules. Unfortunately the java API for the processor is not public, so you would be on your own trying this approach.

  • Error Msg while BOM creation - Maximum low-level code 999 reached

    Dear Expert,
    After uploading the BOM (T-code: CS01) of material XXXXXXX in XXXX plant, error message through express message is coming regarding maximum low-level code 999 and the BOM is automatically getting deleted.
    Error Info...   Maximum low-level code 999 reached
    Thanks & Rgds,
    Dipen

    Is by any chance this BOM recursive?
    If so, you need to allow recursiveness specifically.

  • Ristrict sales order creation at plant level through authorizations

    Hi  ,
    I want to ristrict users to create sales orders for specific plants . Can anyone please tell me how to do it through authorizations.
    I am not able to find any authorization object for plant in VA01 and i have tried to  add object from other module like MM or PP and maintain plant values but still it is not ristrict users to create  sales order for that plant.
    any other object for plant.
    Thanks & regards ,
    Nitin Patki

    Generally we control parameters like Sales Organization, Distribution channel, division, sales document type, billing document type  etc through roles in SD but if you want to block the creation of sales order based on plant, then take the help of FI/MM people because if they will not give the authorization for Profit centre (in case you have taken that plant as a profit centre), The user will not be able to proceed further without profit centre.
    Reward points if it helps,
    Regards,
    N

  • Contract creation at Building level

    Hi,
    I am trying to create a RE contract at BU level, for this i have assigned IB value at necessary contract type and system is permitting the assignment of BU in RE contract, but when I go on saving the contract system throws the error that Rental object does not exist.
    The error code is RECAAP061.
    Any inputs on how to correct the error and create a contract at BU level?
    Regards
    Rohit

    Hi Rohit,
    I am wondering that you get the error that the rental object does not exist although you have not assigned a rental object at all.
    Is there also an object number shown in the error message? If yes, does it refer to a rental object or is it the number of the building that you assigned?
    In general it is possible to create contracts that have no rental objects assigned, it only depends on the settings for the contract type used.
    Which type of contracts are concerned (lease-in, lease-out, internal or external)?
    Which contract reference is assigned in customizing for the contract type?
    Regards,
    Franz

  • Creation of OLAP  Variable

    Dear BW Experts,
    How to Create OLAP Variable for Master data  in SAP BW? What is the use of OLAP Variable?

    Hallo
    You posted this question three days ago and now again. What do you really want to now?
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    I hope this can help you.
    Close one of them
    regards
    Mike

  • Vendor Creation at Client Level

    Hi Experts,
    Would like to take your suggestion Plz.
    My Client has 5 Company codes, and when we are craeting any vendor in XK01 we are creating the vendor specific to that company, 1) How could we extend the same vendor to different Company Codes ?
    In Certain cases they doesn"t want the Certain vendor details to share for other Company Code. How could we go about this scenario ?
    Plaese Advice
    Best Regards
    Javeed Ahamed

    Hello Javed,
    U can create Vendor in other company codes using T Code : XK01, using copying aids. ie wrt to a particular company code u can extend it to other company code as required.
    and the data which is not required for some specific company can be removed , but its should company specific data ,
    U cannot have different data for different companies which is client specific
    Hopes this helps.
    Regards

  • Authorization for MRP contoller level for PR creation...

    HI ..,
             Can anybody suggest me How to control the PR creation through authorization level for MRP controller.
    Regards
    sam

    Hi,
    Maintain the activity "Purchasing Group in Purchase Requisition", this is M_BANF_EKG. Set activity to:
    01     Create or generate
    02     Change
    03     Display
    06     Delete
    08     Display change documents
    Then maintain the purchasing group EKGRP and entered desired purchasing group.
    If you add this to a role, or create a new one say "Purchase Requisitioner", then assign the users. If each user should have different access rights to purchasing group, you would need to maintain this seperately per role. Perhaps create a unique per purchasing group.
    Use SUIM>Roles>By Auth Object and enter one above. This will show all roles which this current object and you can check which users have the role. Again through SUIM or AGR_USERS table.
    Thanks.

  • Issue With OLAP Variable

    HI all,
    we have an issue with the OLAP variable. One of the  SAP olap variable(0P-perf1) is processed  as Authorisation. where it should be sap exit. When we try to change at the BEx analyzer it was in disabled status.
    My question here are :
    1) How we can change the processing type?

    Hi,
    Pls refer link
    creation of OLAP  Variable
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a55ece09411d2acb90000e829fbfe/frameset.htm
    It may help you.
    Thanks
    Edited by: npathak on Aug 4, 2010 4:09 PM

  • OLAP Variable for Filter Selections in DTP

    Hi
      In BI 7.0 DTP i am using a ZZ OLAP Variable for a Filter on Location.
      How/Where i can check the values defined for that OLAP Variable and if i want to update that selection with few new values
    Thanks

    Hi,
    Please check the threads below:
    Re: Infopackage - ABAP routine or OLAP variable
    Re: How to create OLAP Variable in DEV
    Re: Infopackage - ABAP routine or OLAP variable
    Re: creation of OLAP  Variable
    -Vikram

  • Quality level maintenance

    Hi,
    We had initially three plants .For all those plants quality level is maintained for quality managed materials.
    But these quality levels having no task list type, task list group and group counter.
    I analyzed and found these are created automatically by system when inspection lot is created provided these (quality managed materials) materials should have dynamic rule defined for the inspection type.
    Our problem is system is creating these quality levels not in the first instance i.e. it is creating the quality level while creating inspection lot for the second attempt.
    I have following queries.
    1) what is the use of quality level in inspection lot creation .
    2) How the standard settings, if the quality level is created manually to trigger the quality level at first attempt?
    3) As I have explained earlier we are creating new plant, if we need to upload cutover data for quality level?
    If we do not what will happen? If we need to, then how?
    Regards
    Dina

    Hi,
    Quality Level: Def: The quality level is a data record that the system automatically updates at the time of dynamic modification (at lot creation or when the usage decision is made), by checking the conditions for an inspection stage change and, if necessary, storing a new inspection stage for the next inspection.
    The information in the quality level determines which inspection stage will be used for the sample determination of the next inspection lot. So, Quality Level works in conjunction with DMR.
    1) what is the use of quality level in inspection lot creation .
    Quality Level is only for changing Inspection Severity: Reduced-Notma-Tightened Inspections. Because DMR deals with skip lots/char, it keeps changing the Quality level, based on the settings you made in DMR. AQL depends on your industry requirements and is only useful for accepting/rejecting a lot.
    2) How the standard settings, if the quality level is created manually to trigger the quality level at first attempt?
    In Standard Settings, Quality Level initially is generally set to Normal Inspn. Based on DMR,  it changes immediately upon UD. Quality Level can be created using the t-code QDL1, as above. You can change  the next inspection severity manually in QDL2. 
    +3) As I have explained earlier we are creating new plant, if we need to upload cutover data for quality level?
    If we do not what will happen? If we need to, then how?+
    To start with, you don't have to define any Quality level. However, for DMR, you need to set-up the stages (severities) of inspection. That will ensure that Quality Levels are automatically updaed.  Regards, KrishnaM

  • Level Based vs. Value Based hier: advantages, disadvantages and limitations

    Could someone give an overview about the advantages, disadvantages and limitations when comparing OLAP Level to Value based hierarchies?
    Thanks,
    Marcio

    OLAP can handle both types of hierarchies. No performance advantage using one over the other (while loading cube or querying).
    If you are "pushing" dimensional-security inside OLAP, in that case also it does not matter.
    Cube-based MVs (with query-rewrite) can only be created if the hierarchies are level-based. Are you going to need that?
    Generally there are other "non-olap" factors:
    (#1). Which reporting tool will be used. Does it provide better reporting capabilities if the source is parent-child or level-based?
    (#2). Are there any reporting requirements that will need "level" information when selecting data.
    (#3). Are there are any security requirements that will be handled in "reporting-layer" which will need level-based information.
    Although in case of (#1) and (#2), you can "expose" an olap's parent-child hierarchy as "level-based" hierarchy to the reporting tool using internal GID (grouping-id) information.
    OBIEE 11.1.1.5 (and future versions) works well with OLAP metadata, and with any type of hierarchy in olap.
    For other reporting tools, you have to see what features are available.
    In short, its the source system, the reporting tool and the reporting requirements that will dictate what type of hierarchy should be stored in OLAP.

Maybe you are looking for

  • Error while costing run .

    Hello All, While running costing run ( plant level)  in background mode, the job is getting cancelled with some error message  "Required Parameters missing for MARA_SINGLE_READ". And its not allowing the costing run. Please suggest any steps to overc

  • Windows 7 fails when authenticating to another computer on the network

    In Windows 7 (home premium, 64 bit), I am attached to a VPN (Using OpenVPN). Then, whenever I try to either: - Use explorer to look at the file system of another computer  - Use the remote desktop connection on another computer - Map a folder on anot

  • ITunes and iPad Mini connectivity

    I just got an iPad Mini and I really like it.  However, I'm having a problem with it and iTunes. 1.  If I connect it to a USB hub connected to my iMac, iTunes shows it as a device.  I have it set up to sync over wifi just as I've done with a 3rd Gene

  • Random Clip Notes

    I'm having a strange problem. When I export to clip notes (Embeded - QT - NTSC Widescreen Source to 512kbps) it adds a bunch of one word random comments. Does anyone know why this is? And how to prevent this from happening? Thanks.

  • Running a .dll in a .VI

    Hi, i have some issues running a dll in a .VI. to be more specific... I am running a main VI, and that main VI calls for a .dll when it is running labview crashes. after that y tried another way, I made the main VI a .dll then when i ran it everythin