Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WD098 - Data type &1 cannot be deleted (uses parameter &2)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WD - Workflow definition

  • Message number: 098

  • Message text: Data type &1 cannot be deleted (uses parameter &2)

  • Show details Hide details
  • What causes this issue?

    The data type cannot be deleted because it is still used by at least one
    parameter.

    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?

    If you want more input help, you can delete the content of the fields.

    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 WD098 - Data type &1 cannot be deleted (uses parameter &2) ?

    The SAP error message:

    WD098 Data type &1 cannot be deleted (uses parameter &2)

    Cause:

    This error occurs when you try to delete a data type in the Web Dynpro ABAP repository that is still being used by one or more parameters. The system prevents deletion to avoid inconsistencies or broken references in the application.

    • &1 = Name of the data type you are trying to delete.
    • &2 = Name of the parameter that is still using this data type.

    In other words, the data type is referenced by a parameter (e.g., in a method, interface, or context node), so it cannot be deleted until all references are removed.

    Solution:

    1. Identify all references to the data type:

      • Use the SAP Object Navigator (transaction SE80) or the Where-Used List (Shift+F3 or via menu) to find all objects that reference the data type.
      • Specifically, look for parameters in methods, interfaces, or context nodes that use this data type.
    2. Remove or change the references:

      • Modify the parameters or other objects so that they no longer use the data type you want to delete.
      • This might involve changing the parameter type to another data type or deleting the parameter if it is no longer needed.
    3. Delete the data type:

      • Once all references are removed, you can delete the data type without error.

    Related Information:

    • This error is common in Web Dynpro ABAP development when cleaning up unused or obsolete data types.
    • Always check dependencies before deleting repository objects to avoid breaking applications.
    • Use transaction SE11 (Data Dictionary) or SE80 (Object Navigator) to manage data types and their references.
    • The Where-Used List is a powerful tool to find all references to a repository object.
    • If the data type is part of a transport request, ensure that all changes are properly transported.

    Summary:

    Aspect Details
    Error WD098 Data type &1 cannot be deleted (uses parameter &2)
    Cause Data type is still referenced by parameter(s)
    Solution Remove or change all references to the data type, then delete it
    Tools SE80, SE11, Where-Used List (Shift+F3)

    If you need help identifying references or modifying parameters, please provide the data type name and context, and I can guide you further.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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