Professional Documents
Culture Documents
BRF Settings PDF
BRF Settings PDF
Thomas Kosog
ASUG Annual Conference
Session 0801
May 14, 2012
Agenda - SAP Business Workflow and BRFplus
• Overview of an example material master process
• Overview of BRFplus (recommended release level: NW 7.02 SP 11)
• BRFplus in Detail
• Function, Ruleset, Rule, Expression, Action
• ABAP program to start the process
• Business Object Type
• Event Queue
• Steps in the SAP Business Workflow
• BOR method with BRFplus function call
• Generated BRFplus Task with generated ABAP Object Class
• Summary
Workflow Background Step “ZB1001006 - Get Material data and find Material Owner”
Container Call BRF plus function “Find Approvers” with Decision Table
- Material-Number (Material Type & Branch Material Owner)
- Material-Type
- Unit of Measure Dialog Step for Material Owner with Attachment – Display Material.
- Old Material BOR method calls BRF plus function “Determine BISMT” - Decision Tree
- Industry - Present result in Pop-Up with suggested BISMT value
- Material Owners Material Owner provided value for BISMT
Background Step
Call BAPI to add BISMT to Material Generated BRFplus Task
-Raise temporary ERROR, if it fails “Send Email”
BRFplus Application
Function with Signature (Input data and result) Returned Result
GUID
used in
ABAP
program
to call
BRFplus
Drop Down Menu function
Test
Import
Export
Note: This event did not occur yet, since the step to call the
ABAP statement “Commit Work” was not added to this
BRFplus function yet.
A BRFplus function
needs at least
one ruleset.
Decision Table
Predefined BRFplus
action for Workflow
- Start Workflow Instance
- Trigger Object Event
UoM BISMT =
Others
KG Others
Type Type
Hint: This is only an example. This is NOT how SAP recommends to use the field MARA_BISMT
BOR Event
Event Queue
Call
BRFplus
function
BAPI call
Each BRFplus
function has its own
unique GUID
Hint: Set a breakpoint and run the program to see the ABAP code, which was generated by BRFplus
This BRFplus
function provides
a result. These
users need to be
checked and changed
into Workflow Agents.
This snap shot was taken after the “event-queue” job was started
Similar to the
„Workflow event activation‟,
this configuration for using
the Event Queue needs to be
transported to the QA or
productive system.
Hint:
Start with the SAP
default setting for
“Events per minute”
and then increase
this number by 50%
once (or twice)
and test max.
Background job for processing the event queue throughput
The event queue is read by a background job at regular intervals. of tRFC
The events found are delivered to the registered event receivers.
Configuration setting on each system:
- Schedule background job
- Define operating mode
Specify the events per read access, which are to be processed via the event queue.
Specify the time interval between two read accesses, if there are events in the queue.
Specify the time interval before the event queue is next checked.
This time interval is adhered to if there are no more events after the queue is read.
© 2011 SAP AG. All rights reserved. 23
Simple Example for a Dialog Workitem with Result of BRFplus Decision Tree
3. BRFplus Workbench
CONTINUE
creates a Task
1. with BRFplus
button
2. Manually copy
GUID of
BRFplus Function
Look at class
with transaction
SE24 to see how
the Method reads
task container
and calls
BRFplus
function with
import and export
parameters
ABAP Program
calling Business Object Method
BRFplus function to collect data for Workflow Container
“Check Material” and to call BRFplus function “Find Owners”.
to trigger Method will also check user and convert
Business Object Events them to Workflow Agents.
Generated Task
based on
generated ABAP Object Class
to call BRFplus function “Send Email”
Thomas Kosog
Principal Workflow Consultant
SAP Chicago