How To Fix DDLS335 - Data types of operands of arithmetic expression are missing


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DDLS - For DDL source handling

  • Message number: 335

  • Message text: Data types of operands of arithmetic expression are missing

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message DDLS335 - Data types of operands of arithmetic expression are missing ?

    The SAP error message DDLS335, which states "Data types of operands of arithmetic expression are missing," typically occurs during the compilation of ABAP programs or when working with data dictionary objects. This error indicates that the system is unable to determine the data types of the operands involved in an arithmetic expression, which is necessary for performing calculations.

    Causes:

    1. Undefined Variables: The variables or fields used in the arithmetic expression have not been defined or declared properly.
    2. Incompatible Data Types: The operands involved in the arithmetic operation may have incompatible data types, leading to ambiguity in the operation.
    3. Missing Data Type Declarations: If the data types of the operands are not explicitly declared or inferred, the system cannot process the arithmetic expression.
    4. Context Issues: The context in which the arithmetic operation is being performed may not have the necessary information about the data types.

    Solutions:

    1. Check Variable Declarations: Ensure that all variables used in the arithmetic expression are properly declared with their respective data types. For example:

      DATA: lv_value1 TYPE i,
            lv_value2 TYPE i,
            lv_result TYPE i.
      lv_result = lv_value1 + lv_value2.
    2. Use Explicit Data Types: If you are using fields from database tables or structures, make sure to specify their data types explicitly if they are not automatically inferred.

    3. Review Arithmetic Expressions: Look at the arithmetic expressions in your code and ensure that all operands are defined and have compatible data types. For example, avoid mixing character and numeric types without proper conversion.

    4. Check Context: If the arithmetic operation is being performed in a specific context (like within a loop or a method), ensure that the necessary data types are accessible and defined in that context.

    5. Use Type Casting: If necessary, use type casting to convert operands to compatible types before performing the arithmetic operation. For example:

      lv_result = lv_value1 + CAST i( lv_value2 ).

    Related Information:

    • ABAP Data Types: Familiarize yourself with the various data types in ABAP (e.g., i for integers, f for floating-point numbers, p for packed numbers, etc.) to ensure proper usage.
    • Debugging: Use the ABAP debugger to step through the code and inspect the values and types of variables at runtime, which can help identify where the issue arises.
    • Documentation: Refer to the SAP Help Portal or ABAP documentation for more information on data types and arithmetic operations in ABAP.

    By following these steps, you should be able to resolve the DDLS335 error and ensure that your arithmetic expressions are correctly defined and processed.

    • 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