basic workflow trouble shooting

26
Basic Workflow Trouble Shooting Prepared by Armand Jose

Upload: armandjose2383

Post on 21-May-2017

228 views

Category:

Documents


10 download

TRANSCRIPT

Page 1: Basic Workflow Trouble Shooting

Basic Workflow Trouble ShootingPrepared by Armand Jose

Page 2: Basic Workflow Trouble Shooting

Agenda•Basic Workflow Trouble Shooting

▫Workflow Terms▫Checking Workflow Logs▫Restarting erroneous workflow ▫Deleting erroneous workflow▫Creating a new workflow event

Page 3: Basic Workflow Trouble Shooting

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.

Page 4: Basic Workflow Trouble Shooting

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

Page 5: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 6: Basic Workflow Trouble Shooting

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

Page 7: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 8: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 9: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 10: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 11: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 12: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 13: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 14: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 15: Basic Workflow Trouble Shooting

Display Workflow Logs(con’t)

Page 16: Basic Workflow Trouble Shooting

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

Page 17: Basic Workflow Trouble Shooting

Processing Workflow Error (con’t)

Page 18: Basic Workflow Trouble Shooting

Processing Workflow Error (con’t)

Page 19: Basic Workflow Trouble Shooting

Processing Workflow Error (con’t)

Page 20: Basic Workflow Trouble Shooting

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

Page 21: Basic Workflow Trouble Shooting

Deleting Erroneous Workflow (con’t)

Page 22: Basic Workflow Trouble Shooting

Deleting Erroneous Workflow (con’t)

Page 23: Basic Workflow Trouble Shooting

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

Page 24: Basic Workflow Trouble Shooting

Triggering New Workflow (con’t)

Page 25: Basic Workflow Trouble Shooting

Triggering New Workflow (con’t)

Page 26: Basic Workflow Trouble Shooting

Triggering New Workflow (con’t)