Professional Documents
Culture Documents
Workflow QA
Workflow QA
On ABAP: Did you set up a workflow ? Are you familiar with all steps for setting up a workflow ?
Yes.
In the header of the Workflow, define the Business Object and Event you refer to for
triggering the Wf.
ex.select count (*) from emp table group by deptno where deptno = 1.
It is used to find the number of employees present in the specified department no.
SAP R/3 screens how will you develop a table control having 3 columns with only one editable ?
we can develop it by giving the code in PBO (process before output) giving table control
line = 3. it will give only 3 lines and we can make 2 lines disable in screen painter options available
in table control
Elementary search helps defines a search path where we will define the table from which
the data has to be read and the selection criteria. Through import and export parameters. Used
when we gets the data rom a single table.
Collective search helps: Combination of elementary search helps. When we need to fetch
data based on multiple selection criteria's. More than one tables are Selection from multiple tables
search help: adding f4 functionality is search help(adding help for any topic)
match code: adding search help for the input field is called as math code object
Have you created database tables ?
YES , IF WE HAVE CUSTOMISED DATA TO STORE IN TABLE , WE CREATE A TABLE.
tables which can be access by some specific user are client dependent (use mandt field in
table)
It allows consultants to create new business processes without modifying the standard SAP
code.
Workflow ensures that the tasks are executed in the correct sequential order, involving the
relevant personnel.
SAP Business Workflow may be run through the internet or intranet web applications via the
Webflow Engine.
The work item may be a user decision or a dialog form that allow you to enter data for
starting a process within SAP, or a confirmation of whether a particular task may be performed. The
user then chooses an appropriate option which determines the subsequent behavior of the workflow
in question. There are a variety of applicable work items. Each work item has a status reflecting
the stage of processing at any given point in time.
A work item comprises of text explaining what action needs to be taken, whom to refer to
and any information pertinent to the business object involved.
Unlike simple SAP office mails, work items are active entities, as they determine the
subsequent direction of the workflow. SAP office mails can also be deleted from the inbox without
viewing them whereas a work item has to be executed to have it removed from your inbox.
What is a background work item ? Are they displayed in the Business Workplace ?
A background work item (code B) represents tasks that do not require any user interaction. They
are controlled and executed automatically by the workflow system, and do not appear in the
Business Workplace. However, you may view them using the Work Item Selection Report.
Which method is executed if space is passed for the method parameter of macro
SWC_CALL_METHOD ?
The Default method of the object type is executed if a space is passed as the method parameter
value. You can find the default method by viewing the applicable object using transaction SWO1
and going to menu option "Goto -> Basic Data" and clicking on the Defaults tab. The default method
is located in the field "Method"
Process Control
Different deadline conditions
Requested Start: When this date is met, only then the work item will start execution, or
available for taking action (dialog).
Latest Start: When a date mentioned here is met, it can send an email, or can be modeled to do
something action.
Requested End: Same as Latest Start
Latest End: Same as Latest Start
Important Tcodes
Workflow Toolbox: SWUS
Simulate Event: SWU0
Business Object Repository: SW01
Event Trace: SWEL (S)
Workitems per task: SWI2_FREQ
SWUE: Event simulate
SWEL: Event log
SWELS: Set event log ON
SWE2: Linkage between Event and Workflow
SWEHR2: Event linkage in HR
SWU3: Workflow customizing
SWU_OBUF: Synchronize buffers
SWI5: Look into other users SBWP
What are the Important background Jobs for workflow?:
SWWDHEX
For deadline monitoring
SWWERRE
For error Monitoring
SWEQSRV
For Event Queue Delivery
Workflow experience:
What are the workflows created by you? Worked upon by you?
Function Module that creates workflow
SAP_WAPI_START_WORKFLOW:
SAP_WAPI_CREATE_EVENT
SAP_WAPI_WORKITEM_RECIPIENTS
SAP_WAPI_GET_WORKITEM_DETAIL
When a infotype action is performed, an event should trigger, and a workflow subsequently.
How can I configure it?
Answer: Tcode SWEHR2
When a infotype action is performed, an FM should trigger, and a workflow subsequently. How
can I configure it?
Answer: Tcode SWEHR2
Workflow is not triggering... what can be the reason?
What are the different ways of triggering a workflow?
Triggering Events, which are set up in SWE2 (generic), SWEHR2 (HR)
SAP_WAPI_START_WORKFLOW
Workflow triggered, but it did not come to the user, why?
What are the difference between a Business Object and a Class?
How to achieve dynamic parallel processing?
There are three ways a parallel processing can be implemented
Dynamic parallel processing using a multi-line container element
Fork (3 out of 5)
Work queue
In dynamic processing the type of each entry in the table have to be of same type.
Same task will be processed for each line of the multi-line container. It can be a dialog or
background task. Deadline monitoring, binding, agent determination will be same for each work
item generated To achieve, go to Miscellaneous in the activity, and enter the multi line container
element.
How to notify a user immediately in R/3 that he has got an email?
Mark the priority as 1 Express
How can we debug a workflow?
If it is a dialog task, you can set breakpoint in the method called by the task
If it is a method that you want to debug, use SWO1, and create a instance of the object and
debug the methods
If it is a background task, and you are in development client, you can do the following. Create
an infinite loop in the method you want to debug. Go to SM50 (processes overview) and select the
relevant item, and select debug from option.
Huge number of events is getting created in a short duration of time, and thus creating a huge
load on the system and making it very slow. Solution?
Enable event queue. It will ensure that triggered events are received in a phased manner. This
needs to be done while providing event linkages.
Why Process Control is used? What are its features?
Process Control is used to manipulate another work item of the workflow during runtime.
Process Control is usually used to model the workflow when deadlines are reached. SAP offers 4
standard behaviors as part of process control.
Cancel Work item: Target WI is logically deleted. Subsequent tasks are not executed. Precondition
is that Process control and the target WI have to be in different branches of the same fork.
Set Work item to obsolete: The target WI is set to complete, and processing continues in the branch
processing obsolete.
Cancel Workflow: Current workflow is set to Complete. If this is the sub workflow, then the
control goes to super-ordinate workflow.
Complete (terminate) Workflow: Same as above, but the branch of super-ordinate workflow which
contains the current sub-workflow will not be continued.
Cancel Workflow including all callers: Same as above, but all callers also will be COMPLETEd.
What is the integration point with ESS Portal?
Tcode SWFVISU
Portal config file for UWL
What are the types of work items?
Dialog Work item - W
Background work item
Workflow work item
Work queue work item
Missed deadline work item: When a deadline is missed a missed deadline workitem with the
message appears in inbox
What are the different statuses of a work item?
Waiting
Ready
Reserved
Inprocess
Executed (confirm end of processing in task definition)
Completed
Logically deleted
Error
check that the linkage between the event and the workflow exists in transaction SWE2 and
is activated
check transaction SWEL to see if event was created / gets created (may need transaction
SWELS to turn SWEL on)
check if the event is in a queue (if event queueing is turned on, see transaction SWEQADM)
check WF-BATCH in transaction SU01, see if all is well (e.g. password not expired)
the agent assignment fails to return an agent (or hasnt been set) and
the Terminate if rule resolution has no result box has not been checked
This is usually fixed by checking the Terminate if rule resolution has no result box Why is this
user receiving this workitem, when he shouldnt?
Some possibile reasons/solutions:
run SWU_OBUF and check transaction SWU3 for problems
the task has been set to General Task, no agent was determined and the Terminate if rule
resolution has no result box was not checked so the workitem is going to every user
the user has been set up as a workflow substitute for another user in table HRUS_D2
the user is actually receiving an email, not a workitem, and the user has been setup as an
email substitute in table SOSU
Why is this user NOT receiving this workitem, when he should? Some possible reasons/solutions:
The user has a worflow substitute set up for him in table HRUS_D2
the user is actually expecting an email, not a workitem, and the user has an email
substitute set up for him in table SOSU
the user has been listed as an Excluded Agent for that task
Why is my workflow stuck / hanging? Some possible reasons/solutions:
run SWU_OBUF and check SWU3 for problems (e.g. SWWDHEX or SWWERRE not running)
check for any shortdumps in transaction ST22
if a method is hanging in the background, check in transaction SWO1 that it isnt mistakenly
marked as Dialog
if the method is a Dialog method then check the agent hasnt been set as WF-BATCH
How come my workflow works fine in DEV but not in QA? (or PROD) Some possible reasons:
run SWU_OBUF and check SWU3 for problems
user WF-BATCH may have problems, e.g. expired password, no email address supplied
custom tables used for agent determination not filled in the same way
Rules in Workflow
Definition:
Rules allow us to specify data at runtime according to a template defined at definition time.
Together with e-mail notifications, workflow rules help us automate the tracking and management of
Issues.
What is the difference between Rules and Roles?