Function @Parent with Member Dynamic calc

Hi Everybody,
I have a simple Business Rule where i need to assign the Parent value to a child. The parent is a Dynamic Calc and using the function @Parent Essbase doesn't retrieve the data. The formula is as follows:
Fix (
Account_1,
product_1
Version_X = @Parent(Currmbr(Account))->@Parent(Currmbr(product))->Version_Y;
Endfix
The parent of Account_1 is a Dynamic Calc member. I already tried with @Parentval, but it isn't the solution.
Thank you all guys
Maurizio
Maurizio

Thanks for your reply Soul but it didn't work in my case. I tried using @Ancest function but when the business rule is launched Essbase returns missing value. The member on which i'm assigning value is a Sparse Dimension Member (Version) whereas the Dimension member from which i'm trying to retrieve value (Dynamic Calc Member) is a Dense Dimension Member (Account).
I also tried the SET FRMLRTDYNAMIC....
Thank you anyway.... if you have any other idea please tell me... otherwise i will have to use @Sumrange function to obtain the value of the childrens of that Account Member.
Tks
Maurizio

Similar Messages

  • Help with Dynamic Calc

    Hello, could someone help me why after creating the dynamic calc member below, our calc script somehow get stuck/ ran very very slow...
    Below is currently our Hierararchy for Division dimension:
    Division Dimension
    Division Rollup ( Never Share)
    Division 1 ( Never Share)
    Division a (Never Share) level 0
    Division b (Never Share) level 0
    Division c (Never Share) level 0
    Division 2 (Never Share)
    Division d ( Never Share) level 0
    Alt_Division without cd (Dynamic Calc) ...and the member formula I did is
    ="Division Rollup" - "Division c" - "Division d" ;
    After I refresh, the Alt_Division without cd went fine, calculated correctly when I retreive in Essbase Escel , however, the big problem was, when we run our aregular Essbase calc scripts, it somehow got stuck with Alt_Division without cd member and the calc went very very slow almost to the point that it just stopped calcing.
    Could you please let me know if there is something wrong with my dynamic calc member above... Should the Alt_Division dynamic calc should not be a sibling of the Division Rollup member? or I could not use the "Division Rollup" member .
    Could you please recommend a better way of writing the dynamic calc member ( and it's position in the Hierarchy) ... without me aggregarting the dbase ...( I like dynamic calc since it aggs on the fly).
    Please advise.
    Thanks.

    Few Things...
    I am assuming Division is a sparse Dimension. A Dynamic Calc member formula on a Sparse dimension member will surely take lots of time.
    Suggestion 1:
    Create an Alternate hierarchy sharing c and d. Change the consolidation operators to get the C - D at Alt_Hierarchy.
    Suggestion 2:
    Make the member Store and put the desired calculation in a Calculation script rather than having it as a dynamic calc member formula.
    Hope this helps.
    Madhavi

  • Problem with a calc involving @MDSHIFT and Dynamic Calc

    Hi all,
    I have a problem with the calculation of a member in a calc script. The formula of this member is :
    "R70100"
    IF(@ISMBR("M01"))
    ("T_008"->"Cumul"->"HT"+"T_003"->"Cumul"->"HT")*"AVCT_PR" - @MDSHIFT("R70100" -> "Cumul" -> "HT" -> "M12", -1, "Year", );
    ELSE
    ("T_008"->"Cumul"->"HT"+"T_003"->"Cumul"->"HT")*"AVCT_PR" - @MDSHIFT("R70100" -> "Cumul" -> "HT", -1, "Period", );
    ENDIF
    - R70100 is a member of a dense dimension.
    - T_008, T_003 and AVCT_PR are spare and stored.
    - "Cumul" is a dynamic member which allow us to calculate cumulative from monthly.
    - Time is split into two dimensions, Period and Year.
    The problem is that the @MDSHIFT doesn't seems to work with the dynamic calc as the monthly result is the cumulative correct value. I didn't know what is wrong BUT each time I launch the script, values are good for one more month.
    After one run, for example, I obtained this result :
    !http://zenon.apartia.fr/stuff/200910070001.GIF!
    Two run later, here are the news values :
    !http://zenon.apartia.fr/stuff/200910070002.GIF!
    Any idea on what going on and how to correct it ? Thanks !
    Frédéric

    A couple of questions for you:
    1) Do you need the overhead of @MDSHIFT when you are only moving in one dimension? Wouldn't @PRIOR have been a lot easier? At least this is true for the ELSE condition.
    2) Could you post just the results of the @MDSHIFT calculation so we (okay, this may be just for me, it's still breakfast time here and not enough coffee has been ingested yet to read a spreadsheet without recourse to the formulas) can better see the impact?
    3) Have you tried using your code against a non-dynamic member? Does it make a difference?
    Regards,
    Cameron Lackpour

  • DATACOPY from Dynamic Calc Member not working

    Hello,
    I have a BR to Copy from one Scenario to another. I let the user chose the Scenario via RTP. When they chose a dynamic calc scenario no data is copied.
    Here is the Rule
    SET CREATENONMISSINGBLK ON;
    SET COPYMISSINGBLOCK ON;
    FIX(Dec, "Daten brutto", "Daten_brutto_P_M")
    DATACOPY [TEBIT_COPY_Year_Source]->[TEBIT_COPY_Scenario_Source]->Final TO [TEBIT_COPY_Year_Target]->[TEBIT_COPY_Scenario_Target]->Version_1;
    ENDFIX
    I fix on some specific Members an then copy from a specific Year->Scenario combination the Final Version to another Year->Scenario combination Version_1. Doing this with a store Scenario works, with a dynamic calc Scenario it doesnt.
    Thx for your Help.

    Kevin,
    Unfortunately, I think this is the way it works. DATACOPY will not copy dynamically calculated members to stored members.
    Although it is not in the DATACOPY Tech Ref documentation, that's the way it works.
    Here are some older threads on the "other" board:
    http://www.network54.com/Forum/58296/thread/1184768427/DATACOPY+Help
    http://www.network54.com/Forum/58296/thread/1054220911/Datacopy+Problem
    You are going to have to come up with another way of copying the Scenario by summing the members into the target Scenario. It can be a pain because you're going to have to mind the creation of the blocks. SET CREATEBLOCKONEQ will be your friend on this one.
    Regards,
    Cameron Lackpour

  • Problem with member formulas and allocation

    Hi guys,
    I am experiencing a problem I am not currently able to solve. I'm building a planning application in which
    volumes can be inputed in different units of measure (5 are currently available). For example a user can input in liter or KG, and the
    system converts this data in all the different units of measure available, executing a script logic after
    the input (for every bas member is also stored a conversion factor, which is used  by the logic for conversion).
    Two are the major issues of this approach:
    1) storing 5 different volumes for every SKU is consuming in term of disk and DB space;
    2) script logic must be executed every time the user sends data and in some cases this could be time-consuming.
    The solution I'm trying is to use member formulas in order to calculate different units of measure, storing
    only one of these. However, this way lead to another problem: when I try to input data with a top-down approach, using BPC
    ALLOCATION ENGINE, I cannot use the correct unit of measure as a driver for the spread.
    For example, if I input volumes is KG, and the unit of measure stored is only liter, I cannot use nor KG as a driver (because is not stored,
    but only a member formula) neither liter, because the spread using this driver would lead to a wrong result.
    What I would like to do is to give the user the possibility to input in the desired unit of measure at an aggregated level and spread data
    using the existing mix, which must be volumes with the same unit of measure used for input.
    Does anyone has an idea that could help me?
    Regards
    Edited by: utenza pubblica Public on Oct 23, 2009 4:48 AM

    hi
    i found a solution for the Problem in another Forum
    http://businessintelligence.ittoolbox.com/groups/technical-functional/hyperion-admin-l/dynamic-calc-formulas-not-refreshed-1719379?cv=expanded
    The suggestion is
    1. change the Member from Dynamic Calc to Store
    2. Refresh (After these Step the Formulas where still out of sync)
    3. change the Member from Store to Dynamic Calc
    4. Refresh
    After these Steps the Formulas are in sync again.
    Kevin Kraft
    Edited by: Kevin Kraft on Mar 25, 2009 12:33 PM

  • 6.5 vs 6.2 Dynamic calc member in basis of @allocate function

    I just converted from 6.2 to 6.5 and have run across a problem in the @allocate function. It appears that it does not resolve the dynamic calc member. Formula is:"Curr Fcst"=@ALLOCATE("SumInput"->"Curr Fcst", @remove(@descendants(@currmbr(Accounts)),@Descendants(@CURRMBR(Accounts),-1)), "Consolidated"->"Curr Fcst"->&LactlmonTD, ,share); The problem is that &LactlmonTD - a substitution variable is "MAY YTD", which is a dynamic calc member. The formula works fine for a stored member "May" if you want to allocate based on last month only. This formula worked in 6.2, but does not work in 6.5 that I can see. Any ideas short of storing the data for YTD? I am logging it as a bug with hyperion.

    OK - Hyperion technical support has solved the issue with an "Undocumented feature". I needed to add the following statement to my Essbase.cfg file:CALCFGDEPOPT FALSEThe explaination was as follows:"This is basically to turn off EVENT 28 in Essbae 6.5. In Essbase 6.2 EVENT28 needs to be turned on manually in the config file, while in Essbase 6.5it is automatically turned on."

  • Dynamic Calc Member with Formula to Calculate a Rolling 13 Year

    I have to create a rollup in my time dimension that will have 13 members representing each month of a 13 rolling forecast. I am having trouble setting this up as dynamic calc members with a formula assigned to it. For example, on of the members has the following formula.
    As you can see, I am referencing several substitution variables since I want to make this as most dynamic as possible without having to make any changes to the formula member. Only making changes to the substitution variable. Any help would be much appreciated.
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Jan"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Feb"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Mar"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Apr"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "May"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Jun"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Jul"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Aug"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Sep"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Oct"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Nov"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Dec"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF

    We use similar logic but its in a calc script, not a dynamic formula.
    Here's an example of what we do:
    FIX (&Year, &Scenario)
    IF (@ISMBR("JAN"))
    "Average Usage%" = @AVG(SKIPBOTH, @MDSHIFT("Usage %"->"DEC"->&actYear, -1, "Year",), "Util %"->"JAN"->&actYear);
    ELSEIF
    ENDFIX
    Another example in a different database:
    IF (@ISMBR("JAN")) ((@MDSHIFT("Fees"->APR,-1,YEARS,)+@MDSHIFT("Fees"->MAY,-1,YEARS,)+@MDSHIFT("Fees"->JUN,-1,YEARS,)+@MDSHIFT("Fees"->JUL,-1,YEARS,)+@MDSHIFT("Fees"->AUG,-1,YEARS,)+@MDSHIFT("Fees"->SEP,-1,YEARS,)+@MDSHIFT("Fees"->OCT,-1,YEARS,)+@MDSHIFT("Fees"->NOV,-1,YEARS,)+@MDSHIFT("Fees"->DEC,-1,YEARS,)+"Fees"->JAN)/10)*12;

  • Bug while deleting values in form and it's parent member is dynamic calc

    Hi,
    I'm having a problem that seems to be a bug. I am trying to delete the values of member A11 in the following hierarchy, in a Planning Form:
    A (Dynamic Calc)
    |_A1 (Dynamic Calc)
    |__A11 (Store)
    |_A2(Dynamic Calc)
    !_A21 (Store)
    However when I save the form that has IDescendants(A) in rows, values aren't deleted and it's replaced with the value in A1. I'm not sure whats going on but if I place Ilvl0Descendants(A) in form, it works without problems.
    Anyone had this problem before? Thank you

    Hi, have a read of http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin_11122/ch02s04.html
    to understand what's happened and why

  • Dynamic calc on a scenario member

    I'm trying to create a dynamic calc for a scenario to calculate the variance between one scenario from another. When I run a report, I keep getting this err msg:
    Error executing query: CBS-SNI-BP-DB/Sni_prod/Consol/planning/Error(1200400) Error executing formula for [Consol_Current vs Prior Cycle %] (line 0): scalar double argument expected in function [@SUB]
    The formula Consol_Current vs Prior Cycle % is this:
    IF(@ISACCTYPE(Expense)) ( @UDA("Scenarios","r_PriorCycleC") - @UDA("Scenarios","r_CurCycleC")) / @ABS(@UDA("Scenarios","r_PriorCycleC")) *100;ELSE (@UDA("Scenarios","r_CurCycleC") - @UDA("Scenarios","r_PriorCycleC")) / @ABS(@UDA("Scenarios","r_PriorCycleC")) *100;ENDIF
    What I am writing wrong? I have another scenarios such as Consol_Current vs Budget with the same formula except it points to Budget and they run without any problems.

    The formula Consol_Current vs Prior Cycle % is this:
    IF(@ISACCTYPE(Expense)) ( @UDA("Scenarios","r_PriorCycleC") - @UDA("Scenarios","r_CurCycleC")) / @ABS(@UDA("Scenarios","r_PriorCycleC")) *100;ELSE
    (@UDA("Scenarios","r_CurCycleC") - @UDA("Scenarios","r_PriorCycleC")) / @ABS(@UDA("Scenarios","r_PriorCycleC")) *100;ENDIF@UDA function in the above formula is returning the member list but the expected type is number here.
    Modify the formula as below with @SUM of @UDA so that it will return the expected type number.
    The formula Consol_Current vs Prior Cycle % is this:
    IF(@ISACCTYPE(Expense)) ( @SUM(@UDA("Scenarios","r_PriorCycleC")) - @SUM(@UDA("Scenarios","r_CurCycleC"))) / @ABS(@SUM(@UDA("Scenarios","r_PriorCycleC"))) *100;ELSE (@SUM(@UDA("Scenarios","r_CurCycleC")) - @SUM(@UDA("Scenarios","r_PriorCycleC"))) / @ABS(@SUM(@UDA("Scenarios","r_PriorCycleC"))) *100;ENDIF

  • Sparse Dynamic Calc Member

    All,
    Is it better to have a sparse store member and calculating in Calcscript/Rule or sparse dynmic calc member with formula?
    Thank You

    Here's a little background on why sparse dynamic calcs can sometimes (but not always) be bad for retrieval performance:
    - Essbase stores data in one of two types of files - the Index file and the Page file. (there can be many of each type of file, depending on how much data is stored in your cube)
    - The index file stores all of the combinations of sparse members (where there is data). Think of each sparse dimension as a column in the index file.
    - The page file contains "blocks" that are made up of your dense dimension members. Each "cell" in a block is 8 bytes. (a cell being a single combination of members from each dense dimension)
    - Each row in your index file points to one and only one block. (this is why you need one member from every dimension to get to a data value)
    So let's say we have three members in one of our sparse dimensions. For the sake of simplicity, let's say this is the only sparse dimension in the cube.
    - Member "A" is stored.
    - Member "B" is stored.
    - Member "C" is a dynamic calc equal to "A" - "B".
    Question - if you retrieve on member "C", how many blocks does Essbase have to pull into memory? 2 (the blocks for A and B), plus it has to create a block in memory for member "C". (at least I think it creates a block in memory . . . . ) Either way, that's a lot of I/O, relatively speaking.
    If "C" were calculated in batch and stored, the same retrievel would only have to pull a single block into memory - the stored block for C. This is less I/O.
    So why are some dynamic sparse calcs bad and others aren't? It all comes down to how many blocks the retrieval forces Essbase to pull into memory. (FYI this "memory" is really your database caches)
    This is why sparse dynamic calcs like variance scenarios are common. A sparse dynamic calc that compares Actual to Budget doesn't pull a lot of blocks into memory. However, if you set a sparse parent to be dynamic, and it had 100 children, this would be pretty bad for performance.
    If you can visualize this concept, you can performance tune a BSO cube. It's all about I/O.
    Hope this helps,
    - Jake

  • Dynamic Calc with if statements

    Hello
    I have a dynamically calced member who’s calculation depends on what member of another dimension the user is looking at, so in the calc we have several if statements using the @ismbr function. Our calc looks something like this:
    If (@ismbr("Dim Member1") or @ismbr("Dim Member2"))
         Big Calc 1;
    elseif (@ismbr("Dim Member3") or @ismbr("Dim Member4"))
         Big Calc 2;
    elseif(@ismbr("Dim Member5"))
         Big Calc 3;
    else
         Last Big Calc;
    endif;
    What we are seeing is that when we run a query that should fall through to the final else (IE the Last Big Calc;) every calculation under every if is being executed. To come to this conclusion we did the following. Each of the calculations is pretty complex and can take a bit of time to run so we replaced Big Calcs 1-3 with very simple calcs that are very fast and ran the same query again, and while the result returned was the same (IE the result of Last Big Calc) it returned 10 times faster.
    I’m pretty naive about most things Essbase but I’m stuck with trying to solve this problem so I was hoping that someone might have run into something like this before or knows how I can solve it. Any insight will be very appreciated.
    I’m using Essbase 9.3.1 and my cube is a BSO cube.
    Thanks
    David

    Is it possible that the intermediate results can be put into "memo" members as a stored value, being "on call" so they don't get re-calculated as often?
    This wouldn't eliminate the source of the issue, but it would return the results much faster during retrieves. The downside of course is that these values would extend the calc time, so it may not be the right answer for you.
    Alternative #2: Make the final value stored, using a calc script to iterate the formulas only for the appropriate member sets, eliminating the duplicate efforts but moving the calculations away from the D-C realm.
    -Doug.

  • Dynamic Calc member has more than 100 children

    In my db, I've a dynamic calc member, in say hierarchy Accounts, that has more than 100 members under it (children).
    I'm using MaxL scripts to update the Accounts hierarchy i.e. adding new members, tagging UDA's etc.
    However, the MaxL command is erroring out with a Network Error: Cannot Recieve/Send data. I understand if I try doing the update via
    EAS and try to save the outline, it gives me the more than 100 children warning but still allows me to save it but via MaxL I cannot force
    it to do so.
    This is just a warning and shouldn't MaxL still save the outline? Is there something else that am missing or is there any solution for this issue.
    This is a Sparse dimension. More members will be added to the hierarchy monthly, thereby not reducing the count below hundred.
    Any help/advise is much appreciated. Thanks.
    @deepak

    I am envisioning an entire sparse Accounts dimension with all of the upper levels dynamic. If it is like most accounts dimensions I have seen it has a lot of level zero members and a lot of parent rollups. looking at top level members could be very slow (relative to if they were calculated or dense). We have all done interesting things in our cubes to gain some performance measure trading off calculation and retrieval performance. Doing something like this is an area where a testing is crital

  • Dynamic Calc, 2 Pass with Attributes!

    Hi there,We have an Occupancy KPI within our Measures dimension, that works off the following member calc:(("Agency"/"Occupancy")/"Actual"->"DayInMonth"->"DummyHome")*7;This is set with <Dynamic Calc> <Two-Pass>This works great accross our cost centres until we start to use attributes within the ADD-In. Then the figures are shown as #Missing - Nuts!Any ideas would be welcomeMany Thanks in advanceMark

    Are you also trying to pull dynamic time series or any other dynamically calculated member? If every other intersection is stored, I would expect this to work. However, if you attempt to pull, say Q-T-D(&CurrWk), then a #Mi result is quite possible, and unavoidable (depending on your outline).

  • How to pipeline a function with a dynamic number of columns?

    Hi everyone,
    I'm trying to figure out how to write a piplined function that generates a dynamic SQL statement from its inputs, executes the query, and returns the results of the query in the pipeline. The number and names of the columns in the dynamic query is unknown number until the function is invoked.
    I suspect that DBMS_SQL is involved, but can't quite figure out how to construct a row using it that I can use PIPE ROW on. I also can't figure out what data type the function should return (ANYDATASET?)
    pseudo-PLSQL follows:
    create function myfunction ( param1 varchar2)
    return anydataset pipelined
    as
    query_string := <... do stuff with param1 ...>
    < -- >
    open a cursor for query_string
    determine the number of columns
    read a row
    PIPE ROW it
    <--->
    Can what I'm trying to do be done?
    Thanks,
    Keith

    The following works on 10R2
    create or replace type NColPipe as object
      l_parm varchar2(10),   -- The parameter given to the table function
      rows_requested number, -- The parameter given to the table function
      ret_type anytype,      -- The return type of the table function
      rows_returned number,  -- The number of rows currently returned by the table function
      static function ODCITableDescribe( rtype out anytype, p_parm in varchar2, p_rows_req in number := 2 )
      return number,
      static function ODCITablePrepare( sctx out NColPipe, ti in sys.ODCITabFuncInfo, p_parm in varchar2, p_rows_req in number := 2 )
      return number,
      static function ODCITableStart( sctx in out NColPipe, p_parm in varchar2, p_rows_req in number := 2 )
      return number,
      member function ODCITableFetch( self in out NColPipe, nrows in number, outset out anydataset )
      return number,
      member function ODCITableClose( self in NColPipe )
      return number,
      static function show( p_parm in varchar2, p_rows_req in number := 2 )
      return anydataset pipelined using NColPipe
    create or replace type body NColPipe as
      static function ODCITableDescribe( rtype out anytype, p_parm in varchar2, p_rows_req in number := 2 )
      return number
      is
        atyp anytype;
      begin
        anytype.begincreate( dbms_types.typecode_object, atyp );
        if p_parm = 'one'
        then
          atyp.addattr( 'one'
                      , dbms_types.typecode_varchar2
                      , null
                      , null
                      , 10
                      , null
                      , null
        elsif p_parm = 'two'
        then
          atyp.addattr( 'one'
                      , dbms_types.typecode_varchar2
                      , null
                      , null
                      , 10
                      , null
                      , null
          atyp.addattr( 'two'
                      , dbms_types.typecode_varchar2
                      , null
                      , null
                      , 10
                      , null
                      , null
        else
          atyp.addattr( p_parm || '1'
                      , dbms_types.typecode_varchar2
                      , null
                      , null
                      , 10
                      , null
                      , null
          atyp.addattr( p_parm || '2'
                      , dbms_types.typecode_varchar2
                      , null
                      , null
                      , 10
                      , null
                      , null
          atyp.addattr( p_parm || '3'
                      , dbms_types.typecode_number
                      , 10
                      , 0
                      , null
                      , null
                      , null
        end if;
        atyp.endcreate;
        anytype.begincreate( dbms_types.typecode_table, rtype );
        rtype.SetInfo( null, null, null, null, null, atyp, dbms_types.typecode_object, 0 );
        rtype.endcreate();
        return odciconst.success;
      exception
        when others then
          return odciconst.error;
      end;  
      static function ODCITablePrepare( sctx out NColPipe, ti in sys.ODCITabFuncInfo, p_parm in varchar2, p_rows_req in number := 2 )
      return number
      is
        elem_typ sys.anytype;
        prec pls_integer;
        scale pls_integer;
        len pls_integer;
        csid pls_integer;
        csfrm pls_integer;
        tc pls_integer;
        aname varchar2(30);
      begin
        tc := ti.RetType.GetAttrElemInfo( 1, prec, scale, len, csid, csfrm, elem_typ, aname );
        sctx := NColPipe( p_parm, p_rows_req, elem_typ, 0 );
        return odciconst.success;
      end;
      static function ODCITableStart( sctx in out NColPipe, p_parm in varchar2, p_rows_req in number := 2 )
      return number
      is
      begin
        return odciconst.success;
      end;
      member function ODCITableFetch( self in out NColPipe, nrows in number, outset out anydataset )
      return number
      is
      begin
        anydataset.begincreate( dbms_types.typecode_object, self.ret_type, outset );
        for i in self.rows_returned + 1 .. self.rows_requested
        loop
          outset.addinstance;
          outset.piecewise();
          if self.l_parm = 'one'
          then
            outset.setvarchar2( to_char( i ) );
          elsif self.l_parm = 'two'
          then
            outset.setvarchar2( to_char( i ) );
            outset.setvarchar2( 'row: ' || to_char( i ) );
          else
            outset.setvarchar2( 'row: ' || to_char( i ) );
            outset.setvarchar2( 'row: ' || to_char( i ) );
            outset.setnumber( i );
          end if;
          self.rows_returned := self.rows_returned + 1;
        end loop;
        outset.endcreate;
        return odciconst.success;
      end;
      member function ODCITableClose( self in NColPipe )
      return number
      is
      begin
        return odciconst.success;
      end;
    end;
    /And to use it
    SQL> select * from table( NColPipe.show( 'test', 3 ) );
    test1      test2           test3
    row: 1     row: 1              1
    row: 2     row: 2              2
    row: 3     row: 3              3
    SQL>  select * from table( NColPipe.show( 'two', 5 ) );
    one        two
    1          row: 1
    2          row: 2
    3          row: 3
    4          row: 4
    5          row: 5
    SQL> select * from table( NColPipe.show( 'one' ) );
    one
    1
    2
    SQL> Anton

  • Data not replicated with partition and dynamic calc

    HI
    I am using Essbase 11.1.2.1.
    I want to use a replicated pratition wetween two Essbase BSO applications.
    But in my source application, I have to send an account ACCOUNT (level 1) with several stored members and 1 dynamic calc member with formula. Due to this Dynamic calc account, the partition doesn't work (data are not replicated).
    How could I do?
    Thanks
    Fanny

    You're right, dynamic calc account are not issues. I am using them in partition.
    But py issue is there :
    The source dimension is like this :
    TAX (Dynamic Calc)
    - 6xxxxxxx
    - 6yyyyyyy
    - 6zzzzzzz (Dynamic Calc) = formula
    The target dimension is like this :
    TAX
    And so I need to send TAX (Source) to TAX (cible).
    I don't think it is possible, but I would like a confirmation before using something else.
    I hope it is clearer now.
    thanks
    Fanny

Maybe you are looking for

  • Multi select date field

    Hi, Is there any idea how to combine multi select DATE field in the check-in screen? Thanks, eran.

  • How to delete headers when creating a new page

    when i duplicate page it automaticaly puts a header at top of page but i do not want that, i covered them up with black boxes but now that i loaded and published my site while the page is loading it shows the headers in the background untill my logo

  • Need to explicitly setup AutoRerun for new installations of SCDPM2012 R2?

    Do I have to explicitly create the AutoRerunNumberOfAttempts and AutoRerunDelay keys in the registry of my DPM servers for AutoRun to work or is it built into SCDPM2012 R2 to automatically perform a rerun when a Sync and Recovery Point (RP) fails?  H

  • Administrator password disabled

    went to open windows using administrator password and  was denied access.  computer said user profile service failed the logon.  have to sign in as guest and when I start to shut down,  get a message that other users are on computer and their data wi

  • How to determine estimated cost of dynamic SQL queries before execution?

    Hi Performance Gurus, Does anybody need know of a function module or program which can give me an estimated cost for a given SQL query. SQL query is a dynamic query and we need to know the estimated cost before we execute it. Cheers Jiby Moderator me