How To Fix CL072 - Class type &: & & cannot be deleted as it is in use in other objects


SAP Error Message - Details

  • Message type: E = Error

  • Message class: CL - Classification

  • Message number: 072

  • Message text: Class type &: & & cannot be deleted as it is in use in other objects

  • Show details Hide details
  • What causes this issue?

    &V2& &V3& of class type &V1& is used in configurable objects (BOMs or
    task lists) of a <DS:GLOS.configurable_material>cofigurable material</>.

    System Response

    The system checks whether the class is in use anywhere, and does not
    let you delete the class if it is.

    How to fix this error?

    First delete all usages of &V2& in BOMs and task lists.
    Then delete &V2& &V3&.
    Where-used list for BOMs

    <DS:TRAN.CSC5>Proceed</>
    ENDIF

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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message CL072 - Class type &: & & cannot be deleted as it is in use in other objects ?

    The SAP error message CL072 indicates that a class type (usually a class or interface) cannot be deleted because it is currently being used in other objects within the SAP system. This is a common issue when trying to delete or modify objects that have dependencies.

    Cause:

    1. Dependencies: The class or interface you are trying to delete is referenced in other objects, such as:

      • Other classes or interfaces
      • Programs
      • Function modules
      • Methods
      • Web services
      • Other development objects
    2. Active References: The class might be actively used in the system, meaning that there are instances or calls to this class that prevent its deletion.

    Solution:

    To resolve this error, you can follow these steps:

    1. Identify Dependencies:

      • Use transaction code SE80 (Object Navigator) or SE11 (Data Dictionary) to check for references to the class.
      • You can also use transaction SE37 (Function Builder) or SE24 (Class Builder) to find where the class is being used.
      • Use the Where-Used List feature (Shift + F4) to find all objects that reference the class.
    2. Remove References:

      • Once you have identified the objects that reference the class, you will need to either modify or delete those references.
      • This may involve changing the code in other classes, programs, or function modules that utilize the class.
    3. Check for Active Instances:

      • Ensure that there are no active instances of the class in use. If the class is instantiated in any running programs, you may need to stop those programs or sessions.
    4. Delete the Class:

      • After all references have been removed, you should be able to delete the class without encountering the error.
    5. Transport Requests:

      • If you are working in a transport environment, ensure that any changes you make are included in the appropriate transport request.

    Related Information:

    • Documentation: Always refer to the SAP documentation for the specific version you are using, as there may be version-specific considerations.
    • Development Guidelines: Follow best practices for object-oriented programming in ABAP to minimize dependencies and make future maintenance easier.
    • Testing: After making changes, thoroughly test the system to ensure that the removal of the class does not affect other functionalities.

    By following these steps, you should be able to resolve the CL072 error and successfully delete the class type in question.

    • 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