SAP Workflow Tcodes and SAP Workflow Tables

SAP Workflow Tables SAP Workflow Tcodes

The list of the most important SAP Workflow Tcodes and SAP Workfkow Tables classified by topics.

First, you will find the most important SAP WF Tcodes for both Development, TroubleShooting and Monitoring. Then, the most used SAP WF tables will be listed with some real live examples of SAP WF Tables Join.

The most used SAP Workflow Tcodes

For SAP Workflow transactions codes, we divided the list into 2 parts:

  • Tcodes for Development SAP Workflow and
  • Transactions Code for Monitoring and TroubleShooting Workflow in SAP.

For more information about ABAP and Workflow, check this book ABAP Development for SAP Business Workflow.

SAP Workflow Tcodes for Workflow Development

The main SAP Tcodes for Workflow Development are:

PFTCWorkflow template and task management (WS/ TS)
PFTC_DISassigning possible agent
PFACrule creation/ editing/ testing
SWO1business object builder (BOR)
SWUSSAP WF Tcode for test/execute WF
SWEINSTall terminating events linkage
SWUI_SAP WF verification Tcode
SOSTSAPconnect transmission request
SWNCONFIGnotification configuration
SWI1selection report for work item
SM52view tRFC
SWNADMINnotification management
SM37view scheduled and processed jobs
SBWPSAP WF inbox Tcode
SWU0simulate the event linkage
SWEQADMevent queue/ preventing RFC-problem
SWB_CONDall start conditions
SWU9WF trace for the session
SWEQBROWSERevent waiting in the event queue
SWPASAP customizing WF runtime system Tcode
PPOMorganization & staffing
PPOMEorganizational management/ structure & staff assignment/ user mapping
SWI2_FREQopened task statistic

Read also

SAP Workflow Tcodes for Workflow Troubleshooting

Within the most important SAP Transaction Codes for Workflow Troubleshooting are SWIA.

This SAP tcode SWIA is the main transaction for Work Item Administration.

Here the full list of related SAP Tcodes for Workflow Troubleshooting and Monnitoring related:

SWU_OBUFmanual buffer refresh
SWI6show all WF instances/ work item IDs by BOR/CL name & Object Key (optional)
SWIAwork item administration (WI)
SWWLSAP Tcode for delete work item
SWWL_delete a parent workflow with all of its child work items
SWUDSAP Tcode for WF diagnosis
SWELSSAP Workflow event trace
SWELdisplay event trace
SWPCcontinue WF after a system crash
SM12lock/ unlock the object
SWI2_DIAGSAP Tcode for WF Error diagnosis
SWI2_DEADdeadline monitor
SWI2_DURAprocess duration
SWI2_ADM1find orphaned work item
SWI5work item per work center/job/organizational unit/position/user

SAP Workflow Tables

The most important Tables for Workflow in SAP are:

SWWWIHEADHeader Table for All Work Item Types
SWWUSERWICurrent Work Items Assigned to a User
SWWLOGHISTHistory of a Work Item
RSWWWIDEDelete work items
SWEINSTCOUInstance Linkage Event ? Receiver
SWFDEVINSTEvent Linkages with Instance Reference
SWW_CONTOBWork Item Data Container (WI to Business Objects)
SWW_CONTWorkflow Runtime
SWWORGTASKAssignment of WIs to Org. Unit/Task (WI to Task)
SWW_WI2OBJWorkitem form Bus Object Key ( e.g. Material No )
SWW_OUTBOXDB View for Selection of Outbox ( WI text/ WI stat etc)
SWP_HEADERworkflow Instances
HRP1001Infotype 1001 DB Table ( Resp to Org Obj )
HRP1240DB Table for Infotype 1240 ( Resp to Rule )
HRP1217Infotype 1217 DB Table ( All Task Details )
AGR_USERSAssignment of roles to users
HRSOBJECTIndex for Standard Objects ( e.g. All running workflows )
SWETYPECOUType Linkage Events ? Receiver
SWFDEVENAActivations for Event Linkages
SWFDEVTYPEvent Linkages Without Instance Reference
SWETYPEENAType Linkage Events ? Receiver Activation Table

SAP Workflow Agent Determination Tables

When working with SAP Workflow a common requirement is to determine the list of agents used in the workflow.

There is a 3 ways to do it. The first one is to create a custom table and we don’t recommend.

The second way is to join between 4 SAP Workflow Tables based on Work id as there is no direct Sap Workflow Agent Table

WF Agent TableDescription
SWWLOGHIST History of a work item
SWWWIHEAD Header Table for all Work Item Types
SWW_WI2OBJ Workflow Runtime: Relation of Work Item to Object
SWW_CONT Container Contents for Work Item Data Container

The third one is based on SAP FMSAP_WAPI_GET_WORKITEM_DETAILS.