Basic Workflow Trouble ShootingPrepared by Armand Jose
Agenda•Basic Workflow Trouble Shooting
▫Workflow Terms▫Checking Workflow Logs▫Restarting erroneous workflow ▫Deleting erroneous workflow▫Creating a new workflow event
Workflow Terms• Workflow
▫ A logical sequence of steps carried out by people or the system to perform a business process.
• Workitem▫ Runtime representation of a task or a step in the workflow definition.
• Object Type▫ An object type refers either to the class for the entire object, or to the
interface used for some of the objects.• Object
▫ Instance of a type• Event
▫ A message about a change of status (of the attributes) sent by an object, class, or process.
• Agent▫ A system user who participates actively in SAP Business Workflow and
whose activities include the execution of work items.
Display Workflow Logs• TCODE SWI6
▫Displays all relevant workflows based on a given object(i.e. FI doc - FIPP))
▫To display the workflow for a FI document you must know the document number, company code and fiscal year
▫Make sure to select following options for FI Document Object Type -> FIPP KEY -> Company code, Document number, fiscal year Selection variant -> All instances Selection period -> All
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)•After executing the report all workflows
related to the document should be displayed
•Note that there could be more than one workflow
•A status of the workflow is displayed (in process, error, completed etc.)
•Logs for the workflow can then be displayed by clicking on logs button
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Display Workflow Logs(con’t)
Processing Workflow Error•TCODE - SWPR
▫Restart workflow After Error▫Do this step after checking workflow logs and
actually seeing that workflow is in ERROR status▫Transaction basically tries to determine who the
last workitem should be assigned to.▫Must put in as parameter the Workitem number
of the main workflow and the date it was created▫Note: That this transaction may sometimes not
work
Processing Workflow Error (con’t)
Processing Workflow Error (con’t)
Processing Workflow Error (con’t)
Deleting Erroneous Workflow•SWWL – Delete Work Items
▫Delete Existing workflow▫Should only be done when workflow is
already in Error status▫This transaction will also delete all
workflow logs associated to the workflow
Deleting Erroneous Workflow (con’t)
Deleting Erroneous Workflow (con’t)
Triggerring New Workflow•SWUE – Create Workflow Events
▫Will trigger an workflow event based on Object type specified
▫Should only be triggered for workflow that are already in error status
▫ May cause two separate workflow to be created for the same document
Triggering New Workflow (con’t)
Triggering New Workflow (con’t)
Triggering New Workflow (con’t)