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

Close

How To Fix WRF_PRC_BAS009 - The selected messages were deleted


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WRF_PRC_BAS - General Purchasing, Seasonal Procurement Messages

  • Message number: 009

  • Message text: The selected messages were deleted

  • 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 WRF_PRC_BAS009 - The selected messages were deleted ?

    SAP Error Message:
    WRF_PRC_BAS009The selected messages were deleted


    Cause:

    This error message typically occurs in SAP Workflow or related processing scenarios when the system attempts to access or process workflow messages (or related workflow objects) that have already been deleted from the database. The message indicates that the workflow messages you are trying to view, process, or act upon no longer exist because they were removed either manually by a user or automatically by a cleanup job.

    Common causes include:

    • The workflow messages were deleted manually via transaction codes like SWI1 or SWIA.
    • Automatic workflow message cleanup jobs (e.g., SAP_WAPI_WORKITEM_DELETE) have purged old or completed workflow messages.
    • The workflow container or related objects were deleted or changed, causing the messages to become invalid.
    • The user is trying to access messages that were already processed and removed.

    Solution:

    1. Verify Message Existence:
      Check if the workflow messages still exist in the system using transaction SWI1 (Selection of Workflow Messages) or SWIA (Work Item Administration). If they are not found, it confirms deletion.

    2. Avoid Accessing Deleted Messages:
      Ensure that your workflow or custom programs do not try to access messages that have been deleted. Add checks in your code or workflow logic to verify message existence before processing.

    3. Review Cleanup Jobs:
      Check if any workflow cleanup jobs are scheduled or have run recently that might have deleted the messages. You can review jobs like SAP_WAPI_WORKITEM_DELETE in transaction SM37.

    4. Restore Messages (if needed):
      If the messages were deleted unintentionally and you need to restore them, you may need to restore from a system backup or transport request, but typically workflow messages are transient and not restored.

    5. Adjust Retention Period:
      If messages are being deleted too early, consider adjusting the retention period for workflow messages in the system parameters or cleanup job settings.

    6. Check Authorizations:
      Sometimes, users may not have the authorization to view certain messages, and the system might show this error. Verify user authorizations related to workflow message display.


    Related Information:

    • Transaction Codes:

      • SWI1 – Workflow Message Selection
      • SWIA – Work Item Administration
      • SWI2_FREQ – Workflow Log
      • SM37 – Job Monitoring (to check cleanup jobs)
    • Tables:

      • SWWWIHEAD – Workflow Work Item Header
      • SWWWIRED – Workflow Work Item Container Data
      • SWWLOGHIST – Workflow Log History
    • Notes and Documentation:

      • SAP Notes related to workflow message cleanup and retention.
      • SAP Help Portal documentation on Workflow message lifecycle and cleanup.

    Summary:

    The error WRF_PRC_BAS009 indicates that the workflow messages you are trying to access have been deleted. To resolve this, verify message existence, avoid processing deleted messages, review cleanup job schedules, and adjust retention settings if necessary.

    • 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