Академический Документы
Профессиональный Документы
Культура Документы
Daniel Chang
PC 10.0 Process
Control Continuous
Monitoring Framework
Content:
1 Specification of functionality ........................................................................................ 3
1.1 Business Logic............................................................................................... Error! Bookmark not defined.
1.2 Examples ........................................................................................................ Error! Bookmark not defined.
Take-Over Document
Page 2
2 Specification of functionality
2.1 Business Logic
Describe the function from the business perspective in your own wording. The focus is mainly on the end
user perspective.
GRC 10 uses BRF+, the standard Netweaver rule engine, to let users define additional filters and
calculations. You can configure very powerful processing using this rule engine, and our goal was to make it
easy to configure relatively simple rules (calculate an average of two fields, say, or compare two dates), and
yet provide a path to configure more complex rules if that is your need.
BRFplus is used in Configurable Business rule, BI Query, SAP Query and Event.
Additional Filter
Field Value Calculation
Pattern
Currency Conversion
Grouping/Aggregation
Send Notification
Trigger AM Job
Take-Over Document
Page 3
2.2 Examples
Specify system access and global parameters, which you usually use for testing the program. This should
also contain the example data, customizing data and also the data, which is posted to the system.
Description
Take-Over Document
Page 4
Select BRFplus object name (Field Name) to be compared with another BRFplus object names or use
existing formula button to create additional formula to check against BRFplus object names. You can create
complex Additional Filter logics using existing BRFplus object names and formula buttons as long as long as
there is no error found when click button Check Syntax.
Click button Check Syntax to make sure no errors found in formula entry.
During Business Rule execution time, if the data does not match the additional filter condition, then this
record will be ignored.
Take-Over Document
Page 5
Field Value Calculation is used to assign value to specific Calculated Field. The value can come from
single BRFplus object name or multi BRFplus object name with operation (i.e +, -, ..) or use formula button
to create more complex value.
For a calculated field deficiency (above), this tab lets you define the calculation necessary to compute its
value.
The Calculations tab (or corresponding wizard step when creating the rule) allows three types of
calculations: A Field Value calculation, a currency conversion, or grouping and aggregation (see screenshot
below).
Take-Over Document
Page 6
2.2.3 Pattern
Take-Over Document
Page 7
Take-Over Document
Page 8
Take-Over Document
Page 9
Take-Over Document
Page 10
3 Design of functionality
3.1 Flow logic
Describe the main logical flow in the program to help with analysis of the code, especially parts which have
been error prone in the past.
Take-Over Document
Page 11
The elementary internal BRFplus ABAP types can be found via the interface IF_FDT_TYPES:
ELEMENT_BOOLEAN
ELEMENT_CURRENCY (component of ELEMENT_AMOUNT)
ELEMENT_NUMBER
ELEMENT_TEXT
ELEMENT_UNIT (component of ELEMENT_QUANTITY)
ELEMENT_AMOUNT
ELEMENT_QUANTITY
ELEMENT_TIMEPOINT
Take-Over Document
Page 12
Take-Over Document
Page 13
Declaration Syntax
Example Values
TEXT
NUMBER
BOOLEAN
AMOUNT
lv_num_elt = 1234
ls_amount_eltnumber = 1000
ls_amount_eltcurrency = USD
=> 1000 USD
QUANTITY
TIMEPOINT
ls_quantity_eltnumber = 100
ls_amount_eltunit = cgm
=> 100 centigram
ls_ timept_eltdate =
20081224
=> 24th of Dec 2008.
Element Type
Max Length
Max Number
of Decimals
Only Positive
Values
Timepoint
Type
Char
Text
1-255
n/a
n/a
n/a
String
Text
255
n/a
n/a
n/a
Numc
Text
1-255
n/a
n/a
n/a
Int1
Number
1-3
Yes
n/a
Int, int4
Number
10
No
n/a
Int2
Number
No
n/a
Packed
Number
1-31
10
No
n/a
Float
Number
16
10
No
n/a
Decfloat16
Number
16
10
No
n/a
Decfloat34
Number
31
10
No
n/a
Date
Timepoint
n/a
n/a
n/a
Date
Time
Timepoint
n/a
n/a
n/a
Time
Timestamp (!)
Timepoint
n/a
n/a
n/a
UTC
Timestamp
Take-Over Document
Page 14
Take-Over Document
Page 15
Description
BRF+
BRFplus workbench
GRFN_AMF_FDT_EXPORT
GRFN_AMF_FDT_IMPORT
Description
GRFN_AM_UIBB_BRFP_INT
BRFplus Integration
V_ADDITIONAL_FILTER
V_BRFP_FUNC
V_DEF_HANDLERS
V_INPUT_BRFP_DATA
V_PATTERN
Description
GRFN_AM_FDT_XML_EXPORT
GRFN_AM_FDT_XML_IMPORT
Class: CL_GRFN_AM_BRFP
ADD_EXCEPT_ATTRS_ELEMENT
Take-Over Document
Page 16
CHECK_ACTION_NAME
CHECK_DT_ACTION_ENTERED
CHECK_RULE_DEEP
CHECK_SPECIAL_TOKEN
CHECK_SYSTEM_NAME_SPACE
CONSTRUCTOR
CONVERT_ABAPTYPE_TO_DDTYPE
CONVERT_INT_TO_EXT
CONVERT_INT_TO_EXT_QUANTITY
CREATE_ACT_CALL_PROCEDURE
CREATE_APPLICATION
CREATE_CALC_DEF_RULE_EXP
CREATE_CALL_PROCEDURE
CREATE_CONSTANT
CREATE_DATA_OBJECTS
CREATE_DATA_OBJECTS_AGAIN
CREATE_DDIC_STRUCTURE
CREATE_DT_EXPRESSION
CREATE_ELEMENT
CREATE_FORMULA
CREATE_LOOP_EXPRESSION
CREATE_RULE_EXPRESSION
CREATE_TRIGGER_ACT_RULE_EXPR
DELETE_RULE
DEQUEUE_DT_ID
DEQUEUE_EXPRESSION_ID
DEQUEUE_FUNCTION_ID
EXECUTE_RULE
GET_APPLICATION
GET_APPLICATION_DATA
GET_APPL_FUNCTION_ID
GET_BR_FIELDS_DT_COLUMNS
Take-Over Document
Page 17
RAISE_EXCEPTION
READ_SYSTEM_PARAMS
RETRIEVE_RULE
RETRIEVE_RULE_NORMAL_MODE
SAVE_ACTION
SAVE_DELETE_RULE
SAVE_DT_CONTENT
SAVE_RULE
SET_AM_NAME
SET_DECISION_TABLE_DATA
SET_ELEMENT_DATATYPE
SET_NEXT_FUNCTION_NAME
SET_EVENT_DECISION_RESULT
SET_PATTERN_DECISION_RESULT
SET_TEXT
SUBSTITUTE_STRINGS
SUBSTITUTE_STRINGS_FDTNAME
UPDATE_RULE
VALIDATE_RULE
Exception
Read System Installation
Retrieve function and Formula
Retrieve function and Formula - Normal Mode
Save BRF Action
Save BRF deleted function
Save decision table content
Save BRF function
Set Table/Structure/Expression name
Set decision table data
Set data type
Set new functionm name to generated new version brfplus
func
Set the Event decision table result
Set the Pattern decision table result to abap_true
Set text
Parse string to FDT UUID code - Internal format
Parse string to FDT Name - External format
Update BRF function and formula
Validate BRF function
Class: CL_GRFN_BRFP_CALC_DEF
Calculating Deficiency Function
IF_GRFN_BRFP~EXECUTE
Execute function, this method must be static
IF_GRFN_BRFP~CREATE_FUNCTION
Create
IF_GRFN_BRFP~CREATE_FUNCTION_AGAIN
Create new function ID due to formula change
Class: CL_GRFN_BRFP_PATTERN Pattern Function
IF_GRFN_BRFP~EXECUTE
Execute function, this method must be static
IF_GRFN_BRFP~CREATE_FUNCTION
Create
IF_GRFN_BRFP~CREATE_FUNCTION_AGAIN
Create new function ID due to formula change
Class: CL_GRFN_AM_BRFP_UI_MODE Set BRFplus UI in Edit Mode
IF_FDT_WD_UI_MODE~GET_CONFIGURATION
IF_FDT_WD_UI_MODE~GET_DESCRIPTION
IF_FDT_WD_UI_MODE~GET_NAME
IF_FDT_WD_UI_MODE~GET_UI_CONTEXT
CONSTRUCTOR
Take-Over Document
Page 18
IF_FDT_WD_UI_MODE~GET_CONFIGURATION
IF_FDT_WD_UI_MODE~GET_DESCRIPTION
IF_FDT_WD_UI_MODE~GET_NAME
IF_FDT_WD_UI_MODE~GET_UI_CONTEXT
CONSTRUCTOR
Description
GRFNBRFPATTRS
GRFNBRFPFUNC
HRP5350
Take-Over Document
Page 19
Description
1584124
1586597
1588564
1519164
Take-Over Document
Page 20
In case this note was not applied right after installation and the
Business Rule was created, then please use note 1588564 to install PC
10.0 BRF+ Application ID and Name.
Solution
Create Continuous Monitoring application ID for application name
'GRFN_AM_RUNTIME'.
This application id will be used to create BRFplus function in
Continuous Monitoring Business Rule processing.
The BRFplus application name and id must be created in installation
stage.
Please use attached file 'GRFN_AM_RUNTIME_BRF_APPL_ID.xml' to create
Continuous Monitorin BRFplus Application ID.
Take-Over Document
Page 21
Take-Over Document
Page 22
2. Use the following two programs to transfer the rest of BR BRF+ components to target systems
Run program GRFN_AM_FDT_XML_EXPORT to export Source systemBRF+ components
Run program GRFN_AM_FDT_XML_IMPORT to import BRF+ components to target system
Take-Over Document
Page 23
Take-Over Document
Page 24
Sample BRF+:
Business Rule: BR/90001197
You could find the corresponding BRFplus function in tcode BRF+ by following steps.
(1) Go to tcode BRF+
(2) Click Advance Search button
Take-Over Document
Page 25
Take-Over Document
Page 26
Take-Over Document
Page 27
Take-Over Document
Page 28
Amount Samples:
Take-Over Document
Page 29
Main Expression:
Take-Over Document
Page 30
Take-Over Document
Page 31
Simulation:
Take-Over Document
Page 32
Take-Over Document
Page 33
Take-Over Document
Page 34
Take-Over Document
Page 35