How to make a calc script on a dense dimension ?

Dears,
I want to make a calculation script on a dense dimension where :
- I want to get an input from a member, then make a mathematical calculation , then populate the result in another member at the same dimension .
For More Clarification :
I have the following fix
CALC ALL ;
FIX ("SAR","Working.V01","Budget2012","FY12","G_10","NM_CAT01","Employee General","BegBalance")
"Internal Transportation" = "Monthly Transportation"*30 ;
ENDFIX
-Internal transportation and monthly transportation are 2 members on FB_account dimension (dense dimension) .
Waiting for your response, Thanks in advance.

Dear ,
I appreciate your feedback . But, My problem is that after executing the calc script , No calculation happens .
by another means ,
-If I wrote "Internal transportation" = 500 ; --> It put 500 in it
-If I wrote "Internal transportation" = "Internal transportation" * 100 ; --> No calculation happened but it executed successfully
-if I wrote "Internal transportation" = "Monthly transportation" = 500; --> No calculation happened but it executed successfully
I don't know Why ???

Similar Messages

  • How to run a Calc script in ASO application

    Hi,
    I have gone through the Essbase Release 11.1.2 and I tried to implement the Calc scripts in ASO application.
    When I tried to Create a Calc Script using Calc script editor for ASO Application in EAS console it say's "Calc script is not supported in ASO application". When i saved the Calc scripts it appears in Backend but it is not visible in EAS console.
    I tried to call the Calc script using MDX script but it says "Unable to open the file Custom calculation terminated with Essbase error 1241109"
    Can anyone help me how to work on Calc scripts in ASO application?
    Thanks in advance

    I think you might be confusing BSO calc scripts with ASO custom calcs, there is a whole section in the documentation on ASO calcs - http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/aso_custcalc_alloc.html
    There are also examples on the internet if you search spend some time researching.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to make at startup script that fits spread on open

    Hi there,
    Does anyone know how to make a startup script for InD CS6 that fit spread too screen when document open?
    I've tried this and it works but I've get a dialog that says "Object is not valid":
    #targetengine "session"
    main();
    function main(){
    var myEventListener = app.eventListeners.add("afterOpen", excuteScript);
    function excuteScript(){
    var myD = app.documents[0];
    app.layoutWindows[0].zoom(ZoomOptions.FIT_SPREAD);

    Hi Jump_Over and thank's for reply.
    I'm a total newbie when it comes to scripting.
    Can you show me how you mean?
    Jonas

  • Can you suggest me how to run multiple calc scripts using singel maxl script

    Hello,
    I am writing a maxl script which should be able to :
    1. update Set Variables for the Essbase DB
    2. Execute multiple calc scripts
    2a. Trying to put specific sleep time within multiple calc scripts.
    Thanks and Regards.

    Why are you looking for a Maxl to run multiple maxls? Can't you use a batch or sh script to do it.
    Unix has a sleep command in batch file try using choice
    Regards
    Celvin

  • How to make an insert script for CLOB data types?

    I need to have an insert script for Oracle 11g where I insert large texts into a CLOB field
    I exported data from a source table using TOAD's export dataset and the insert statements option, so it generates a script of just simple insert into statements with the clob strings in the values clause within single quotes.
    While most of the inserts succeed, several fail with the error: string literal too long
    How can I insert long texts into clobs?
    One workaround I was considering, is maybe breaking up those inserts which are too big, so that it inserts a chunk, and then does an update to append additional chunks? not sure if that would work either
    first wanted to get any ideas from the oracle experts here in case there is a much easier, non-manual labor intensive way.

    Thank you for that informative link, Raj
    I wouldn't be able to use SQL Loader for this though, this is something that gets submitted to a DBA in a request and it must be in a script that can be run in Sql Plus, and it cannot pull it from a table or file.

  • How to use a calc script to work around Implicitly share members

    I have a hierarchy which has some implicitly shared members( one child per parent)
    For example my cost center dimension is built the following way
    CostCenter
    |
    |-------------------CostCenter1
    | |
    | |--------------Member A( child of COst Center 1) ---------------------------Has 4 children members
    |
    |
    |------------------CostCenter 2
    |
    | Member B( Child of Cost Center 2)______________________ has 4 children
    Anytime I use a function to reference Member A from COstCenter 1, the function is automatically skipping the next level and looking at the bottom level
    For example if I do a @COUNT(SKIPNONE, @children(COstCenter1))
    it returns 4 instead of 1
    I know that if I use the never share option for the members it will fix the issue, but I want to know if there's a work around for it
    Here's the full script I am using
    /*Calculate gross and net values for all regions for parent level cost centers*/
    FIX(@RELATIVE("A_76867",0), @RELATIVE("A_76868",0),
    "USD",
    "GROSS_VIEW",
    "WorkingVersion",
    /*@IDESCENDANTS("Regions"),*/
    @IANCESTORS("R_Americas1"),
    @UDA("Scenarios", "CurScen"),
    @RELATIVE("F_ALL_FUNDING",0),
    /*@REMOVE(@IDESCENDANTS("E_10041716"), @RELATIVE("E_10041716",0))*/
    @ANCESTORS("E_10041676")
    FIX(@UDA("Years", "CurYear"), @UDA("Periods", "CURRENT_Q"))
    "No_LegalEntity"
    "GROSS_VIEW" = @SUMRANGE("NET_VIEW", @children(@currmbr(CostCenters)));
    IF (@ISDESC("A_76867"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @COUNT(SKIPNONE,@children(@currmbr(CostCenters)))*
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = (20000) *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF;
    ELSEIF (@ISDESC("A_76868"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @COUNT(SKIPNONE,@children(@currmbr(CostCenters))) *
    (1 - "A_SMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = (20000) *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF;
    ENDIF;
    ENDFIX
    FIX(@UDA("Years", "Future1"), @UDA("Periods", "FUTURE_Q"))
    "No_LegalEntity"
    "GROSS_VIEW" = @SUMRANGE("NET_VIEW", @children(@currmbr(CostCenters)));
    IF (@ISDESC("A_76867"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @SUMRANGE("NET_ADJUSTMENTS", @children(@currmbr(CostCenters))) *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = ("NET_ADJUSTMENTS") *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF;
    ELSEIF (@ISDESC("A_76868"))
    IF(@COUNT(SKIPNONE,@children(@currmbr(CostCenters)))>1)
    "NET_ADJUSTMENTS" = @SUMRANGE("NET_ADJUSTMENTS", @children(@currmbr(CostCenters))) *
    (1 - "A_SMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ELSE "NET_ADJUSTMENTS" = ("NET_ADJUSTMENTS") *
    (1 - "A_LMV"->"NETTING_PERCENT"->"Annual_P"->@UDA("Years", "CurYear")->"R_global");
    ENDIF
    ENDIF;
    ENDFIX
    ENDFIX
    ________________________________________

    it is choosing the chilod member instead of the parent eventhough the fix is defined to use the parent memberAnd that's an implied share.
    Per Kevin's recommendation, make the parents Never Share and your code will work the way you expect.
    Regards,
    Cameron Lackpour

  • How to make a logic script ?

    Hi all !
    I would like to make a simple thing : make a SUM of 4 accounts by a LogicScript.
    I make this one, called CALC_EFF.LGF, which I included in my DEFAULT.LGF (*INCLUDE CALC_EFF.LGF)
    *XDIM_MEMBERSET COSTELEMENT =G101,G102,G120,G122
    *WHEN COSTELEMENT
    *IS G101
    *REC( EXPRESSION =%VALUE% , COSTELEMENT=EFF_DIRECT)
    *IS G102
    *REC( EXPRESSION =%VALUE% , COSTELEMENT=EFF_DIRECT)
    *IS G120
    *REC( EXPRESSION =%VALUE% , COSTELEMENT=EFF_DIRECT)
    *IS G122
    *REC( EXPRESSION =%VALUE% , COSTELEMENT=EFF_DIRECT)
    *ENDWHEN
    Is there some mistake in my code ?!
    Is it possible to make it buy a Business Rules ?                    

    In this configuration (see above costelement's hierarchy) I cannot create an ADDITIONAL hierarchy, BPC doesn't allow me I have the following error message :
    "Base member "EFF_DIRECT" cannot be the parent of "G121" in PARENTH2"
    It is written in the SAP Business Planning and Consolidation's book of SAP :
    And about the nested formula, I made a quick test to show you the error message :
    Scenario : I try to create a formula on "DUMMY" member. In my formula I want to make a simple addition "CMOMOY" (which is allready a calculated member) + "CMOPCAD" (calculated member also) = error message :
    "Member formula "DUMMY" contains nested formula in "CMOMOY" member"

  • Create a New Calc Script from VB.

    Does anyone know how to create a calc script using the VB Essbase API? We are going thru a large modification. Most of our calc scripts are stored on an oracle database. The idea is to send the stored scripts to a text file and then using the essbase api to create new calc scripts based on the the text files. Any help or ideas would be appreciated.Thanks

    This shouldn't be too difficult. You should be able to either read your existing script straight from your Oracle database using ODBC & ADO Recordset or from a test file using a scripting.filesystemobject and then make any changes using the VB code. Then use either the EsbBeginCalc/EsbSendString/EsbEndCalc or EsbCalc functions in the VB API to run them. I've used this sort of approach in the past to allow users to substitute specific members into 'template' calc scripts at runtime. Hope this helps.Mark Rixon www.analitica.co.uk

  • How to make an 'order' button that works?

    How do I make an 'order' button, by clicking on it, will post a pre-defined product number in a contactform?
    Probably I have to use php, but I do not know how to make the correct script.
    Regards, Gerald

    If you just need it to pop text into a textfield, you can use javascript, something like this might do the trick for you...
    <textarea id="TheText"></textarea>
    <select id="DropDown">
        <option value="">None</option>
        <option value="text-one">Choice One</option>
        <option value="text-two">Choice Two</option>
        <option value="text-three">Choice Three</option>
        <option value="text-four">Choice Four</option>
    </select>
    <script type="text/javascript">
        var thetextbox = document.getElementById('TheText');
        var mydropdown = document.getElementById('DropDown');
        mydropdown.onchange = function(){
        thetextbox.value = this.value;
    </script>
    The script should come after the textbox and dropdown in your HTML.

  • To View Calc Scripts and Report scripts via MaxL or Esscmd

    Hi all,
    Can somebody tell how to read any calc script or report script in any database with the help of MaxL or Esscmd?
    For example if there is any .csc or .rep file, I want to read the context of the file i.e. the script that is written in the file. Is it possible via MaxL or Esscmd?
    Does Hyperion supports this functionality?
    Regards,
    James

    You know that calc and report scripts are text files, right?
    They are typically stored in the database directory, although that is not a requirement; they can be stored in other client-accessible directories and run from there.
    I haven't done it in ages, but is also possible to pass calc and report scripts to Essbase via the API. I can't remember if the API will let you enumerate calc scripts from the database directory. I sort of strongly think yes. Someone who is more knowledgeable will either correct or refute that statement pretty soon. :)
    If you want to list the objects (calcs or reports): http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/techref.htm
    A few things that you can do with MaxL re calc scripts:
    1) execute calculations, including a string that you pass through MaxL: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/excalc.htm
    2) delete calculations: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/drpcalc.htm
    3) list the calcs: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/dispclc.htm
    4) create the calc: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/crecalc.htm
    Report scripts are sort of a poor relation in MaxL (and were in Esscmd as well). You can basically only run a report as kind of export: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/exprt.htm
    So, I think it's mostly there, especially the display object command. BTW, if MaxL can list it, the API can too -- how else does MaxL work?
    Regards,
    Cameron Lackpour
    Edited by: CL on Dec 1, 2008 11:53 PM
    Didn't post the right URLs. Now fixed. CL

  • Execute Essbase Calc Scripts from FDM

    Hi,
    Can any of you let me know how to execute Essbase Calc Scripts from FDM, these Calc Scripts are on Essbase Server. Any help would be greatly appreciated.
    Thanks

    See the thread below:
    Re: FDM - Script

  • Which calc script ran?

    I have a Hyperion Planning application. Web forms kick off calc scripts. Unfortunately, some of my data gets overwritten periodically though I can't reproduce the problem. I suspect a calc script problem. In the event it happens again, I'd like to be able look at application logs and see which scripts were called before the data problem presented itself. Can anyone tell me how to log which calc scripts get called. Right now all I see is: Received Command [Calculate] from user [Admin]Thanks

    I think you should have more log messages, something like this:<br><br>Calculating [Measures (All Members)] with fixed members [Scenario (Actuals)]<br><br>But maybe those messages are dependant on the MSG level..(?)<br> Let me know if you see those.<br>Jeff McAhren<br>Dallas, Texas

  • Essbase 9.3 Calc scripts. Pb with dates. How to convert (string = number) ?

    Hello,
    I've a problem with Essbase(Planning?) Scripts on version 9.3. It looks simple but I do not find any (clean) solution :
    On my Essbase database, I have a member called "Reference_Date" on my axis Indicators. It is a date data type, that is to say, it displays a number corresponding to a YYYYMMDD format. For example : 20091029 for October 29th 2009.
    In calc scripts I often need to compare the month included in that "Reference_Date" with the current Member of my Time Axis (I have 12 Months members based on the format M02 for February for example). The final aim is to calculate a number of complete years since that "Reference_Date".
    But theses two elements are not of the same "type" (one is a number value and the other is a "member" in Time Axis). So I'm forced to convert one of this two elements in order to compare it.
    For example I can extract the month value of the "Reference_Date"' and put an "M" before it to have a Time member equivalent or I can convert the member Name M10 to a number (10))
    in both cases I have the same type problem : I don't know how to convert a string into a number nor how to convert a number into a string.
    (For example @CONCATENATE doesn't work with numbers). and that my only remaining problem.
    I didn't find any Essbase Function which do this (conversion number <=>string).
    Is anyone have an Idea ?
    Thanks for your help
    Best regards

    I don't know any way for you to compare your data against your metadata. Not directly. To me it makes little enough sense to try that I'm not surprised the developers didn't provide for it.
    I've converted member names to strings, manipulated the strings (calc script functions are not good at this), and turned them back into member names, but that's really the only use I've had for string manipulation. I don't think an equivalency operator even exists for string data. And I see no way to begin thinking of a member name, once converted to a string, as a number.
    It makes even less sense to me to try thinking of a data value as a string. Even text values in Sys 11 are stored as numbers. Not encoded characters, but just a number to look up somewhere.
    I think you can do what you want though, with something like this...
    IF (@ISMBR("FY08"))
    vYr = 2008;
    ELSEIF (@ISMBR("FY09"))
    vYr = 2009;
    ENDIF;
    IF (@ISMBR("M01"))
    vMth = 1;
    ELSEIF (@ISMBR("M02"))
    vMth = = 2;
    ENDIF;
    "Years_Since_Reference" = ((vYr * 100) + Mth) - ("Reference_Date" / 12);
    Obviously, the math will need some work, coz that doesn't actually work, but the logic above essentially turns your metadata into numbers, which is what you are after.
    Good luck,
    -- Joe

  • How to find a text in the Frame maker document via script?

    How to find a particular text in the Frame maker document via script?

    johnsyns wrote:
    Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
    Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
      5  /
    no rows selected
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY  '
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> SY.

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

Maybe you are looking for

  • My Windows Vista is Not Working

    I was using my Vista side of my iMac a few days ago when i was prompted to install an update now every time I click on the icon I get an Error message saying that parallels has quit unexpectedly I hit the RELAUNCH button but it just comes back to the

  • Best practice for keeping a mail session open in web application?

    Hello, We have a webmail like application where users login with their IMAP credentials, then are taken to an authenticated area of the site where they can manage different things about their email account. Right now the application is opening and cl

  • MacbookPro Retina how to use NVIDIA display

    How to do I use NVIDIA display for my MBP Retina 15"? I tried Apple -> About this Mac -> More Info -> Display and I am unable to select NVIDIA display, only the Intel HD display shown. Please help what should I do?

  • OracleJSP error: java.io.FileNotFoundException when submitting form

    I auto-generated a task form for a very simple test and receive this error when SUBMIT-ing the form. OracleJSP error: java.io.FileNotFoundException: Set the init-param debug_mode to "true" to see the complete exception message I am guessing it has so

  • Class adf.controller.faces.context.FacesPageLifecycleContext not found

    Hi all, I am using Jdeveloper 11.1.1.0 and I have a class uses FacesPageLifecycleContext. When I import the class oracle.adf.controller.faces.context.FacesPageLifecycleContext, the debugger tells me it does not found that class. How can I solve the p