Additional Information Procedure: S_ADDITIONAL_INFO

Required Signature

Input Parameters

The input parameters are structured as follows:
  • it_result

    • company_code, TYPE c LENGTH 4

    • document_number, TYPE c LENGTH 10

    • fiscal_year, TYPE n LENGTH 4

    • item_number, TYPE n LENGTH 3

    • detection_result, TYPE fra_det_result

    • risk_amount, TYPE fra_amount

    • currency, TYPE waers

An additional option (not used in the example) is to include the PARAMETERS table in the input (as shown in the execution procedure). You can use this parameter (the name is required) to make parameter values available in the additional information procedure to optimize performance or to handle currencies.

The data table (here IT_RESULT) must have the same table type as those of the output table of the Execution Procedure: S_EXECUTION.

Output Parameters

The output parameters are structured as follows:
  • et_text
    • company_code, TYPE c LENGTH 4

    • document_number, TYPE c LENGTH 10

    • fiscal_year, TYPE n LENGTH 4

    • item_number, TYPE n LENGTH 3

    • text, TYPE fra_text

    • msgid, TYPE symsgid

    • msgno, TYPE symsgno

    • msgv1, TYPE symsgv

    • msgv2, TYPE symsgv

    • msgv3, TYPE symsgv

    • msgv4, TYPE symsgv

    • msgv1_fc, TYPE fra_fld_cat_fieldname

    • msgv2_fc, TYPE fra_fld_cat_fieldname

    • msgv3_fc, TYPE fra_fld_cat_fieldname

    • msgv4_fc, TYPE fra_fld_cat_fieldname

The table ET_TEXT (the name is required) contains additional texts that explain the detection result. It consists of the key fields of the detection object as specified in the detection object type and the required field TEXT (data element FRA_TEXT).

You can write more than one entry for the same detection object into this table.

ET_TEXT is augmented with fields that allow you to do the following:

  • Output an AS ABAP T100 message (see transaction SE91) instead of a static message in TEXT. A T100 message is translatable. The message is presented to each user in the user’s current language, assuming that the translated text is available in the AS ABAP system.

  • Apply localized formatting to numbers, amounts, and dates and times in T100 messages. You can designate a field in customizing activity Maintain Detection and Investigation Data Model to serve as a template for formatting the output data.

The following extra properties are available in ET_TEXT:

  • MSGID: The message class of the T100 message in transaction SE91

  • MSGNO: The message number.

  • MSGV1, MSGV2, MSGV3, MSGV4: Optional – the values for up to four possible variables that may be inserted into a T100 message text.

  • MSGV1_FC, MSGV2_FC, MSGV3_FC, MSGV4_FC: Optional – the names of fields in Customizing (see above) that serve as templates for formatting numbers, amounts, or dates and times in the MSGVn message variables.

    Note that the source domain of the fields is set implicitly since it is inherited from the investigation object type of the detection method. The fields that you name here must therefore be present in the source domain of the investigation object type.

The T100 message fields of ET_TEXT are also available in Execution procedures. However, messages are usually issued from the additional information procedure.

If the additional information procedure should also deliver the risk amount and the currency, then you can use an additional output parameter, ET_RESULT (name required):
  • et_result

    • company_code, TYPE c LENGTH 4

    • document_number, TYPE c LENGTH 10

    • fiscal_year, TYPE n LENGTH 4

    • item_number, TYPE n LENGTH 3

    • detection_result, TYPE fra_det_result

    • risk_amount, TYPE fra_amount

    • currency, TYPE waers

The fields must match the output of the execution procedure.

If you choose this option, then the additional information procedure must fill the field DETECTION_RESULT.

Both the texts and the risk amount plus currency can also be provided by the execution procedure. In that case, the execution procedure must have an output parameter ET_TEXT as shown above, and the result table must include the fields RISK_AMOUNT and CURRENCY. If this functionality is included in the execution procedure, then you must remember that the logic to determine the texts and the risk amount will also be executed during calibration, even though this output is not used there.

It doesn't make sense to use an additional info procedure in this case.