Professional Documents
Culture Documents
TROUBLESHOOTING
1
Event Debugging
▪ Primary Components:
▪ Each workflow consists of several components that are best described by answering following questions:
▪ As we proceed we will review problem solving and debugging techniques used in each of the
components
▪ Event Debugging
▪ Workflows are primarily triggered based on the events generated by applications
▪ Once the baseline configuration is complete we would expect the application to trigger the event that
will start workflow
▪ Most often, issues related to event triggering is “We expected workflow to start but workflow did not
start”
▪ In such case below checks should be done
▪ If the event trace shows no receiver was found. This error is typical if the event linkage is not set up or not active in
transaction SWE2
▪ If event linkage is not set to active in SWE2 then set it to active
▪ Re execute the transaction and check the SWEL trace to see if the event was triggered
▪ Other items to check if the issue was not resolved:
▪ SWU3 – Check the workflow engine – make sure all items are configured properly
▪ SWUB – Validate if workflow RFC destination is configured properly. Synchronize the passwords and test the RFC
connection
▪ SM58 – Review the tRFCs that are logged for workflow
▪ SM21 – Check system log for workflow specific errors
▪ ST22 – Check workflow specific short©La rsen & Toubro Infotech Ltd. Privileged and Confidential
dumps 5
Event Debugging
▪ If any of the parameters are missing then go to the workflow definition and check the binding
between event and workflow
Agent Resolution
Debugging
▪ Problem 3: A workflow work item is created but it is not assigned to any agent
▪ Review the workflow log from SWI1
▪ Review the log and check if its in status error
▪ You can view the error log and select the error message
▪ Clicking on the long text icon would should the detailed error log
▪ Problem 3: A workflow work item is created but it is not assigned to any agent
▪ Agent resolution can be defined the workflow step level, however any resolution defined at this level is superseded
if the agent resolution is defined at the task level
▪ Double click the task and select the default role tab. Here you may find a standard rule defined like in the e.g. below
▪ Problem 3: A workflow work item is created but it is not assigned to any agent
▪ We need to check why an error is occurring in this rule for agent determination
▪ Double click the standard rule and launch the PFAC transaction
▪ Problem 3: A workflow work item is created but it is not assigned to any agent
▪ On execution in SWUS, the processing would halt at the break point set up in rule function module and you can start
the debugging
▪ Further in debugging if we find that the below FM is returning the exception then we need to verify the possible
agent assignment at the task level
▪ Problem 3: A workflow work item is created but it is not assigned to any agent
▪ Open the task in PFTC
▪ Go to menu Additional Data > Agent Assignment > Maintain >
▪ If the attributes are shown like above then possibility is that the responsible agent does not belong to this group of
possible agents. As the task is not classified as General, we need to define the possible agents
▪ Problem 3: A workflow work item is created but it is not assigned to any agent
▪ One option is to create org structure, position and assign a user to the position
▪ Then assign the task to the position
▪ Second option is to make the task as general so it can be executed by anybody
▪ Re xecute SWUS after making one of the above change.
▪ This time the agent should get assigned as expected
Workflow Task
Debugging
▪ The code for the single step task is written in the methods assigned to the objects in business object
repository
▪ Its often necessary to debug the method code to resolve workflow issues
▪ Click the program button to launch the code for this method.
▪ To test we will use workflow test transaction SWUS and the existing business document data that can
be accessed through SWI1 for the existing work item
▪ Special consideration is required for background task because any break points in the code DO NO
cause the task to stop and wait for the user to debug
▪ Double click on the step in the process flow diagram to launch the step details screen
▪ After placing the break point go back to the previous screen and pull up the method attributes
▪ On return to the task description, the task attribute would have changed
▪ You can now re execute the application and workflow will stop at this task
▪ On the workflow log go to this task and go to the technical log for it
▪ You can now re execute the application and workflow will stop at this task
▪ On the workflow log go to this task and go to the technical log for it
▪ On execution you will get a debugger opened for the background method associated with the task
▪ After you have finished debugging the method, make sure to change the attributes of the method back
to the background and then regenerate the workflow via PFTC
Important Transactions
Case Study
▪ Create simple workflow with decision step. Add email sending steps on approval / rejection
▪ Hardcode user or
▪ Create table and select using rules
▪ Create workflow whenever material is created in system and send information to a specific
user for approval (hardcode or use rule to determine approver). On approval or rejection
send email notification to material creator.
▪ PO change workflow
▪ Condition 1: The workflow should trigger on PO change.
▪ Condition 2: The PO type should be NB <standard type>.
▪ Condition 3: If the PO changer and the PO creator are different then, send a mail to PO creator with
the subject line as follows:<PO number> is changed by <PO changer>
▪ Condition 4: If the PO creator does not check the mail in 10 minutes, send a Reminder Mail.
▪ Create leave application and that should go for approval to superior. Send email notification
on approval or rejection to applicant
▪ PR release workflow.
▪ Work with MM functional to configure release strategy in L&T server
▪ Copy standard workflow
▪ Add email sending step after each approval/rejection step and send notification to PR created user
▪ PO release workflow
▪ Work with MM functional to configure release strategy in L&T server
▪ Copy standard workflow
▪ Add email sending step after each approval/rejection step and send notification to PR created user
▪ Create PR that should go for approval. After approval create PO automatically (use any
default vendor) and send mail to user who created that PR
▪ Create Quotation and should go for approval. After approval create SO automatically (use
any default customer) and send mail to user who created that PR