How To Fix DDLS339 - & was selected as reference field; type must be UNIT/CUKY, not &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DDLS - For DDL source handling

  • Message number: 339

  • Message text: & was selected as reference field; type must be UNIT/CUKY, not &

  • Show details Hide details
  • What causes this issue?

    The annotation @Semantics.currencyCode or @Semantics.unitOfMeasure was
    used for elements that do not have the correct data type.
    The annotation @Semantics.currencyCode is supported for elements with
    the data type CUKY only.
    The annotation @Semantics.unitOfMeasure is supported for elements with
    the data type UNIT only.

    System Response

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

    How to fix this error?

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message DDLS339 - & was selected as reference field; type must be UNIT/CUKY, not & ?

    The SAP error message DDLS339 indicates that there is an issue with the data type of a reference field in a Data Dictionary object, such as a table or a structure. Specifically, the error message states that the field was selected as a reference field, but its data type does not match the expected type, which should be either UNIT (for unit of measure) or CUKY (for currency key). Instead, it is of a different type, denoted by &.

    Cause:

    The error typically arises in the following scenarios:

    1. Incorrect Data Type: The field you are trying to use as a reference field is not of the correct type (UNIT or CUKY). This can happen if the field was defined with a different data type, such as CHAR, INT, etc.
    2. Field Definition Issues: There may be inconsistencies in the field definitions in the Data Dictionary, leading to this error when trying to create or modify a table or structure.
    3. Incompatibility in Data Elements: The data element associated with the field may not be compatible with the expected reference types.

    Solution:

    To resolve the DDLS339 error, you can follow these steps:

    1. Check Field Definition:

      • Go to the Data Dictionary (transaction SE11) and check the definition of the field that is causing the error.
      • Ensure that the field is defined with the correct data type (either UNIT or CUKY).
    2. Modify Data Type:

      • If the field is not of the correct type, you may need to change its data type to either UNIT or CUKY, depending on your requirements.
      • If the field is part of a structure or table, you may need to adjust the structure/table definition accordingly.
    3. Review Data Elements:

      • Check the data element associated with the field. If it is not suitable for a reference field, consider creating a new data element with the correct type.
    4. Rebuild Objects:

      • After making the necessary changes, you may need to activate the Data Dictionary objects and possibly regenerate any related objects (like views or programs) that depend on the modified field.
    5. Testing:

      • After making the changes, test the functionality to ensure that the error is resolved and that the application behaves as expected.

    Related Information:

    • Transaction Codes: Use SE11 for Data Dictionary, SE14 for database utility, and SE80 for object navigator.
    • Documentation: Refer to SAP Help documentation for detailed information on data types and their usage in the Data Dictionary.
    • SAP Notes: Check for any relevant SAP Notes that might address specific issues related to this error message.

    By following these steps, you should be able to resolve the DDLS339 error and ensure that your Data Dictionary objects are correctly defined.

    • 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