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

Close

How To Fix WK021 - Substitution ended


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WK - BPT: Messages integr. inbox

  • Message number: 021

  • Message text: Substitution ended

  • 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 WK021 - Substitution ended ?

    Certainly! Here's a detailed explanation regarding the SAP error message WK021 - Substitution ended:


    SAP Error Message: WK021 - Substitution ended

    Message Text:
    Substitution ended


    Cause

    The message WK021 occurs during workflow processing in SAP when a substitution rule has been executed and the substitution process has ended. This message is informational and indicates that the system has completed the substitution of an agent (user) in a workflow step.

    In SAP Workflow, substitution is a mechanism that allows one user to act on behalf of another user, typically when the original user is unavailable (e.g., on leave). The system checks substitution rules to find an alternate agent to process a workflow task.

    The message WK021 is triggered when the substitution logic finishes its execution, either because:

    • A valid substitute user was found and assigned.
    • No substitute was found, and the substitution process ended without assignment.
    • The substitution rule logic has completed its evaluation.

    This message is often logged in the workflow trace or workflow log to indicate the end of the substitution process.


    When does it appear?

    • During workflow task processing when the system tries to find a substitute agent.
    • When substitution rules are evaluated and the system finishes the substitution check.
    • It can appear in workflow logs or as part of workflow error handling.

    Is WK021 an error?

    • No, WK021 is generally an informational message, not an error.
    • It indicates the substitution process has ended.
    • However, if no substitute was found and the workflow cannot proceed, the workflow might stop or generate other error messages.

    Solution / How to handle WK021

    Since WK021 is informational, no direct "fix" is needed for this message itself. However, if the workflow is not proceeding as expected due to substitution issues, consider the following:

    1. Check Substitution Rules:

      • Verify that substitution rules are correctly maintained for the user.
      • Use transaction SWI2_FREQ or SWI1 to check workflow logs and substitution details.
      • Use transaction POQS or SBWP to maintain substitution rules.
    2. Check Substitute User Availability:

      • Ensure the substitute user is active and has the necessary authorizations.
      • Confirm that the substitute user is not locked or inactive.
    3. Workflow Agent Determination:

      • Check if the workflow step is correctly configured to allow substitution.
      • Review the agent determination method in the workflow definition.
    4. Workflow Logs:

      • Analyze the workflow log (transaction SWI1) to see if the substitution was successful or if the workflow stopped due to no substitute found.
      • Look for other error messages that might indicate why the workflow did not proceed.
    5. Testing:

      • Test substitution scenarios by simulating user absence and verifying if the substitute receives the workflow task.

    Related Information

    • Substitution in SAP Workflow:
      Substitution allows delegation of workflow tasks from one user to another. It is configured via substitution rules in the SAP Business Workplace (transaction SBWP) or via the substitution framework.

    • Transactions to manage substitution:

      • SBWP - SAP Business Workplace (manage substitution rules)
      • POQS - Maintain substitution rules
      • SWI1 - Workflow log
      • SWI2_FREQ - Workflow tasks overview
    • SAP Notes and Documentation:

      • SAP Help Portal: Workflow and Substitution
      • SAP Notes related to substitution and workflow agent determination

    Summary

    Aspect Description
    Message WK021 - Substitution ended
    Cause Substitution process in workflow has ended.
    Type Informational message, not an error.
    Impact Indicates substitution check completed.
    Solution Verify substitution rules and user availability if workflow does not proceed.
    Related Tcodes SBWP, POQS, SWI1, SWI2_FREQ

    If you are experiencing workflow stoppage or errors related to substitution, focus on verifying substitution rules and agent determination rather than the WK021 message itself.


    If you need help with a specific workflow scenario or substitution setup, feel free to provide more 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
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