How To Fix DDLS336 - Maximum accuracy 37 at DEC exceeded by an arithmetic expression


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DDLS - For DDL source handling

  • Message number: 336

  • Message text: Maximum accuracy 37 at DEC exceeded by an arithmetic expression

  • Show details Hide details
  • What causes this issue?

    An arithmetic operation with decimal values is being executed. Here, the
    internal calcuation type with 37 places is too large.

    System Response

    The object check is not successful.

    How to fix this error?

    You must perform the calculation with smaller values, for example, by
    executing a cast beforehand.

    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 DDLS336 - Maximum accuracy 37 at DEC exceeded by an arithmetic expression ?

    The SAP error message DDLS336, which states "Maximum accuracy 37 at DEC exceeded by an arithmetic expression," typically occurs in the context of database operations, particularly when dealing with decimal data types in ABAP or SQL statements. This error indicates that an arithmetic operation has resulted in a value that exceeds the maximum precision allowed for decimal numbers in SAP.

    Cause:

    1. Decimal Precision Limit: In SAP, the maximum precision for decimal numbers is 37 digits. If an arithmetic operation (like addition, multiplication, etc.) results in a number that has more than 37 digits, this error will be triggered.
    2. Data Type Mismatch: If you are performing operations on fields with different data types, it may lead to unexpected results that exceed the precision limit.
    3. Large Values: Operations involving very large numbers or calculations that compound values can easily exceed the maximum allowed precision.

    Solution:

    1. Review Arithmetic Operations: Check the arithmetic expressions in your code. Ensure that the operations do not result in values exceeding the maximum precision. You may need to break down complex calculations into smaller parts.
    2. Use Appropriate Data Types: Ensure that you are using the correct data types for your variables. If you are working with large numbers, consider using a different approach or data type that can handle larger values.
    3. Limit Input Values: If the input values to your calculations can be controlled, ensure that they are within a reasonable range to avoid exceeding the precision limit.
    4. Rounding: If applicable, consider rounding the results of your calculations to reduce the number of decimal places and avoid exceeding the limit.
    5. Debugging: Use debugging tools to trace the values being processed in your arithmetic expressions. This can help identify where the precision is being exceeded.

    Related Information:

    • SAP Documentation: Refer to the SAP Help Portal for detailed information on data types and their limits.
    • ABAP Data Types: Familiarize yourself with the different data types in ABAP, especially DEC (decimal) and how they handle precision.
    • Database Configuration: Check the database configuration and settings related to numeric precision, as these can also impact how calculations are performed.

    By addressing the arithmetic expressions and ensuring that the values being processed do not exceed the maximum allowed precision, you should be able to resolve the DDLS336 error.

    • 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