How To Fix 40352 - Maximum formula length in cell [&1,&2] exceeded


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 40 - Messages for Process Orders

  • Message number: 352

  • Message text: Maximum formula length in cell [&1,&2] exceeded

  • Show details Hide details
  • What causes this issue?

    Due to inserting or deleting lines or columns in material quantity
    calculation, the parameters of at least one of the C functions (CNUM,
    CSUM, CAMV, or CWAM) had to be repositioned. As a result, the maximum
    formula length allowed was exceeded. The formula has become invalid.

    System Response

    The formula is not defined and you must manually go over it.

    How to fix this error?

    Check and correct the formula for cell [<(>&<)>V1<(>&<)>,<(>&<)>V2
    <(>&<)>].
    If required, divide up th formula. You can use the fields of the
    <LS>Interim results</> column for this.
    <ZH>Recommendation</>
    Always enter parameters in C functions with leading zeros, for example
    CSUM (005;002). If you do so, this error will not occur.

    Procedure for System Administrators

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 40352 - Maximum formula length in cell [&1,&2] exceeded ?

    The SAP error message 40352, which states "Maximum formula length in cell [&1,&2] exceeded," typically occurs in the context of SAP BusinessObjects or SAP Analysis for Microsoft Office when a formula in a cell exceeds the allowed length. This can happen when working with complex calculations or when a large number of nested functions are used in a single cell.

    Cause:

    1. Excessive Formula Length: The formula in the specified cell exceeds the maximum character limit allowed by SAP.
    2. Complex Calculations: Using too many nested functions or overly complex calculations can lead to this error.
    3. Data Volume: Large datasets or extensive use of references can contribute to the length of the formula.

    Solution:

    1. Simplify the Formula: Break down complex formulas into simpler components. Instead of having one long formula, consider using multiple cells to calculate intermediate results.
    2. Use Named Ranges: If applicable, use named ranges to simplify references within your formulas.
    3. Reduce Nesting: Limit the number of nested functions. Try to use helper columns or rows to perform calculations step-by-step.
    4. Check for Unnecessary References: Review the formula for any unnecessary references or calculations that can be removed or simplified.
    5. Split Calculations: If possible, split the calculations across multiple cells instead of trying to perform everything in one cell.

    Related Information:

    • SAP Documentation: Refer to the official SAP documentation for specific limits on formula lengths and best practices for using formulas in SAP Analysis for Office or BusinessObjects.
    • Performance Considerations: Keep in mind that overly complex formulas can not only lead to errors but can also impact performance. Simplifying formulas can improve both usability and performance.
    • Version Limitations: Be aware that different versions of SAP products may have different limitations regarding formula lengths. Always check the version-specific documentation.

    If the problem persists after trying these solutions, consider reaching out to your SAP support team or consulting the SAP community for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant