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

Close

How To Fix WI118 - Enter agent in the form type and ID (2 + 12)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WI - BPT Workflow: Messages from Info System

  • Message number: 118

  • Message text: Enter agent in the form type and ID (2 + 12)

  • 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 WI118 - Enter agent in the form type and ID (2 + 12) ?

    SAP Error Message:
    WI118 - Enter agent in the form type and ID (2 + 12)


    Cause:

    This error occurs in SAP Workflow when the system expects an agent (user or organizational unit) to be specified for a particular step or task, but the agent information is missing or incomplete. Specifically, the system requires the agent to be entered in a format consisting of:

    • Form type: 2 characters (agent type, e.g., US for user, AG for organizational unit)
    • ID: 12 characters (the actual agent ID, such as a username or organizational unit ID)

    If the agent is not provided or the format is incorrect, the system raises this error.


    When does it occur?

    • During workflow task assignment or agent determination.
    • When manually assigning agents in workflow steps.
    • When the workflow container or agent assignment rule does not provide a valid agent.
    • When using transaction SWI1, SWI2_FREQ, or during workflow execution.

    Solution:

    1. Check Agent Assignment:

      • Verify that the agent is correctly assigned in the workflow step.
      • Ensure the agent is specified with the correct form type and ID.
      • For example, if the agent is a user, the form type should be US and the ID should be the user’s SAP username.
    2. Agent Determination Rules:

      • Review the agent determination rules in the workflow definition.
      • Make sure the rules return a valid agent.
      • Use transaction PFTC to check the task and its agent assignment.
    3. Workflow Container:

      • Check the workflow container elements that hold the agent information.
      • Ensure the container element that stores the agent is correctly populated before the step is processed.
    4. Manual Correction:

      • If the error occurs during manual processing, enter the agent in the required format.
      • Example: US + username (e.g., USJOHNDOE1234).
    5. Debugging:

      • Use transaction SWI1 or SWI2_FREQ to find the workflow instance and step causing the error.
      • Debug the workflow to see why the agent is missing or incorrectly formatted.

    Related Information:

    • Agent Types in SAP Workflow:

      • US = User
      • AG = Organizational Unit
      • GR = SAP Business Role
      • TS = Position
      • AB = ABAP Class (less common)
    • Transactions:

      • PFTC - Workflow Task Maintenance
      • SWDD - Workflow Builder (to check workflow definition)
      • SWI1 - Work Item Selection
      • SWI2_FREQ - Frequent Tasks
    • SAP Notes:

      • Check SAP Notes related to workflow agent determination if the problem persists.
      • Sometimes, patches or updates fix bugs related to agent assignment.

    Summary:

    The error WI118 means the workflow step requires an agent to be specified in a particular format (2-character form type + 12-character ID), but this information is missing or incorrect. To fix it, ensure the agent is properly assigned and formatted in the workflow definition or during manual processing.


    If you need help with a specific workflow or scenario, please provide more details about the workflow and where the error occurs.

    • 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker