ERPClimb logoERPClimb

Workflow · Intermediate · Configuration

How to configure a workflow event type linkage and test it with SWUE

Check or create the type linkage between a business object event and its receiver, simulate the event to see which receivers would start, then raise the event for a test object with the event trace on and read the result.

APPLICABILITY
SAP S/4HANA on-premise and Cloud Private Edition and SAP ECC with SAP Business Workflow and SAP GUI. The cited SAP Library pages are from SAP NetWeaver documentation; the transactions are the same in current releases. SAP S/4HANA Cloud Public Edition does not offer these transactions.
TOOLS / TRANSACTIONS
SWO1 · SWETYPV · SWU0 · SWELS · SWUE · SWEL · SWI1

Your project assignment

A hypothetical project has built workflow WS90000001 that should start when a sales order is created. Before business users test it, the workflow administrator must check the event type linkage for object type BUS2032 and event CREATED, and prove with one test order in the development client that the event starts the workflow.

Where to start: URLs and transactions

SAP GUI transactions
SWO1, SWETYPV, SWU0, SWELS, SWUE, SWEL, SWI1
SAP menu path
Tools → Business Workflow → Development → Administration → Event Manager → Type Linkages; Utilities → Events → Simulate Event and Create Event
SAP Help: Important Transaction Codes (SAP Business Workflow)
https://help.sap.com/doc/saphelp_nw74/7.4.16/en-US/4f/28c753438c2697e10000000a42189e/content.htm

Prerequisites

  • Authorization for workflow administration and development utilities in the development client, and a customizing transport request for the linkage.
  • Automatic workflow customizing completed in the client, and a receiver that exists: an active workflow or a receiver function module.
  • A test document in the development client whose key you may use to raise the event.

Configuration workflow

From a business event to a started workflow

All steps visible. Play or advance one stage at a time.

From a business event to a started workflowApplication raises the event: Object type BUS2032, event CREATED → Type linkage (SWETYPV): Receiver and receiver function module → Linkage activated: Otherwise nothing starts → Receiver: Workflow or function module → Event trace (SWEL): Evidence of the call. If it works: Workflow started, Trace entry without error. If it fails: No receiver started, Linkage inactive or workflow not active1Application raises the eventObject type BUS2032, event CREATED2Type linkage (SWETYPV)Receiver and receiver function module3Linkage activatedOtherwise nothing starts4ReceiverWorkflow or function module5Event trace (SWEL)Evidence of the callWORKSWorkflow startedTrace entry withouterrorFAILSNo receiver startedLinkage inactive orworkflow not active
Simulate first (SWU0); raise a real test event (SWUE) only in the development client. ERPClimb original instructional diagram · not a live SAP screenshot.

Hands-on implementation — step by step

Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.

0/8 completed
  1. 1

    SWO1 → check object type and event

    Display the business object type and confirm that the event exists and is released. Note the key fields of the object.

    SWO1 → check object type and eventERPClimb · illustrative screen
    Object type
    BUS2032 (sales order)
    Event
    CREATED
    Key field
    Sales document number

    Expected result: The event exists on the object type.

    Why this matters: A linkage can only react to an event that the object type defines and the application raises.

  2. 2

    SWETYPV → display or create the type linkage

    Look for an entry with the object type, event and receiver. If the Workflow Builder has not created it, add a new entry with the receiver call and receiver function module.

    SWETYPV → display or create the type linkageERPClimb · illustrative screen
    Object category / type
    BOR object type / BUS2032
    Event
    CREATED
    Receiver type
    WS90000001 (hypothetical)
    Receiver call / function module
    Function module / SWW_WI_CREATE_VIA_EVENT

    Expected result: One linkage exists for the event and receiver.

    Why this matters: When an event is raised the system checks the type linkages for receivers and calls them with the function module in the linkage.

  3. 3

    SWETYPV → delivery and error behaviour

    Check how the event is delivered and what happens when the receiver reports an error. Leave Linkage Activated unselected until the simulation is clean.

    SWETYPV → delivery and error behaviourERPClimb · illustrative screen
    Event delivery
    Using tRFC (default)
    Behavior upon error feedback
    System defaults
    Linkage activated
    Not yet selected

    Expected result: The linkage is complete but inactive.

    Why this matters: Error behaviour decides whether a failing receiver deactivates the linkage for everyone.

  4. 4

    SWU0 → Simulate Event

    Enter the object type and event and run the simulation. Read the list of receivers and any error cause letters with the legend.

    SWU0 → Simulate EventERPClimb · illustrative screen
    Object type
    BUS2032
    Event
    CREATED
    Expected receiver
    WS90000001

    Expected result: The receiver is listed; error causes, if any, are explained in the legend.

    Why this matters: The simulation shows which tasks and workflows would start, without starting them.

  5. 5

    SWETYPV → activate the linkage

    When the simulation shows no error for the receiver, select Linkage Activated and save in your transport request.

    SWETYPV → activate the linkageERPClimb · illustrative screen
    Linkage activated
    Selected
    Receiver status
    No errors

    Expected result: The linkage is active in the development client.

    Why this matters: Only an activated linkage starts its receiver.

  6. 6

    SWELS → switch the event trace on

    Switch on the event trace for the duration of the test. If the system allows a restriction, limit the trace to the object type under test so that little else is recorded.

    SWELS → switch the event trace onERPClimb · illustrative screen
    Event trace
    On
    Restriction
    Object type BUS2032, if the trace is restricted

    Expected result: Events are now written to the trace.

    Why this matters: The trace is the evidence of what the event manager did with the event.

  7. 7

    SWUE → Create Event

    Enter object type and event, choose the object key and enter the number of the test order. Raise the event once.

    SWUE → Create EventERPClimb · illustrative screen
    Object type / event
    BUS2032 / CREATED
    Object key
    Number of a test order in the development client
    System
    Development client only

    Expected result: The system confirms that the event was created.

    Why this matters: A manually created event tests the linkage and receiver without waiting for the application.

  8. 8

    SWEL and SWI1 → read the result, then switch the trace off

    Display the event trace and check the entry for the event: receiver, status and any message. Find the work item for the workflow, then switch the trace off in SWELS.

    SWEL and SWI1 → read the result, then switch the trace offERPClimb · illustrative screen
    Trace entry
    BUS2032 CREATED, receiver WS90000001
    Work item
    Workflow started for the test order
    Event trace
    Off after the test

    Expected result: The trace shows the receiver started and a workflow instance exists.

    Why this matters: The trace and the work item together prove the linkage end to end.

Project acceptance checklist

Use this checklist to prepare evidence for your project lead.

0 of 4 checks marked. This does not certify the SAP configuration.

Validate your configuration

  • The event simulation lists the receiver without an error cause.
  • After the test event the event trace shows the receiver started, and the work item or the receiver's result exists for the test object.

Common errors and what to check

  • nothing happens when the event occurs.

    Check: The type linkage exists but is not activated, or it was deactivated by the system after a receiver error.

  • the simulation shows the receiver with an error cause for a workflow that is not activated or has no definition.

    Check: Activate the workflow in the Workflow Builder first.

  • the workflow starts but stops immediately or uses wrong data.

    Check: The binding from the event container to the workflow container has errors.

  • the event is raised in the test tool but the application never raises it.

    Check: The application does not create this event for the object, or a check function module rejects it.

More in the SAP Library

Need help with a configuration error? Open ERPClimb Copilot.

Technical references & further reading