Formal Error in Formula

Hi Frds,
When I ran the query its giving the error " Abort Formal Error in formula Zxxxx; FST aggregates , and so on, must be initial Message no:BRAIN461.
Recently we faced cutover, after cutover only we are facing issues.
Pls suggest if anybody come across these type of problem.
Regards,
Sha.

Hi Sha,
Please have a Look at this Note: 1002100
If you are not able to check the same note here,
Symptom
After you have imported Support Package Stack 10, you can no longer generate some queries that contain formulas. The system issues the following message:
Message BRAIN 461:
Formal error in formula XXXXXX; FST aggregation must be initial
Other terms
Query, formula, aggregation, settings
Reason and Prerequisites
This is caused by new checks in online analytical processing (OLAP).
Solution
SAP NetWeaver 2004s BI
           Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
In urgent cases, you can implement the correction instructions.
You must first implement Notes 932065, 935140, 948389, 964580, 969846 and 975510 using transaction SNOTE. Otherwise, problems and syntax errors may occur when you deimplement some notes.
To provide information in advance, the notes mentioned above may already be available before the Support Packages are released. In this case, the short text of the note still contains the words "Preliminary version".
Before you implement an advance correction (if one exists and you want to implement it), see Note 875986. It contains notes regarding the SAP Note Assistant. These notes prevent problems during the implementation.
Hope this helps..,
Thanks,
Sudhakar.

Similar Messages

  • Formula Variables for Report Painter- Syntac error in formula, Please Help!

    Dear Experts,
    I'm creating the report where I need to calculate annualized P&L. The formula is as follows : (P&L account/Period(variable ))12*
    I need to capture the From_period, which is entered by the user on the selection screen when running the report and use it as a variable in the formula above. Example: If User insert From Period 3, then the formula should be *P&L accoun / 3 * 12*
    I have tried so many different way but nothing seems to work. one of the ways i tried was:
    In the general selection Im using set variable 6P-S-PERIOVB.CCSS for period which consists of variable V_PERIO and B_PERIO.
    So Im trying to create a folowing formula:
    IF 1 >= u2018PER_FRu2019 AND 1 <= u2018PER_TOu2019 THEN 1 ELSE 16
    IF 2 >= u2018PER_FRu2019 AND 2 <= u2018PER_TOu2019 THEN 1 ELSE 16
    Unfortunately I keep getting Syntac error in formula. Please help me I'm really desperate to solve this issue after 5 days of unlucky research.
    Thank you in advance
    Regards
    Ernesta

    Thank you all for your help. The issue was that the variable was assigned to the different table as the library. After I changed it, it worked fine.
    Regards
    Ernesta

  • Crystal Report issue : Error in file.. .rpt . Error in formula

    Hi ,
    I recently migrated a report from production to test environemnt and it throws me the following error:
    Error in File C:\DOCUME1\oe_user\LOCALS1\Temp\packing instructions {4058873B-9756-4052-B479-EBD2D0A08E7D}.rpt:Error in formula  <Object_Visibility>. '{Command.EXACT_WEIGHT_FLAG} = "Ne (No)"'
    This field name is not known.
    In production server is installed Oracle 9i database and in test server is installed Oracle 10g
    The report has 1 main report and 2 sub reports.
    1. The same report works fine in production server without any issues.
    2. I had executed the report in Crystal reports 2008 and it runs fine displaying all fields without any issues.
    3. I had also tried taking the query of both subreports and the main report and tried executing it in oracle and it runs fine without any issues.
    However during the runtime in the test server, it throws the following error.
    Can someone help me out with this issue..

    Hi Siva,
    What is the patch level of CR 2008?
    Is it a win or a web app?
    What is the server OS?
    First, try to simply view the report. Let  the report prompt for the database credentials and the parameter values if any.
    See if it reproduces the issue.
    ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("CrystalReport.rpt"));
            CrystalReportViewer1.ReportSource = rd;
    Take a look at the SAP Note :
    [1421867 - Error: This field name is not known|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433323331333833363337%7D.do]
    Hope it helps,
    Thanks,
    Bhushan.

  • Formula Variables in Report Painter- Syntac error in formula

    Dear Experts,
    I'm creating the report where I need to calculate annualized P&L. The formula is as follows : (P&L account/Period(variable ))*12
    I need to capture the From_period, which is entered by the user on the selection screen when running the report and use it as a variable in the formula above. Example: If User insert From Period 3, then the formula should be *P&L accoun / 3 * 12*
    I have tried so many different way but nothing seems to work. one of the ways i tried was:
    In the general selection Im using set variable 6P-S-PERIOVB.CCSS for period which consists of variable V_PERIO and B_PERIO.
    So Im trying to create a folowing formula:
    IF 1 >= u2018PER_FRu2019 AND 1 <= u2018PER_TOu2019 THEN 1 ELSE 16
    IF 2 >= u2018PER_FRu2019 AND 2 <= u2018PER_TOu2019 THEN 1 ELSE 16
    Unfortunately I keep getting Syntac error in formula. Please help me I'm really desperate to solve this issue after 5 days of unlucky research.
    Thank you in advance
    Regards
    Ernesta

    so, I would use parameters.....
    P_fr_MO(2) TYPE N DEFAULT '01',
    p_fr_yr(4) type n default '2011'.
    Then, to set my range, i would do something like....
    data: lv_to_mon(2) type n,
             lv_to_yr(4) type n.
    if p_fr_mo eq '01'.
      lv_to_yr = p_fr_yr.  "12th month, same year...
    else.
    lv_to_yr = p_fr_yr + 1.  "any other month puts us into next year.
    endif.
    case p_fr_mo.
      when '01'.
       lv_to_mon = 12.  "always for 12 month period...
    when others.
       lv_to_mon = p_fo_no - 1.  '''example 10/2010 to 09/2011.
    endcase.
    then concatenate the from and to variables into what format is needed to read the data...
    on the other hand, if the user gives us from and to, we have a different problem....one then has to calculate what part of a year they have and create a factor for multiplying any data values....
    for instance if user says Jan (01) to (03) March, then I know that to month - from month + 1 is the number of months I have....
    then 12 / that number is the factor to multiply the results by....
    example...
    data : factor(5) type p decimals 2
              months(3) type n.
    if p_to < p_from.  "adjust if I cross a year boundary....Oct to Jan becomes 13 - 10 + 1 or 4 months.
    p_to = p_to + 12.
    endif.
    months = p_to - p_from + 1.
    factor  = 12 / months.  " factor   12 /4 months = 3 times the values obtained  = 1 year.
    something like this....hope this is helpful to you.
    Edited by: DaveL on Oct 18, 2011 6:24 PM

  • Formal error: Invalid calling sequence for function modules

    Hi All,
    I have developed a function module for FQEVENT 620 Payment: Transfer Line Items for Clearing.
    The clearing works fine.
    After clearing the open items i need to post an FI-CA Document(BAPI : BAPI_CTRACDOCUMENT_CREATE) for each open item(cleared item)
    I have used the bapi : BAPI_CTRACDOCUMENT_CREATE in the same function module that i have developed for FQEVENT 620 Payment: Transfer Line Items for Clearing.Here i am getting an error "Formal error: Invalid calling sequence for function modules".
    So please let me know where i can use this bapi to post fi-ca document.Is there a BAdi or Enhancement Spot where i can use this BAPI or tell me what should i do to overcome this error.
    Regards
    Venkat

    Venkat:
    While I am confused about your business process - creating an open item when clearing one seems strange.  Look into event 0020 which is called after documents are posted - it may present the opportunity to post process additional documents.
    regards,
    bill.

  • Essbase Error(1200329): Error compiling formula for [Asset Description] (li

    Hi,
    I am having some problem in debugging one error
    Detail:Cannot calculate. Essbase Error(1200329): Error compiling formula for [Asset Description] (line 37): invalid assignment
    I am just creating a Add asset script as my client does not have license to CapEx module.
    Script Below- please let me know what can be an issue
    VAR numAsset = [NumAsset];
    VAR usFulLife=[UsefulLife];
    FIX(@CHILDREN("Total New"), [Scenario], [Version], [Entity], [Department], [AssetClass],[Year],"BegBalance","Local", "HSP_InputValue")
    "Asset Description" (
    IF (numAsset > 0 AND @MAXS(SKIPMISSING, @CHILDREN("Asset Properties")) == #MISSING )
    numAsset = numAsset - 1;
              "Asset Status" = 0; /* flag to know this is a new asset*/
              "Asset ID" = [AssetID];
    "Asset Description" = [AssetDesc];
              "CAR No." = [AssetCAR];
              "Purchase Units" = [AssetUnits];
              "Purchase Amount(per unit)" = [AssetRate];
              "In Service Date" = [InserviceDate];
         /*     "Total Cost" = "Purchase Units" *"Purchase Amount(per unit)";*/
    IF(usFulLife > 0)
              "Useful Life (in Years)" = usFulLife;
    ELSE
                   "Useful Life (in Years)" = "No Scenario"->"No Version"->"No Entity"->"No Department"->"No LineItem"->"Useful Life (in Years)";
    ENDIF
    ENDIF
    ENDFIX
    FIX([Scenario], [Version], [Entity], [Department], "Local", "HSP_InputValue")
    CALC DIM ("TimePeriod");
    @IANCESTORS("Line Item 1");
    @ANCESTORS([AssetClass]);
    ENDFIX
    Note- "Asset Description" is a member of Text type and in this script [AssetDesc] is a global variable of StringAsNumber
    Regards,
    -KP

    Thanks for responding but my issue resolved, it was a Space in the member name.
    -KP

  • Essbase Error: Error executing formula

    Problem Description: When running query in BI Answer, error message is shown as the following:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. Essbase Error: Error executing formula for [MIX %]: status code [1130203] in function [@_VAL] (HY000)
    How can I fix it??

    Hi,
    It seems this problem is related to Data Cache And Data cache file settings, Had you tried with increasing it.
    Thanks
    Focusthread Hyperion Trainer
    [http://focusthread.com/training]

  • OBIEE - ESSBASE   ERROR - 1200467 - Error executing formula for [MDX query]

    I have an issue on essbase with a query with 50 member filters.
    The environment is OBIEE 11g over ESSBASE 11.1.2 with an ASO cube.
    The user for essbase are with database access filters.
    I have the following issue, OBIEE returns a query that filter 30 members and the query runs ok, but the same query with a 50 member filter returns the following error when i execute it on MAXL :
    MAXL Error
    ERROR - 1200467 - Error executing formula for [MDX query]: status code [1130203] in function [].
    ERROR - 1241101 - Unexpected Essbase error 1200467.
    i paste an example of the query that returns OBIEE
    With
    set [_Account2] as '{Distinct({[Account].[Allocated FTE - Budget]})}'
    set [_Employee0] as '[Employee].members'
    set [_Fund4] as 'Generate([Fund].Generations(2).members, Descendants([Fund].currentmember, [Fund].Generations(4), leaves))'
    set [_Position4] as '{Distinct({[Position].[POS111165], [Position].[POS111166], [Position].[POS111167], [Position].[POS111540], [Position].[POS112331], [Position].[POS113201], [Position].[POS113247], [Position].[POS113248], [Position].[POS113540], [Position].[POS113618], [Position].[POS113954], [Position].[POS114109], [Position].[POS114194], [Position].[POS115224], [Position].[POS115912], [Position].[POS115913], [Position].[POS116727], [Position].[POS117229], [Position].[POS117491], [Position].[POS117587], [Position].[POS117610], [Position].[POS117979], [Position].[POS119456], [Position].[POS121262], [Position].[POS121458], [Position].[POS121698], [Position].[POS123368], [Position].[POS124027], [Position].[POS124028], [Position].[POS124110], [Position].[POS124396], [Position].[POS125623], [Position].[POS125624], [Position].[POS126476], [Position].[POS127960], [Position].[POS129352], [Position].[POS129468], [Position].[POS129494], [Position].[POS129535], [Position].[POS129608], [Position].[POS129679], [Position].[POS129730], [Position].[POS129905], [Position].[POS130010], [Position].[POS130144], [Position].[POS133456], [Position].[POS134943], [Position].[POS135231], [Position].[POS135404], [Position].[POS135734]})}'
    set [_Program3] as 'Generate([Program].Generations(2).members, Descendants([Program].currentmember, [Program].Generations(3), leaves))'
    select
    { [Budget Item]
    } on columns,
    NON EMPTY {crossjoin({[_Account2]},crossjoin({[_Employee0]},crossjoin({[_Fund4]},crossjoin({[_Position4]},{[_Program3]}))))} properties GEN_NUMBER, [Account].[MEMBER_UNIQUE_NAME], [Account].[Memnor], [Program].[MEMBER_UNIQUE_NAME], [Program].[Memnor], [Employee].[MEMBER_UNIQUE_NAME], [Employee].[Memnor], [Fund].[MEMBER_UNIQUE_NAME], [Fund].[Memnor], [Position].[MEMBER_UNIQUE_NAME], [Position].[Memnor] on rows
    from [BCPSASO2.BCPS_ASO]
    any suggestions ?
    Thanks
    Niko
    Edited by: user8367101 on Mar 1, 2011 10:31 AM

    Here it is:
    It is a Windows Server 2003 R2
    Processor 8393 SE
    31.9 GB of RAM
    32-Bit
    How does "memscaling" works?
    I also think that are high but it is the way it was configured before I managed the application. For my DB
    Index Cache setting: 205800
    Index cache current value: 205800
    Data file cache setting: 33768
    Data file cache current: 0
    Data Cache setting: 877273
    Cata cache current: 71540
    Block Size: 65408

  • Error in formula function (ROUTINE_18) record 1

    Hi All,
    We are loading a flat file in to a DSO. From here we are loading the data from DSO to a cube (using this DSO as a Export datasource). In the export datasource infopackage, we are giving date in the selection screen and loading the data. before it is working fine. Now when we try to load the data, i am facing the error " Error in formula function (ROUTINE_18) record 1" and the data was not moving from the PSA to the infocube.
    Recently we have upgraded the BI system from 7.0 version to 7.3.
    Please let me know the reasong for the failure and how to correct it.
    I have replicated the Export datasource and even i re-generated the DSO as export datasource but no use and getting the same error.
    Thanks,
    jack

    Ok...you have a BW 3.5 flow.
    As you said you have selection at InfoPackage level. Please check whether the InfoPackage without selection works or not.
    If it works then you have the problem in Selection field.
    Also check if there is any problem in Update Rule /Transfer rule
    If you have selection routine written at InfoPackage level, create a new InfoPackage ( Full) and load .
    Anindya
    Edited by: Anindya Bose on Nov 3, 2011 11:01 AM

  • Error in formula processing - List price has null value

    I have created a freight/special charge modifier where the qualifier in it is if terms = credit card, then execute.  The formula in this modifier is List Price * Numeric Constant.  However when I test this I get a Note:  Error in formula processing - List price has null value.  The List price is NOT null.  I'm not sure why I'm getting this error...

    Hi,
    Thanks for the update.
    Actually, my problem got resolved. After analyzing the debug file myself, I narrowed down the error as below
    Normal flow Formula Processing begin
    In ---Routine:QP_PREQ_GRP.Formula_Processing---
    PRICING_PHASE_ID: 2
    Processing Formula ID :7512
    Line Index: 1
    Start Formula...
    Formula Line Type = ML, Step = 1
    Before populating formula stepvalues temp table
    Other Exception ORA-01403: no data found
    Exception occurred. Formula value returned is
    Formula return status: U
    Formula Base Price :
    Error returned by QP_FORMULA_PRICE_CALC_PVT.Calculate
    And, as per the oracle support note "Error Returned By Qp_formula_price_calc_pvt.Calculate [ID 1282519.1]", after setting the profile value to N, the issue is resolved.
    With Regards,
    Vishal Majithia

  • ERROR - "The formula contains a number outside of the valid range"

    Hello,
    I am using an equation that is returning the error "the formula contains a number outside of the valid range" when the constituent cells of the equation contain a negative number. I have tried using the inspector to format the problem cell(s) differently, but to no avail. The equation works fine in other respects. How is numbers deciding what the valid range for variables in my foruma is?
    I've done the math out separately to make sure the equation isn't dividing by 0 or something wacky, but there's nothing wrong with the formula or the result... It should be doing math and it's not!
    I haven't found any posts by other users with the same problem.
    Thanks.

    jd,
    It would help us if you paste the formula in your post here, exactly as it appears in the cell. Also tell us the values of the inputs to that formula.
    Changing a cell's format seldom has any effect on the calculation. Formatting changes how a result is displayed, but not what the result of the formula is behind the screen.
    Jerry

  • Error in formula while using CASE

    Hi all ,
    First of all is there any limit on how many WHEN and THEN we can use in a CASE statement?
    I'm trying to use the following CALCULATION in DISCO plus and getting the following error.
    Error in formula: ambiguous or duplicate item names - Inventory rating
    Calculation:
    case when Inventory Rating = '20' then 0
    when Inventory Rating = '21' then 2
    when Inventory Rating = '22' then 4
    when Inventory Rating = '23' then 6
    when Inventory Rating = '24' then 8
    when Inventory Rating = '25' then 10
    when Inventory Rating = '26' then 18
    when Inventory Rating = '27' then 26
    when Inventory Rating = '28' then 34
    when Inventory Rating = '29' then 42
    when Inventory Rating ='30' then 50
    when Inventory Rating ='31' then 58
    when Inventory Rating = '32' then 66
    when Inventory Rating = '33' then 74
    when Inventory Rating = '34' then 82
    when Inventory Rating ='35' then 90
    when Inventory Rating= '36' then 92
    when Inventory Rating = '37' then 94
    when Inventory Rating = '38' then 96
    when Inventory Rating = '39' then 98
    when Inventory Rating >'40’ then 100
    when Inventory Rating ='N' then 0
    else null
    end
    Thanks

    Hello
    Let's look at your error first. Discoverer is informing you that you may have 2 items called Inventory Rating either in the folders you are using or in your calculations and it doesn't know which one you want. If you do have this issue then one way to overcome it would be to create yourself a new calcultion called with a unique name and push the real item in there then alter your CASE statement. The other way would be to edit every line of your CASE statement, highlight Inventory Rating and then paste the correct item over it.
    As for a limit, there is a limit of 255 arguments in a CASE statement. Look here: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions004.htm
    You also have to be careful adding another argument using = following an argument using > or <. This is because the CASE statement works in sets and as each argument is processed, all data meeting that criteria is removed from the data being compared in the next argument.
    Please look at this, taken from the end of your code:
    when Inventory Rating >'40’ then 100
    when Inventory Rating ='N' then 0
    else null
    end
    An Inventory Rating of 'N' is greater than '40' so these will be assigned 100. I would recommend you switch the position of these 2 arguments so that the last part of your calculation looks like this:
    when Inventory Rating ='N' then 0
    when Inventory Rating >'40’ then 100
    else null
    end
    Hope this helps
    Best wishes
    Michael

  • Error: 1200370 Error executing formula

    Hi,
    I am running a calc script, which is verified successfully but is getting failed with following error:
    Error: 1200370 Error executing formula for [EffectedDistrict] (line 138): attempt to cross a null member in function
    Code at line 138 is:
    Normal= @SUMRANGE(normal, @RELATIVE(@CURRMBR("districts"),0));
    where 'normal' and 'districts' are the members in my outline and districts is having lot many districts as children.
    Please help me in resolving this
    Thanks,
    Ashish

    In 11 there is a set command SEt EMPTYMEMBERSETS On;^^^SET EMPTYMEMBERSETS is also available in System 9: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/calc/set_emptymembersets.htm
    For once I get to correct you Glenn, no matter how small or trivial the correction may be. My ego requires me to count my successes -- I think the above is number four for me versus eleventy billion for you. :)
    Regards,
    Cameron Lackpour

  • Error in Formula Processing

    Hi,
    For a specific formula NVL(1,2) where 1 is a Factor list and 2 is List Price, we are getting this error. ERROR IN FORMULA PROCESSING....We are on R12.1.3 instance and this is upgraded from 11.5.9
    There is a metalink note QPXPRFOR OEXOEORD: Saving an Order Results in Error in Formula Processing [ID 156396.1] mentioning about the same issue but the solution part is not clear.
    If anyone faced similar kind of issue, please help.

    Hi,
    Thanks for the update.
    Actually, my problem got resolved. After analyzing the debug file myself, I narrowed down the error as below
    Normal flow Formula Processing begin
    In ---Routine:QP_PREQ_GRP.Formula_Processing---
    PRICING_PHASE_ID: 2
    Processing Formula ID :7512
    Line Index: 1
    Start Formula...
    Formula Line Type = ML, Step = 1
    Before populating formula stepvalues temp table
    Other Exception ORA-01403: no data found
    Exception occurred. Formula value returned is
    Formula return status: U
    Formula Base Price :
    Error returned by QP_FORMULA_PRICE_CALC_PVT.Calculate
    And, as per the oracle support note "Error Returned By Qp_formula_price_calc_pvt.Calculate [ID 1282519.1]", after setting the profile value to N, the issue is resolved.
    With Regards,
    Vishal Majithia

  • Error optimizing formula for [mbrName]: argument [] may not have size [] in function []

    Hi all,
    Please help me
    I wrote the following script:
    182        "Commercial income tax"(
    183             IF ( "Payment of principal - Short-term" <> #MISSING)
    184                   "Commercial income tax" = 1;)
    It throws following error:
              Error:Error optimizing formula for [Commercial income tax] (line 182): argument [2] may not have size [-4] in function [@NE] Rule PandL.
    What the meaning of these word?
    argument [2]
    size [-4]
    Is there another way of accomplishing the above?

    Yeah, Anthony,
    I ve just written Calculation Scripts 6 month ago.
    Your question:  "Commercial income tax" and the "Payment of principal - Short-term" members are Accounts ?
    My Answer: Yes, they are.
    My full IF statement:
    182        "Commercial income tax"(
    183             IF ( "Payment of principal - Short-term" <> #MISSING)
    184                   "Commercial income tax" = 1;
    185             ELSEIF ( "Payment of principal - Short-term" == #MISSING)
    186                   "Commercial income tax" = #MISSING;
    187            ENDIF;)
    Warning Error:
              Error:Error optimizing formula for [Commercial income tax] (line 182): argument [2] may not have size [-4] in function [@NE] Rule PandL
    It is not Error if I write following Script:
    182        "Commercial income tax"(
    183             IF ( "Payment of principal - Short-term" <> 0 or "Payment of principal - Short-term" == 0)
    184                   "Commercial income tax" = 1;
    185             ELSEIF ( "Payment of principal - Short-term" <> 0 and "Payment of principal - Short-term" != 0)
    186                   "Commercial income tax" = #MISSING;
    187            ENDIF;)

Maybe you are looking for