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

Close

How To Fix WF_CONT067 - Class & is not a general class


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WF_CONT - Workflow Container, Definition Time and Runtime

  • Message number: 067

  • Message text: Class & is not a general class

  • 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 WF_CONT067 - Class & is not a general class ?

    SAP Error Message:
    WF_CONT067: Class & is not a general class


    Cause:

    This error occurs in SAP Workflow when a class that is expected to be a "general class" (i.e., a class that can be used in the workflow container or as a container element) is not recognized as such. In SAP Workflow, certain classes must be defined as "general classes" to be used in container elements or as workflow container objects.

    Specifically, the error means that the class you are trying to use in the workflow container or as a container element is not flagged as a general class in the Class Builder (transaction SE24).


    Explanation:

    • General Class in SAP is a class that is not a local class or interface and is available for use in various contexts, including workflow containers.
    • Workflow container elements often require the class to be a general class so that the workflow engine can instantiate and handle the object properly.
    • If the class is local, or an interface, or not properly defined, the workflow engine throws this error.

    Solution:

    1. Check the Class in SE24:

      • Go to transaction SE24 (Class Builder).
      • Enter the class name that caused the error.
      • Check if the class is a general class.
    2. Make the Class a General Class:

      • If the class is local or not a general class, you need to create or use a general class.
      • General classes are global classes created in SE24 and are not local classes inside programs or function groups.
    3. Use a Suitable Class:

      • If the class cannot be changed (e.g., standard SAP class), consider using a different class that is a general class.
      • Alternatively, create a wrapper general class that encapsulates the required functionality.
    4. Adjust Workflow Container Element:

      • In the workflow container, ensure that the container element is defined with a data type that corresponds to a general class.
      • You can check and adjust the container element data type in the workflow builder (transaction SWDD).
    5. Transport and Activate:

      • After making changes, activate the class and transport it if necessary.
      • Test the workflow again.

    Additional Information:

    • This error is common when custom classes or local classes are used in workflow container elements.
    • SAP Workflow requires container elements to be typed with general classes or data types that the workflow engine can handle.
    • Interfaces or local classes cannot be used directly as container element types.
    • If you are using a standard SAP class, verify if it is intended for workflow use.

    Summary:

    Aspect Details
    Error WF_CONT067: Class & is not a general class
    Cause The class used in the workflow container is not a general (global) class.
    Solution Use a global general class in SE24; adjust container element data type accordingly.
    Transaction SE24 (Class Builder), SWDD (Workflow Builder)
    Notes Local classes or interfaces cannot be used as container element types in workflows.

    If you need help identifying which class is causing the issue or how to create a general class, please provide the class name or workflow details.

    • 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