Scripted Detection Methods
One way to implement detection methods is to create ABAP-managed database procedures (AMDPs) that execute the detection logic.
Implementing detection methods with AMDPs offers more flexibility and power in implementing detection logic. In AMDPs, you can implement detection logic with all of the nuances and features that you wish to provide. The cost, however, is more development work if you wish to implement a scripted detection method.
Implementing a detection method with ABAP-managed database procedures consists of two steps:
-
Development of the ABAP-managed database procedures that implement the detection logic in SAP HANA. To ensure consistency generate the necessary classes and methods from the Manage Detection Methods app. You can either put all three methods of a detection method into one class or you can use separate classes for selection, execution and addition info.
-
Definition of the detection method in SAP Business Integrity Screening. This definition makes the preceding procedures known to the application and assigns additional properties such as the detection object type and a description.
The overall input and output of a detection method are the following:
Input parameters
-
A table of detection objects to be processed (working set). A detection object is identified by a combination of one to fifteen key fields, according to the definition of the detection object type
-
Attributes of the detection objects that are to be processed
-
Detection method parameter values
Output parameters
-
A table of detection results, consisting of the following:
-
The identification of the detection object
-
The detection result value
-
The risk amount and currency
-
Texts that further explain the detection result.
-