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

Close

How To Fix SWF_CCMS021 - Last successful run of automatic cleanup


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SWF_CCMS - CCMS: Monitoring

  • Message number: 021

  • Message text: Last successful run of automatic cleanup

  • 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 SWF_CCMS021 - Last successful run of automatic cleanup ?

    The SAP error message SWF_CCMS021 typically relates to issues with the automatic cleanup of workflow instances in the SAP system. This message indicates that the last successful run of the automatic cleanup process did not complete as expected, which can lead to an accumulation of workflow instances that may not be processed or cleaned up properly.

    Cause:

    1. Configuration Issues: The automatic cleanup process may not be configured correctly in the system.
    2. Job Scheduling Problems: The background job responsible for the cleanup may not be scheduled or may have failed to run.
    3. Database Issues: There may be database locks or performance issues that prevent the cleanup process from executing successfully.
    4. Workflow Instances: There may be a large number of workflow instances that need to be processed, causing the cleanup job to time out or fail.
    5. Authorization Issues: The user executing the cleanup job may not have the necessary authorizations to perform the cleanup.

    Solution:

    1. Check Job Scheduling:

      • Go to transaction code SM37 to check the status of the background job responsible for the cleanup.
      • Ensure that the job is scheduled correctly and is running without errors.
    2. Review Job Logs:

      • If the job has failed, review the job logs for any error messages that can provide more insight into the failure.
    3. Adjust Cleanup Parameters:

      • You may need to adjust the parameters for the automatic cleanup process in transaction SWF_CCMS. This includes setting appropriate thresholds for how long workflow instances should be retained.
    4. Database Performance:

      • Check for any database locks or performance issues that may be affecting the cleanup process. You can use transaction DB02 to monitor database performance.
    5. Increase Timeout Settings:

      • If the cleanup process is timing out due to a large number of instances, consider increasing the timeout settings for the job.
    6. Authorization Check:

      • Ensure that the user executing the cleanup job has the necessary authorizations. You can check this in transaction SU01.
    7. Manual Cleanup:

      • If necessary, you can manually clean up old workflow instances using transaction SWI1 or SWI2 to delete or archive instances that are no longer needed.

    Related Information:

    • Transaction Codes:

      • SWF_CCMS: Workflow CCMS monitoring.
      • SM37: Job monitoring.
      • SWI1/SWI2: Workflow instance management.
      • DB02: Database performance monitoring.
    • SAP Notes: Check for any relevant SAP Notes that may address specific issues related to the SWF_CCMS021 error message. You can search for notes in the SAP Support Portal.

    • Documentation: Review SAP documentation on workflow management and cleanup processes for best practices and configuration guidelines.

    By following these steps, you should be able to identify the cause of the SWF_CCMS021 error and implement a solution to resolve it.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author