How To Fix AD981 - Domain & (data type VARC no longer supported from Release 3.0)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: AD - Data Dictionary application messages

  • Message number: 981

  • Message text: Domain & (data type VARC no longer supported from Release 3.0)

  • Show details Hide details
  • What causes this issue?

    The data type VARC is no longer supported in Release 3.0. Existing
    domains with this data type can still be used. However, it is not
    possible to create new domains with data type VARC.

    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?

    The data types LCHR (character string of arbitrary length with at least
    256 characters) and LRAW (uninterpreted character string of arbitrary
    length with a minimum length of 256) introduced with Release 3,0
    replace data type VARC.
    If possible choose one of these data types for your domain.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message AD981 - Domain & (data type VARC no longer supported from Release 3.0) ?

    The SAP error message AD981 indicates that the domain and data type VARC (Variable Character) is no longer supported from Release 3.0 onwards. This error typically arises when you are trying to use a data type that has been deprecated in newer versions of SAP.

    Cause:

    The primary cause of this error is the use of the VARC data type in your ABAP programs or data dictionary objects. As SAP has evolved, certain data types have been replaced or deprecated in favor of more efficient or standardized types. The VARC type was replaced by the STRING or CHAR data types, which are more versatile and better supported in modern SAP environments.

    Solution:

    To resolve this error, you need to replace the usage of the VARC data type in your ABAP programs or data dictionary objects with a supported data type. Here are the steps you can follow:

    1. Identify Usage: Search your ABAP code and data dictionary objects for any instances of the VARC data type.

    2. Replace Data Type:

      • If the length of the character string is fixed, consider using CHAR(n) where n is the length of the string.
      • If the length of the character string is variable, use STRING instead.
    3. Adjust Code: After replacing the data type, ensure that any related code logic is adjusted accordingly. For example, if you were using functions or methods that specifically required VARC, you may need to find alternatives or modify the logic to work with the new data type.

    4. Test: After making the changes, thoroughly test your application to ensure that it functions correctly with the new data types.

    Related Information:

    • Documentation: Refer to the SAP Help Portal or the ABAP documentation for more information on data types and their usage.
    • Migration Guides: If you are upgrading from an older version of SAP, check for migration guides that may provide specific instructions on how to handle deprecated data types.
    • SAP Notes: Look for relevant SAP Notes that may provide additional context or solutions related to this error message.

    By following these steps, you should be able to resolve the AD981 error and ensure that your ABAP programs are compliant with the current standards in SAP.

    • 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker