Selecting a shared structure parent member

Good day,
With a calcscript im trying to select the parent member of a shared structure using commands @SANCESTVAL or @SPARENTVAL, however it works correctly for the 1st shared structure and it dosent work for the 2nd shared structure i have in the OTL. Does somebody knows if this is an expected behavior? Or a workaround?
Kind Regards,
P.d I can´t move the shared structures order, since i also have that type of calculations for the 1st structure.
P.d.2. I have essbase ver 11.1.1.3
Edited by: user618861 on Aug 30, 2010 1:53 AM

Hi,
We found the solution, we where doing something wrong, i will explain so this helps to somebody else.
I have 1 dimension "Products" with 3 Childrens; "Total_Product", "Brand_Segment", "Total_SupplyPoint", where the store structure is "Total_Product" and the others are shared structures.
We were trying to select Level 1 members of the "Total_Supply Point" with the following Script.
FIX(&Load_Mth, &Load_Year,&Load_Scenario, "Working", @REMOVE(@RELATIVE("Total_SupplyPoint",0), @LIST("SRC_KK01", "SRC_PMB3", "SRC_SF02")), "NA_Customer","YTD_Input")
"CM_YearEndBonus" = ("CM_COGS_Allocation" / @SANCESTVAL("Products", -1, "CM_COGS_Allocation")) * @SANCESTVAL("Products", -1, "CM_YearEndBonus");
ENDFIX
The correct calculations is as follows, where the only change is for SANCESTVAL Instead of "Products" know we have "Total_SupplyPoint"
FIX(&Load_Mth, &Load_Year,&Load_Scenario, "Working", @REMOVE(@RELATIVE("Total_SupplyPoint",0), @LIST("SRC_KK01", "SRC_PMB3", "SRC_SF02")), "NA_Customer","YTD_Input")
"CM_YearEndBonus" = ("CM_COGS_Allocation" / @SANCESTVAL("Total_SupplyPoint", -1, "CM_COGS_Allocation")) * @SANCESTVAL("Total_SupplyPoint", -1, "CM_YearEndBonus");
ENDFIX
The literature saids,
@SANCESTVAL (rootMbr,genLevNum [, mbrName])
Where rootMbr: Defines a member that is used to search for the nearest occurrence of an ancestor of a shared member.
I hope is helpful for somebody else
Edited by: Pavel Moreno on Aug 30, 2010 9:10 AM
Edited by: Pavel Moreno on Aug 30, 2010 9:11 AM

Similar Messages

  • Error "Parent Member is found in dimension from selection"

    Hi,
    while running the export transaction data package we are getting the error " Parent Member is found in Dimension from selection".
    We cannot manually select each member as there are around 64K records which will have to manually selected. Is there a work around for the same?
    Regards
    Varun

    Hi Varun,
    The first thing is that if you are using the standard export DM package, then you should not be able to select any parent members. If you look at the advanced script of this package, the first statement will be SELECTINPUT. This will restrict the selection only to base level members. Technically, you should not select the parent members, because, the parent lelve members doesnt hold any data.
    Hope this helps.

  • Lookup on values (parent member) of other model

    Hi everybody,
    I have to get a value from one model within my application to save it in another model.
    I tried to use the Lookup functionility of BPC but this doesn't work. I'm allways getting Zeros when I run the script.
    Here is the code I used:
    *LOOKUP MODELA
    *DIM DATASRC = DS.TOTAL //Parent member
    *DIM COMPANY = CO.2000 //Basemember
    *DIM CURRENCY = USD //Basemember
    *DIM MAC: A_ACCOUNT = A.N001  //Parent member
    *ENDLOOKUP
    *LOOKUP MODELB
    *DIM MBC: COMPANY = CO.2000 //Basemember
    *DIM MBC: CURRENCY = USD //Basemember
    *DIM MBC: DATASRC = DS.TOTAL //Parent member
    *DIM MBC: B_ACCOUNT = B.N001 //Parent member
    *DIM MBC: RANK = RA.N001 //Parent member
    *DIM MBC: NATIONALITY = NA.N001 //Parent member
    *ENDLOOKUP
    *SELECT(%CPTLF%,ID,CATEGORY,RUN_LOGIC = Y AND CALC = N)
    *SELECT(%CPTPC%,ID,PROFIT_CENTRE,CALC = N)
    *SELECT(%CPTFC%,ID,TIME,ACT_FOR = F AND LEVEL = MONTH AND CALC = N)
    *XDIM_MEMBERSET A_ACCOUNT = A.1M406 //Specific Account
    *XDIM_MEMBERSET PROFIT_CENTRE = %CPTPC%
    *XDIM_MEMBERSET CATEGORY = %CPTLF%
    *XDIM_MEMBERSET TIME = %CPTFC%
    *XDIM_MEMBERSET COMPANY = CO.NA
    *XDIM_MEMBERSET CURRENCY = USD
    *XDIM_MEMBERSET DATASRC = CALC
    *WHEN A_ACCOUNT
    *IS A.1M406
    *BEGIN
    *REC(FACTOR = -(LOOKUP(MAC)+LOOKUP(MBC)),
    DATASRC = CALC,A_ACCOUNT = A.10002,COMPANY = CO.2000)
    *END
    *ENDWHEN
    When I run this script out of Model A everything seems to be working. But the Problem is that the lookup values for Model B are allways Zero. The strange thing is that this code worked last year correctly. This year the script doesn't calculates correctly. The difference is that we did a patch Level upgrade.
    Regards
    Derk

    Hi Derk,
    Now it's clear!
    First of all - you script is executed in OPERATIONS - then first LOOKUP is better to replace with tuples! Like:
    *LOOKUP MANNING
    *DIM CPT: COMPANY = CO.2700
    *DIM CPT: CURRENCY = USD
    *DIM CPT: DATASRC = DS.TOTAL
    *DIM CPT: MA_ACCOUNT = MA.N001
    *DIM CPT: RANK = RA.N001
    *DIM CPT: NATIONALITY = NA.N001
    *ENDLOOKUP
    *SELECT(%CPTLF%,ID,CATEGORY,RUN_LOGIC = Y AND CALC = N)
    *SELECT(%CPTPC%,ID,PROFIT_CENTRE,CALC = N)
    *SELECT(%CPTFC%,ID,TIME,ACT_FOR = F AND LEVEL = MONTH AND CALC = N)
    *XDIM_MEMBERSET OP_ACCOUNT = OP.1M406 //Cost Pass Thru Income Type
    *XDIM_MEMBERSET PROFIT_CENTRE = %CPTPC%
    *XDIM_MEMBERSET CATEGORY = %CPTLF%
    *XDIM_MEMBERSET TIME = %CPTFC%
    *XDIM_MEMBERSET COMPANY = CO.NA
    *XDIM_MEMBERSET CURRENCY = USD
    *XDIM_MEMBERSET DATASRC = CALC
    *WHEN OP_ACCOUNT
    *IS *    //already scoped to OP.1M406
    *REC(FACTOR = -(([OP_ACCOUNT].[OP.N006],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N011],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N014],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N034],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+([OP_ACCOUNT].[OP.N035],[COMPANY].[CO.2700],[DATASRC].[DS.TOTAL])+LOOKUP(CPT)),DATASRC = CALC,OP_ACCOUNT = OP.10002,COMPANY = CO.2700)
    *ENDWHEN
    Also it's necessary to understand which values can be missing in the cube... then different logic may be required!
    Vadim

  • GET 1 parent member

    Hi expert,
    in my script:
    *XDim_Memberset Product = <ALL>
    This will scan all of my children product only when i use  WHEN/ENDWHEN...
    but now i want include 1 parent member call : PD_SHEET  only one !!
    I dunt want use: *CALC_DUMMY_ORG Product=PARENTH1
    because this will make my system scan all the parent member ..and i have 100++ parent member..
    is there any idea??

    Hi Chiam,
      Since you're quite certain you only wanted to grab the value of 1 particular parent, i.e. PD_SHEET, i suggest that you hardcode the filtering of the PD_SHEET's children. I assume the necessary *SELECT and *XDIM_MEMBERSET statements have been done accordingly.
      For example, assuming the children of PD_SHEET are:
    1. PD_SHEET_Child1
    2. PD_SHEET_Child2
    3. PD_SHEET_Child3
      Then in your script logic, you can do the following:
    *WHEN PD_SHEET.ID
    *IS "PD_SHEET_CHILD1","PD_SHEET_CHILD2","PD_SHEET_CHILD3"
      *REC(EXPRESSION=%VALUE%  ......)
    *ENDWHEN
      I believed you can also do the following:
    *WHEN PRODUCT.PARENTH1
    *IS "PD_SHEET"
      *REC(EXPRESSION+%VALUE%......)
    *ENDWHEN
      You'll have to experiment with the last one, since the property PARENTH1 doesn't work with in some aspects of BPC, for example "Insert Member" in BPC Excel the last i checked, but in anycase the first logic though appearing clumsier, should work.
    Cheers,
    Lip Chean

  • EPMA Deploy Failed - Error : Shared instance of member

    Hello Experts,
    I have big problem, from time to time, I get shared members on my shared libary even tough I define all members as primary
    can any one advice how can I verfiy no shared members loaded to my shared libary?
    Thanks
    Ido
    Error : Shared instance of member ' ' was encountered before the primary instance of the member in dimension

    in addition, I just notice that when I import the dim from the interface table wizard, I have option name "If “Allow Overwrites with Blank” which is not selected,
    maybe it's has to do with the appreance of the shared members?

  • Parent member values in Fact tables

    Hello,
    I want to understand something, as far as I know, we can only send data to base level members, right ?
    Then how come we find rows of data that have parent member values in the Fact tables ? (assuming we do not play manually with the database of course), I thought that this can be due to an import with the data manager, can this be right ?

    nilanjan chatterjee wrote:
    Hi,
    >
    > The data for the parent members should be available in the SQL tables.
    > For example, 2011.TOTAL is parent member. You should not have any data for this member in your database. If it is there, it might have come somehow (may be an import). But this is not right. You might want to remove these records. But be sure that you dont delete the records for the base level members.
    >
    > Hope this helps.
    I guess you meant should not, right ?

  • Lately my finder closes when I select a shared devices and I can no longer connect to other macs.  Wifi working, TC okay except in finder. Mac Pro running 10.8.5

    Lately my finder has been closing when I select a shared device such as another mac, a printer, or the time capsule.   My WiFi connection is working - I can can still backup to the TC and use my wireless printer, but I just can't access them by clicking on them in the finder window.   Any suggestions would be appreciated!

    Thanks for your help
    I made no changes to the mini or the server.
    The router was shut down then on restart the new (replaced modem) was configured by using another mac on the network (not the file server)
    Once the router and modem were online again, other macs running 9.2 were accessing the file server as usual. The mini was not.
    I had been working on a file that resides on the server. I was not warned that the router was going to be shut down. When I saved the file I got the beach ball then error message.
    It'll be next week before I'm in the office agin. I'll report back then. Thanks

  • How can I create a dimension member formulas involving parent member?

    Hi everyone,
    I'm trying to learn BPC- Planning and I've got the following issue:
    Behind each key figure is a calculated formula which will not be calculated in the aggregated parent member ( Energie Kosten). It's a IF formula based on percentage. As far as I understood it's not possible in BPC NW 10.  to store values at parent level and parent member doesn't aggreagte child values that are calculated members. What can I do to solve the problem? The only solution will be the logic scripts?
    Any input is appreciated.
    Thank you!

    Hi Vadim,
    thank your for your answear.
    Here it's my formula:
    IIF([KENNZAHL].[S_PSTROM] = 0 , [KENNZAHL].[E_PSTROM] ,[KENNZAHL].[S_PSTROM] * ([KENNZAHL].[BELGES] *[KENNZAHL].[TAGEMON] ))
    where: S_PSTROM = percentage key figure
             E_PSTROM =  manual input key figure
             BELGES = allocation
             TAGEMON= days per month
    The formula is used to calculate the energy. If there are adjustments used then will be calculated using the percentage if there are no adjustment needed that should take automatically the manually entered values.
    It's used only a hierarchy- PARENTH1. And only the dimension without calculated members are calculated in nodes.
    Thank you a lot!

  • How to aggregate until parent member?

    Hello all,<BR><BR>How to calculate the parent member of the current member?<BR><BR>Background: I want to offer users a limited dimension aggregation option. This to reduce the calculation time. Users are most interested in calculation of the level just above the input level. Therefore, I want to create the possibility to calculate the parent of the current member which is given with a prompt in Business Rules. <BR><BR>I have been exploring the possibility of @PARENT or @ANCESTOR but I could not find a possibility (since I can not use them in a Fix statement).<BR><BR>Do you see a possibility here?<BR><BR>Philip Hulsebosch<BR>Trexco<BR><BR><BR>

    We perform YTD calculations via member formulas in our Period (time) dimension as follows.
    P01YTD
    "P01";
    P02YTD
    IF(@ISDESC("Headcount") OR @ISMBR("Exchange Rate"))
    @AVG(SKIPNONE,"P01":"P02");
    ELSEIF(@ISACCTYPE(FIRST))
    "P01";
    ELSEIF(@ISACCTYPE(LAST))
    "P02";
    ELSE
    @SUM("P01":"P02");
    ENDIF
    (same logic used for P03YTD thru P11YTD)
    and finally, P12YTD is simply
    "Full Year";
    Retrieve performance isn't great on monster spreadsheets, but otherwise it works reasonably well.
    Hope this helps.

  • Regarding select statement on structure

    hi,
    can we write select on structure?.........i hav  to get condition record from konv(which is a structure) based on ekpo-ebeln.
    for this i hav written code like this
    IF NOT it_ekpo IS INITIAL.
        SELECT knumv
               kposn
               kschl
               kbetr
               waers
               KWERT
          FROM konv
          INTO TABLE it_konv
           FOR ALL ENTRIES IN it_ekpo
          WHERE knumv = it_ekpo-ebeln
            and kposn = it_ekpo-ebelp
            AND ( kschl EQ 'ZPF3' OR kschl EQ 'ZVAT'
                OR kschl EQ 'ZCSR' OR kschl EQ 'ZFR3' ).
        IF sy-subrc EQ 0.
          SORT it_konv BY knumv kposn.
        ENDIF.
      ENDIF.

    Hi
    You cannot write the Select statement on Structures but yo have a table for that structure where you will get the same data.
    You can use komv & konp table instead of structure .
    IF NOT IT_EKPO IS INITIAL.
      SELECT KNUMV
             KPOSN
             KSCHL
             KBETR
             WAERS
             KWERT
             FROM KONV
             INTO TABLE IT_KONP
             FOR ALL ENTRIES IN IT_EKPO
             WHERE KNUMV = IT_EKPO-EBELN
             AND ( KSCHL EQ 'ZPF3' OR KSCHL EQ 'ZVAT'
             OR KSCHL EQ 'ZCSR' OR KSCHL EQ 'ZFR3' ).
    ENDIF.
    Thanks & regards,,
    Dileep .C

  • Mass translation of text Symbols,Selection texts and Structures

    Hi,
    As per our Project Requirement we need to  maintain Mass translations for Text Symbols, Selection Texts and structures.
    Can anyone please provide a Tool or a solution through which we can maintain these translations without doing it manually
    through SE63 transaction .
    I have all the Translations maintained in a (.xls) file.
    Is it possible to provide this (.xls) (This .xls has the Original text and the Translated text) as a input and get the translations done.
    I would also like to know in which table these translations are maintained.
    Please help me with this.
    Thanks in Advance.

    Hi,
    There is no standard tool as such.
    You can use below technique to develop your own tool.
        READ TEXTPOOL 'Program name' INTO i_source LANGUAGE 'Language'.
        DELETE TEXTPOOL 'Program name' LANGUAGE 'Language'.
        INSERT TEXTPOOL 'Program name'  FROM i_target LANGUAGE 'Language'.
    Thanks,
    Vinod.

  • How to write parent member (TOTAL) to basemember?

    Hi experts!
    This code doesn't work. Why? Task is - write "TOTAL" member to another member.
    *XDIM_MEMBERSET CATEGORY=ACTUAL
    *XDIM_MEMBERSET MEASURES=PERIODIC
    *XDIM_MEMBERSET RPTCURRENCY=USD
    //KBO1000000 is parent node,ZCX1000000 is basemember
    *XDIM_MEMBERSET KB_ACCT=KBO1000000,ZCX1000000
    //TOTAL MEMBERS G100,E100 are parent nodes,EMPTY are basemembers which not included to G100 or E100
    *XDIM_MEMBERSET P_CC=BAS(G100),EMPTY
    *XDIM_MEMBERSET P_ENTITY=BAS(E100),EMPTY
    *XDIM_MEMBERSET P_TIME=2010.JAN.01
    *WHEN P_TIME
    *IS 2010.JAN.01
    *WHEN CATEGORY
    *IS ACTUAL
    *WHEN P_ENTITY
    *IS E100
    *WHEN P_CC
    *IS G100
    *WHEN KB_ACCT
    *IS KBO1000000
    *REC(EXPRESSION=%value%,KB_ACCT=ZCX1000000,P_TIME=2010.JAN.01,P_ENTITY=EMPTY,P_CC=EMPTY)
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *COMMIT

    Tuple expression is used to write parent member to base member. try below code.
    *XDIM_MEMBERSET CATEGORY=ACTUAL
    *XDIM_MEMBERSET MEASURES=PERIODIC
    *XDIM_MEMBERSET RPTCURRENCY=USD
    //KBO1000000 is parent node,ZCX1000000 is basemember
    //*XDIM_MEMBERSET KB_ACCT=KBO1000000,ZCX1000000
    *XDIM_MEMBERSET KB_ACCT=ZCX1000000
    //TOTAL MEMBERS G100,E100 are parent nodes,EMPTY are basemembers which not included to G100 or E100
    //*XDIM_MEMBERSET P_CC=BAS(G100),EMPTY
    //*XDIM_MEMBERSET P_ENTITY=BAS(E100),EMPTY
    *XDIM_MEMBERSET P_CC=EMPTY
    *XDIM_MEMBERSET P_ENTITY=EMPTY
    *XDIM_MEMBERSET P_TIME=2010.JAN.01
    *WHEN_REF_DATA=MASTER_DATA
    *WHEN KB_ACCT
    *IS ZCX1000000
    *REC(EXPRESSION= ([KB_ACCT].[KBO1000000],[P_ENTITY].[E100],[P_CC].[G100]),P_ENTITY=EMPTY,P_CC=EMPTY)
    *ENDWHEN
    *COMMIT

  • How to do dependent select list based on parent select list

    Hello... I have the following bit of code...
    *parent select
    htmldb_item.select_list_from_query(1,null,'select program_desc_eng, program_id from myfps_programs')
    * child select using parent value
    htmldb_item.select_list_from_query(2,null,'select sub_pgm_desc_eng, sub_program_id from myfps_sub_programs where program_id = <VALUE FROM ABOVE?>')
    I know this is easily done using the select list form items and such but I need to use the htmldb_item function. On screen when a user selects value from the parent select list, I want the child select list to use the value of the parent as a parameter into its own select list. How can I reference the parent? (ie can I use htmldb_application.g_f01(1) or something of this nature?) I realize I may need a bit of javascript to have it work correctly but I'm just wondering if its possible?

    This is not a trivial task.
    See http://forums.oracle.com/forums/thread.jspa?messageID=1241356

  • Structure Index Member structure imput does not match Input Splitter output

    I am running into a problem with Tiger's Quartx Composer where a structure output from an Input Splitter does not match the structure input to the Structure Index Member it is directly connected to. The input to the Structure Index Member displays an unchanging value structure when a changing value structure is passed to it. The same result occurs if the inputted structure in received via publish by passing the Input Splitter. Does anyone know what would cause this to happen?

    Hi Frank,
    Sorry, I have absolutely no idea what you're dealing with, but have you done any OS Maintenance lately, like clearing Caches?
    At this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files!
    Disconnect the USB cable from any UPS so the system doesn't shut down in the middle of the process.

  • No "select relationship" area under EPM member selector

    According to SAP BPC 10.NW material, there should be a "select relationship" area under EPM member selector where you can define how to selection member. but I did not find it under our EPM member selector of EMP office add-on Excel. anybody know why?

    Hi,
    I think you are checking under context member selector. Follow below steps to see the required option from member selector
    Step 1: Create a report by using any of the following methods
    **Creating reports using the EPM pane.
    **Creating reports using the Report Editor.
    **Creating reports directly in a sheet.
    Step 2: Just click on any dimension wich has kept under either row or column axis
    Then system would prompt you member selector window with "Selection Relationship", this member selector is different from context member selector.
    Hope it helps..
    regards,
    Raju

Maybe you are looking for

  • How to convert an excel "If" formula into a PCR?

    I need to create a rule so that an overpayment recovery is only taken if the net pay is above an agreed amount with the employee. I can write the rule in excel but i'm struggling to convert this into a PCR. All help is welcome even if it's pointing m

  • 10.5.5 hangs with the beachball

    I have a macbook (dual core 2) and early intel iMac (dual core) 2006. Both have pretty much same setup and now have 10.5.5. My iMac started exhibiting the "beachball of death" freezes more and more in last few days. It started in iTunes when watching

  • Webservice call to XI Interface through SOAP Adapter from a Web application

    I  am getting  the following error, when I try to call the XI Interface using soap adapter from a web application. ERROR  : SystemError:           <context>XIAdapter</context>           <code>ADAPTER.JAVA_EXCEPTION</code>           <text><![CDATA[ co

  • No sound on video podcasts/videos with 7.4

    i just did the upgrade to iTunes 7.4 today. since I did that all my video podcasts and all videos are mute. mp3s play fine. what is that? did apple hire some microsoft programmers for that upgrade? i'm pretty p**sed off. does anyone have the same pro

  • Code to Photoshop Album Starter Edition

    Want to get new code. I think I deleted it in my junkmail. Help Please