Tools for Generating Procedures for Scripted Detection Methods

Generating an Implementation for Scripted Detection Methods (ABAP)

You can use the Manage Detection Methods app to generate example implementations of the selection, execution and additional information procedures that can be used to create an ABAP-managed scripted detection method.

From the Manage Detection Methods screen, you have two options:
  • Choose Generate → Implementation → Single Class, or

  • Choose Generate → Implementation → Expert Mode.

Single Class

In this dialog, there are no additional settings for the individual procedures, therefore all procedures (selection, execution and additional information) are generated in one single class.

If the package you select is a local package, no transport request can be defined as the input fields are disabled (it is not possible to transport local objects, so this prohibits empty transport requests to be created).

Expert Mode

In this dialog, you can assign a package and a class name for each procedure. Therefore, the procedures can be generated separately in different classes if different class names are provided. It is possible to only generate one or two procedures by leaving the others blank.

If all selected packages are local packages, no transport request can be defined as the input fields are disabled. If at least one of the selected packages is not a local package, a transport request is needed and can be entered.

Input for Both Options

  1. Select an entry in field Detection Object Type.

    The detection object type is required to determine the key fields used in the signatures of the procedures, and to determine the target packages into which the procedures will be generated.

    The detection object type must be maintained in Customizing activity Maintain Detection and Investigation Data Model.

  2. The selection in field Package will only have entries once the detection object type is selected.

    The packages must be assigned in Customizing activity Assign Packages for Detection Methods.

  3. Enter a unique class name in field the field Class.

    This will be the class name for the class that is going to be generated, which contains the procedures.

  4. Parameters are optional, and depend on the detection object type you selected.

  5. Select a transport request or create a new one because a class is generated in the back end.

    The selection in field Request shows all the open transport requests for your user.

    If you need to make a new transport request, turn the switch ON and enter a description.

  6. Choose Generate.

    In the dialog box displayed, you can click on the classes and display the details of their definitions.

  7. If you choose Transfer, the Create Scripted Detection Method (ABAP) dialog box is displayed, and all the procedure information will have been transferred to the respective fields. You simply have to give your detection method a technical ID and name (description) and you can create a detection method immediately.

    If you choose Cancel, the Implementation Generated dialog box is closed.