How To Fix DDLS147 - Aggregate function &: Type information could not be determined


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DDLS - For DDL source handling

  • Message number: 147

  • Message text: Aggregate function &: Type information could not be determined

  • 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 DDLS147 - Aggregate function &: Type information could not be determined ?

    The SAP error message DDLS147 indicates that there is an issue with the use of an aggregate function in a SQL statement or a data definition language (DDL) operation. Specifically, the message states that the type information for the aggregate function could not be determined. This can occur in various scenarios, such as when creating views, tables, or executing queries that involve aggregate functions like SUM, AVG, COUNT, etc.

    Causes:

    1. Missing or Incorrect Data Type: The data type of the field being aggregated is not defined or is incompatible with the aggregate function.
    2. Ambiguous Field References: The field being referenced in the aggregate function may not be clearly defined in the context of the query or DDL statement.
    3. Database Schema Changes: Changes in the underlying database schema (like renaming fields or changing data types) that are not reflected in the DDL or SQL statement.
    4. Incorrect SQL Syntax: There may be a syntax error in the SQL statement that prevents the system from correctly interpreting the aggregate function.
    5. View or Table Definition Issues: If the aggregate function is used in a view or table definition, there may be issues with how the view or table is defined.

    Solutions:

    1. Check Data Types: Ensure that the fields being used in the aggregate function have the correct and compatible data types. For example, you cannot use SUM on a character field.
    2. Clarify Field References: Make sure that the field names used in the aggregate function are unambiguous and correctly referenced. If necessary, use table aliases to clarify which table the field belongs to.
    3. Review Schema Changes: If there have been recent changes to the database schema, verify that all references in your SQL or DDL statements are up to date.
    4. Validate SQL Syntax: Review the SQL statement for any syntax errors. Use tools or features in SAP to validate the SQL syntax.
    5. Test in Isolation: If possible, isolate the aggregate function in a simpler query to see if it works independently. This can help identify if the issue is with the aggregate function itself or its context.
    6. Check for Views: If the aggregate function is part of a view, ensure that the view is correctly defined and that all underlying tables and fields are accessible and correctly typed.

    Related Information:

    • SAP Documentation: Refer to the official SAP documentation for more details on aggregate functions and their usage.
    • SAP Community: Engage with the SAP Community forums to see if others have encountered similar issues and how they resolved them.
    • Transaction Codes: Use transaction codes like SE11 (Data Dictionary) or SE80 (Object Navigator) to inspect the definitions of tables, views, and data elements involved in the query.

    By following these steps, you should be able to identify and resolve the issue causing the DDLS147 error in your SAP environment.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author