Professional Documents
Culture Documents
Sap Workflow Faqs
Sap Workflow Faqs
action.
Rule resolution with Function (FM): Helpful when agents are determined dynamically from
business logic.
Rule resolution with OM: Usually used in CRM. Have not used
Rule resolution with Function, but asynchronously: This is through a class and a method.
Initially WI is created in status ready without agent. Later agent is assigned. This is suitable for
agent determination having complex logic.
Users: Rarely used.
Role: Ex: ABAP_DEVELOPER
OM objects (Position, Org Unit, work center)
Expression: A container element containing the agents.
Containers
Workflow Container:
Task Container:
SWC_GET_CONTAINER
SWC_GET_TABLE
SWC_SET_CONTAINER
SWC_SET_TABLE
Event Container:
Method Container:
Rule Container: For resolving rules
Business Objects
Key Fields:
Attributes:
Database: Automatically gets populated by system code
Virtual: You determine the content and use SWC_SET_CONTAINER to populate
Methods: Can be created using FM, Transaction, Report, Dialog Module, Other
Synchronous: Finish execution before handling the control back to the task.
Asynchronous: Return the control back immediately. Cannot have export parameters. They
depend on events to return results back to the calling program.
Dialog: Something to user
Background: Cannot have messages or exceptions
15.What are the options to implement method of a BO?
FM
BAPI
Tcode
Dialog Module
Report
Other (BO program)
SAP_WAPI_WORKITEM_RECIPIENTS
SAP_WAPI_GET_WORKITEM_DETAIL
19.When a infotype action is performed, an event should trigger, and a workflow
subsequently. How can I configure it?
Answer: Tcode SWEHR2
20.When a infotype action is performed, an FM should trigger, and a workflow
subsequently. How can I configure it?
Answer: Tcode SWEHR2
21.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
22.Workflow triggered, but it did not come to the user, why?
23.What are the difference between a Business Object and a Class?
24.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.
25.How to notify a user immediately in R/3 that he has got an email?
Mark the priority as 1 Express
26.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.
26.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.
27.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
28.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
29.Difference between Asynchronous and Synchronous methods in a task
A work item created as part of synchronous in locked until end of the method execution. But in