How To Fix /TMF/TOM_API021 - You can only delete run when the status is set as created.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /TMF/TOM_API -

  • Message number: 021

  • Message text: You can only delete run when the status is set as created.

  • 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 /TMF/TOM_API021 - You can only delete run when the status is set as created. ?

    The SAP error message /TMF/TOM_API021 indicates that you are trying to delete a run (likely a task or job) in the SAP system, but the status of that run is not set to "Created." This means that the run is in a different status, which prevents it from being deleted.

    Cause:

    The error occurs because the system enforces certain rules regarding the lifecycle of runs. Typically, a run can only be deleted if it is in the "Created" status. If the run has progressed to another status (e.g., "In Progress," "Completed," "Failed," etc.), the system will not allow deletion to maintain data integrity and prevent accidental loss of important information.

    Solution:

    To resolve this error, you can take the following steps:

    1. Check the Status: Verify the current status of the run you are trying to delete. You can do this by navigating to the relevant transaction or report where the run is listed.

    2. Change the Status: If possible, change the status of the run back to "Created." This may involve canceling or rolling back the run, depending on the specific processes and configurations in your SAP system.

    3. Consult Documentation: Review the SAP documentation or help files related to the specific module you are working with (e.g., SAP TM, SAP S/4HANA) to understand the lifecycle of runs and the implications of changing their status.

    4. Contact Support: If you are unable to change the status or if you are unsure about the implications of doing so, consider reaching out to your SAP support team or consulting with an SAP expert.

    5. Review User Permissions: Ensure that you have the necessary permissions to delete runs and change their statuses. Sometimes, restrictions may be in place based on user roles.

    Related Information:

    • SAP Notes: Check for any relevant SAP Notes that might provide additional context or solutions for this error message.
    • Transaction Codes: Familiarize yourself with the transaction codes related to the task or job management in your SAP system, as they may provide additional insights or options for managing runs.
    • System Logs: Review system logs for any additional error messages or warnings that may provide more context about the issue.

    By following these steps, you should be able to address the error and manage the run as needed.

    • 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