ASO Custom Calculation (Procedural)

Do custom calculations support using the ROUND mdx function? I know member functions are not supported but what about ROUND?
I'm asking because I'm getting the following error:
"Cannot Perform Custom Calc. Essbase Error(1300056): The expression is invalid"
Thanks
Edited by: rubylife on Nov 6, 2012 3:42 PM

You've got a mismatched " in the first line of the "execute calculation" statement.
However, I think the real problem is in the calc script.  I don't believe you can do this in MDX:
CASE WHEN x THEN
    a := y;
    b := z;
END
You have to do this:
a := CASE WHEN x THEN y END;
b := CASE WHEN x THEN z END;
An alternative is to create a formula member for each of the measures you are trying to set (with the member formula containing the CASE logic) and have the calc script copy the formula member to the permanent member.

Similar Messages

  • Custom Calculation in ASO - Error in MDX query

    Hi All,
    We are trying to use a run a custom calculation on our ASO cube
    We are getting the error as below
    Syntax error in input MDX query on line 13 at token ' )'
    When i checked my POV i did not find any issue. Even when I try to put only one crossjoin, it is still giving me the error saying "error at line 2')' "
    I am unable to find the cause of this issue.
    Can any one help me on this.
    ******content of Maxl Script********
    execute calculation on database ASOFNPLN.ASOFNPLN with local script_file D:\++++++++Sateesh+++++++\ADWEA\Custom.csc"
    POV
    "Crossjoin({[FY09]},
    Crossjoin({[Actual]},
    Crossjoin ({[Jan],[Feb]},
    Crossjoin({[Working]},
    CrossJoin({[XA]},
    CrossJoin({[0000000]},
    CrossJoin({[000000000]},
    CrossJoin({[00000]},
    CrossJoin({[175110]},
    CrossJoin({[CC_ADWEA_0000_AED]},
    CrossJoin({[Unspecified Product]},
    CrossJoin({[HSP_InputValue]},
    CrossJoin({[Local]} )))))))))))))"
    SourceRegion "{[Opening Balance],[Ending Balance],[Periodic Balance]}";
    *************** Content of Custom.csc *********
    case when
    IsUda([Account].currentMember, "Expense") OR IsUda([Account].currentMember, "Revenue")
    AND
    Is([Period].CurrentMember, [Jan]) OR Is([Period].CurrentMember, [Feb]) OR Is([Period].CurrentMember, [Mar]) OR Is([Period].CurrentMember, [Apr]) OR Is([Period].CurrentMember, [May]) OR Is([Period].CurrentMember, [Jun]) OR Is([Period].CurrentMember, [Jul]) OR
    Is([Period].CurrentMember, [Aug]) OR Is([Period].CurrentMember, [Sep]) OR Is([Period].CurrentMember, [Oct]) OR Is([Period].CurrentMember, [Nov]) OR Is([Period].CurrentMember, [Dec]) OR Is([Period].CurrentMember, [YearTotal])
    THEN
    ([Ending Balance]):=([Opening Balance]+[Periodic Balance]);
    ([Opening Balance]):=([View].[Ending Balance], [Period].CurrentMember.lag(1));
    ([Ending Balance]):=([Opening Balance]+[Periodic Balance]);
    END

    You've got a mismatched " in the first line of the "execute calculation" statement.
    However, I think the real problem is in the calc script.  I don't believe you can do this in MDX:
    CASE WHEN x THEN
        a := y;
        b := z;
    END
    You have to do this:
    a := CASE WHEN x THEN y END;
    b := CASE WHEN x THEN z END;
    An alternative is to create a formula member for each of the measures you are trying to set (with the member formula containing the CASE logic) and have the calc script copy the formula member to the permanent member.

  • "Company code not assigned to country or country to calculation procedure"

    Hi ,
    I'm practicing SAP on IDES at home.
    I have not created any 'Calculation procedure' (TAXINN or TAXINJ)  neither assigned any procedure to
    country 'IN'. I have maintained tax category 'MWST' for 'IN' in OVK1 and also assigned my delivering plant
    for tax determination. I have also maintained tax relevancy for master records ( OVK3 - customer  & OVK4 -
    material ) and also maintained condition records for MWST.
    Everything is working fine while creating normal sales order including accounting document creation &
    posting. But when I'm creating a purchase order ( ME21N) for 3rd party process getting the error "Company
    code not assigned to country or country to calculation procedure".
    Plz help me with the solution how to create calculation procedure or which procedure should I assign to country 'IN' from the list of available procedure.
    ( I can't take help from FI guy as I'm practicing on my own )

    Hi Arveen,
    Check calculation procedure using T.code OBYZ(IMG > Financial Accounting> Financial Accounting Global Settings--> Tax on Sales/Purchases --> Basic Settings -
    > Assign Country to Calculation Procedure.)
    Select new entries--Enter tax procedure for India TAXINN-TAx procedure INdia
    Save.
    Use T.code OBBG....select position...enter IN....against that assign the tax procedure created above and save.
    Hope this resolves.Let me know if you still encounter problem.
    Thanks
    Aravind

  • Custom Calculation terminated with Essbase error 1200685 in POV

    I'm trying to improve the efficiency of an ASO calculation script by limiting the scope of the calculation using a filter within the POV.
    When I do this, I get an error that says MDX error: A symmetric set expression is expected. Custom Calculation terminated with Essbase error 1200685 in POV.
    Using a similar filter in an mdx query I can see that I should be updating approximately 5000 data points. That query returns data in less than a minute. If I remove the filter, the calc will run over 16 hours and not complete (I've killed it at that point). [FI - Begining Balance Calc] is a calculated member, which is dependent on other calculations. I'm thinking that the calculation is churning for all of the potential member combinations regardless of sparseness of the data.
    Error 1200685 is not documented in the Essbase Error Message guide. Any ideas on this anyone?
    calc_1.txt contains:
    [FI - Beginning Balance Stored] := [FI - Beginning Balance Calc];
    execute calculation on database REVFCTA.REVFCTA with
    local script_file "E:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\app\REVFCTA\REVFCTA\calc_1.txt"
    POV "FILTER(CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN(
    CROSSJOIN({[Y.2011]},{[SEG.S0001]}),
    {[FORECAST]}),
    [ASSET TYPE].Levels(0).members),
    [FUND_INVESTOR].levels(0).members),
    [OZ_FUND].levels(0).members),
    {[PER.2]}), NOT ISEMPTY([FI - Beginning Balance]))"
    SourceRegion "({[FI - Beginning Balance Calc]})";
    This is the mdx query:
    SELECT
    {[FI - Beginning Balance Calc]} ON COLUMNS,
    FILTER(CROSSJOIN(CROSSJOIN([FUND_INVESTOR].Levels(0).members,
    [ASSET TYPE].LEVELS(0).MEMBERS),
    OZ_FUND.[OZ_FUND].LEVELS(0).MEMBERS), NOT ISEMPTY([FI - Beginning Balance]))
    ON ROWS
    FROM [REVFCTA.REVFCTA]
    WHERE ([Y.2011],[PER.2],[SEG.S0001],[FORECAST])

    I don't think it's so much that it no longer applies in current versions as that people don't understand that it only ever applied if you had multiple conditions testing more than one dense member.
    I still think that...
    FIX("Dense1", "Sparse1")
         Do something to Dense1
    ENDFIX
    FIX"Dense2", "Sparse1")
         Do something to Dense2
    ENDFIX
    ...is often going to be slower than...
    FIX("Sparse1")
         IF "Dense1"
              Do something to Dense1
         IF "Dense2"
              Do something to Dense2
    ENDFIX
    ...unless the subset of blocks is small enough that caching (Essbase or OS) results in the "Sparse1" blocks not having to be read from / written back to disk twice.

  • No calculation procedure is assigned to country.

    Hi,
    The "No calculation procedure is assigned to country" error is getting displayed while creating company code and maintaining address for that company code. Please let me know why this is happening and how to assign the calculation procedure to country and where.
    Thanks and Regards,
    Venkat

    Hi  Venkat,
    It is a problem of not assigning tax procedure to country
    Goto SPRO --> Financial Accounting --> Global settings --> Tax on sales/purchase --> Basic Settings --> Assign country to calculation procedure.
    Now you can maintain condition types for taxes as well as tax indicators for customer as well as material.
    Hope this works.
    regards
    Harish

  • ASO Custom Calc -Error-1241109 :Unable to open file

    Hi,
    I am trying to implement ASO custom Calc in version 11.1.2.1 ,using following Version DataCopy script in Maxl Editor
    In POV i have included 1 set of base level member from each dimension just for testing purpose.
    TestScript.csc Content : [Final] := [Working_0] ;
    execute calculation on database 'EFXBASE'.'EFXBASE' with
    local script_file "/Oracle/Middleware/user_projects/achd1rka001/EssbaseServer/essbaseserver1/app/EFXBASE/EFXBASE/TestScript.csc"
    POV
    "Crossjoin({[FXEXP]},Crossjoin({[Jan]},Crossjoin({[FY06]},Crossjoin({[CH_None]},Crossjoin({[PJ_None]},Crossjoin({[PD_None]},Crossjoin({[CC_0300]},
    Crossjoin({[0004]},Crossjoin({[CurrFcst]},Crossjoin({[Local]},Crossjoin({[ICP_None]},{[LSTB]})))))))))))"
    SourceRegion
    "[Working_0]" ;
    I am getting following error on execution of above script
    Unable to open file ['/Oracle/Middleware/user_projects/achd1rka001/EssbaseServer/essbaseserver1/app/EFXBASE/EFXBASE/TestScript.csc']
    Custom Calculation terminated with Essbase error 1241109
    what could be the reason .. I have tried using '//' or '\' in file path but still getting same error.

    Can you post your script. (change " to ' in POV and SourceRegion section)
    Regards
    Celvin
    http://www.orahyplabs.com
    *Please mark the responses as helpful/correct if applicable*

  • Calculation procedure for country

    Hi All,
    I would like to know taht what is the calculation procedure
    for country SA(Saudi Arabia) it is not there in the SAP standard.
    I want to create a CMR for my Saudi Arabia customers.
    Plz suggest me.
    Thanx&Regards,
    Ramu

    Dear Ramu...
    I would suggest you to go to the Tcode OBBG and search against the country SA and ensure that you maintain some calculation procedure aganist that... If not maintain a tax procedure which should be already defined by you FICO consultant..
    Also may i suggest you to check you are creating the customer under the standard customer group like Sold to party or Ship to party etc. Tcode is OBD2.. Because Calculation procedure is not considered as a mandatory field in normal cases...
    Hope this helps..
    Thanks,
    Safeer Rahman

  • G/L Interest calculation  procedure

    Balance Interest calculation
    For term loan
    Pls send any one G/L Accounts Interest Calculation procedure
    Configuration
    It is very urgent

    Balance Interest Calculation: -
    It is a calculation of Interest on total balance of an  account or total balance of customer account. it is represented in "s".
    System defined variant for balance interest calculation type is u2018Su2019 and item interest calculation type is u2018Pu2019. Balance interest type calculation is used for G L Accounts. Item interest type calculation is used for vendors and customers.
    To display all transaction codes go to transaction code:SE16
    The Nine configuration steps for calculation of balance interest calculation are
    1) Define interest calculation type (OB46)
    2) Prepare account balance interest calculation (OBAA)
    3) Define reference interest rates (OBAC)
    4) Define time dependent terms (OB81)
    5) Define or specify interest rates (OB83)
    6) Create G L Accounts for Intesrest Gained and Interest allowed and Loan Account (FS00)
    7) Prepare gl account balance interest calculation and Define automatic posting (OBV2)
    8) Entry for Loan (F-02)
    9) Run interest programm (f.52)
    Step 01: Define interest calculation types (OB46)
    Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation global settings>Define interest calculation types
    Go to new entries
    Interest Id (V1) put discription Name Interest calculation type (S) and enter it will take automatically balance interest for S
    Make sure don't tick mark the box given and save it.
    Step 02: Prepare account balance interest calculation (OBAA)
    Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation global settings>Prepare account balance interest calculation
    Go to new entries
    Give calculation indicator as defined V1
    Interest calculation frequency : 01 (1 month)
    Calendar type : G (28-31/365)
    Give number range : 03
    Select balance plus interest.
    Save
    Step 03: Define reference interest rate (OBAC)
    Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation>Define reference interest rates
    Go to new entries
    Reference interest rate : V1 (same as Interest Indicator)
    Long text : 12%balanace interest
    Short text : 12% balance interest
    Date from : 01.03.2010
    Currency : INR
    Save
    Step 04: Define time dependent terms (OB81)
    Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation>Define time dependent terms
    Go to new entries
    Interest calculation indicator : V1
    Currency key : INR
    Effective from : 01.03.2010
    Sequential no : 01
    Term : Debit interest balance interest calculation
    Reference interest rate : V1
    Save
    Go to new entries or F8
    Interest calculation indicator : V1
    Currency : INR
    Effective from : 01.03.2010
    Sequential no : 02
    Term : credit interest balance interest calculation
    Reference interest rate : V1
    Save
    Step 05: Enter Reference Interest Rate Values (OB83)
    Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation>Enter interest values.
    Go to new entries
    Reference int. rate (V1)
    values effective from (01.03.2010)
    interest rate (12%)
    Before creating GL account Go to T.Code: OBD4 to create secured loans account group.
    Go to new entries
    Chart of accounts a/c group name from account to account
    Chart of Account 'TATA' secured loans 100300 100399
    TATA  INTR interest Expenses 400100 400199
    TATA  INTR interest Gained 300100 300199
    Save
    Step 06: Creation of G L Accounts (FS00)
    G L A/C no : 100305
    Company code : TATA (Tata Infotech)
    Select create button
    Account group : secured loans
    Select balance sheet account
    Short text : HSBC Bank Account
    Long text : HSBC Bank Loan Account
    Select control data tab
    Select only balances in local currencies
    Select open item
    Select line item display
    Sort key : 001
    Select create/bank/interest tab
    Field status group : G005
    Select relevant to cash flow
    Interest calculation indicator : V1
    Save
    Give G L A/C no : 400105
    Company code : TATA
    Select create button
    Account group : interest
    Select profit and loss account
    Short text : interest Allowed
    Long text : interest Allowed Account
    Select control data tab.
    Select line item display
    Sort key : 001
    Select create/bank/interest tab
    Field status group : G001
    Save
    Give G L A/C no : 300107
    Company code : TATA
    Select create button
    Account group : interest
    Select profit and loss account
    Short text : interest Gained
    Long text : interest Gained Account
    Select control data tab.
    Select line item display
    Sort key : 001
    Select create/bank/interest tab
    Field status group : G001
    Save
    Step 07: Define automatic posting account (OBV2)
    SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest posting>Prepare G L A/C balance interest calculation
    Go to accounts
    Chart of accounts : TATA
    A/C symbol currency G L A/C
    0002 INR 400105 (interest Allowed)
    2000 Inr 100305 (HSBC Bank Loan Account)
    Save
    Step 08: Entry for loan (F-02):
    Give document date : 01.03.2010
    Posting date : 01.03.2010
    Type : SA
    Company code : TATA
    Currency : INR
    Posting key : 40
    G L Account : 200005 (ICICI bank a/c)
    Enter
    Amount : 50,00,000
    Business area : IRON
    Value date : 01.03.2010
    Text : loan received
    Posting key : 50
    G L Account : 100305 (HSBC bank a/c)
    Enter
    Amount :   *
    Business area : IRON
    Text :   +
    Save
    Step 09: Interest calculation run (F.52):
    Accounting>Financial Accounting>General ledger>Periodic Processing>Interest calculation>Balances
    Give chart of accounts : TATA
    G L A/C no : 100305 (HSBC Bank Account)
    Company code : TATA
    Calculation period : 01.04.2010 to 31.12.2012
    Select leap year.
    Select post also if value date in past
    Select update master records
    Execute
    Go to system on menu bar.
    Select services
    Select batch input
    Select sessions
    Select RFSZIS00
    Select process
    Select display errors only
    Again select process
    The system gives the message: u201Cprocessing of batch input session completedu201D

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • How to convert an Excel Formula to a Custom Calculation Script in a Adobe Acrobat 9 Form?

    Hello,
    I am not familiar whatsoever with Javascript and need some help in converting the following Excel Formula so that I can enter it into a Custom Calculation Script in a Adobe PDF Form. Here is the formula:
    =IF(E15<25.01,9.95,IF(E15<50.01,11.95,IF(E15<75.01,13.95,IF(E15<100.01,16.95,IF(E15<150.01 ,19.95,IF(E15<200.01,24.95,IF(E15>200.00,E15*0.125)))))))
    Where "E15" will be the text field named "Subtotal" on my Adobe PDF Form.
    Thank you for any help you can provide!

    Fortunately JavaScript has the 'switch' statement so nested if statements can be avoided.
    var E15 = this.getField("Subtotal").value;
    switch(true) {
    case (E15 < 25.01) :
    event.value = 9.95;
    break;
    case (E15 < 50.01) :
    event.value = 11.95;
    break;
    case (E15 < 75.01) :
    event.value = 13.95;13
    break;
    case (E15 < 100.01) :
    event.value = 16.95;
    break;
    case (E15 < 150.01) :
    event.value = 19.95;
    break;
    case (E15 < 200.01) :
    event.value = 24.95;
    break;
    case (E15 > 200) :
    event.value = E15 * 0.125;
    break;
    default:
    event.value = "";
    break;
    } // end switch;

  • How do I create a custom calculation script in a Adobe Acrobat XI form?

    I am building a time sheet.  Inside this time sheet i have two columns.  One column is labeled Hours and the other is labeled Hours Description.
    The fields are labeled under these columns as follows:
    Column Name      Hours          Hours Description
    Field Name          Hours1        HoursDesc1
    The user will input their hours in Numeric Field "Hours1" and will enter an abbreviation in Text Field "HoursDesc1", for example "A" for Administrative Leave or "C" for Compensatory.
    I want to build a script that if Text Field "HoursDesc1" equals "A" or "C" then display Numeric Field "Hours1", else equal 0.  If they enter anything other than "A" or "C", the result will be zero.
    Please help.
    Thank you.

    Custom calculation code for the text field in question:
    var desc = this.getField("HoursDesc1").value;
    if (desc=="A" || desc=="C")
         event.value = this.getField("Hours1").value;
    else event.value = 0;

  • Error message with custom calculation script

    I am currently trying to add two fields and multiply them by another. I got the script working, however, when I clear the form, i get this message:
    "The value entered does not match the format of the field [total.sectionA]"
    Here is what I have entered into the custom calculation window:
    event.value = (this.getField("sponsor.level").value +
        this.getField("sponsor.addedtabs").value ) *
    this.getField("total.months").value;
    I'm not very knowledgeable in the area of Java, and would rather use a simple field notation. But I can't get that to work at all. Here is what I have tried:
    (sponsor.level + sponsor.addedtabs) * total.months
    Thanks in advance for any help or advice that comes my way!
    i

    'Simplified field notation' will not work because you are not using simplified field names. You can not use spaces, dots, or other special characters in the 'simplified field notation'. You can also not use any method, function, or any type of control statement.
    What are all the possible values of the 'sponsor.level'?
    Are there any other calculations in the form?
    Are you perforning a division anywhere else on the form?

  • Character Limit to Custom Calculation Script?

    Hi. I have a document that has a text form field. I want to run a custom calculation script that basically says if field "Group Number" = xxxxxxx, then field "Group Name" should = ABC Company.
    I have a list of almost 575 group numbers and names that I need to put in the script. And I've got the script working just fine but I am guessing there is a character limit to the script field???? It won't let me put my full list in there.
    Any suggestions on how to get around this??
    Thanks,
    Brandy

    I think I might have one error but I thought I had corrected it. Let me run this by you. My "if" lines are like this:
    if(a == '88096') event.value = 'Stacy's Carpet Steam Cleaning Company';
    But the code doesn't seem to like the ' in the Group's name. Is there a way to correct that without getting rid of the ' .... ?????

  • Need Assistance With Custom Calculation Script

    I need help with a custom calculation script in Acrobat Pro.  I am trying to add the sum of fields A, B, C, D, E, F, and G together with the lesser value of fields H and I.  What would be the script to enter for this result?  Thank you.

    event.value = Number(this.getField("A").value) + Number(this.getField("B").value) + Number(this.getField("C").value) + Number(this.getField("D").value) + Number(this.getField("E").value) + Number(this.getField("F").value) + Number(this.getField("G").value) + Math.min(Number(this.getField("H").value), Number(this.getField("I").value));

  • Help with Custom calculation script in Acrobat 8

    Hi all, I am using acrobat 8 on OS 10.5
    I am trying to add certain fields (numbers) and then subtract another field value to give an end result.
    I don't know anything about Javascript, would anyone be able to help with any info on how I achieve this result? I can only see Add, x and average etc... nothing there for subtraction
    Thanks for any help in advance
    Swen

    This should get you started:
    >if (event) {
    // get values from two text fields
    var a = Number(this.getField('Text1').value);
    var b = Number(this.getField('Text2').value);
    // subtract the values and show it
    this.event.target.value = a - b;
    Place this in a 3d text field, as a Custom Calculation Script.

Maybe you are looking for

  • Using Javascript to require 2 drop down menus to have something selected

    Hi everyone. I'm trying to get 2 drop down menus to each have something selected when the form is submitted. I'm using javascript for this, but I can't get it to work. Basically, if one is blank and the other one isn't, I want an error to pop up sayi

  • How can I make a file not read only? Using LV6.0, I have tried the Access Rights VI w/o luck.

    I am talking about any file in windows 98 that has the read only box checked when I look at the properties of the file from Windows Explorer. I can can get rid of the check from the properties box, but I want to do it programmaticaly in LabView.

  • AVCHD wont open with Quicktime player

    I'm using the sony handy cam. Plugged it into the computer and tried selecting all four options on the camcorder (USB connect... etc.) two of them came up with a file AVCHD. I clicked on it and it opened a new window that appeared to be loading, and

  • I need help with the zen microph

    does anyone know how to return the wallpaper back to the original way it came, i changed the wallpaper but dont like it, so how do i get the original one back?

  • Info Recs and Source List

    Hi Experts I want to be able create a Source List for a small number of non valuated Material Masters which will be available when creating a P Req.  The P Req will be priced by the creator and the P Req prices should flow through to the P Ord when a