Skip to content

/AWS1/IF_BDO=>GETONLINEEVALUATIONCONFIG()

About GetOnlineEvaluationConfig

Retrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status.

Method Signature

METHODS /AWS1/IF_BDO~GETONLINEEVALUATIONCONFIG
  IMPORTING
    !IV_ONLINEEVALUATIONCONFIGID TYPE /AWS1/BDOONLINEEVALCONFIGID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdogetonlineevalcfg01
  RAISING
    /AWS1/CX_BDOACCESSDENIEDEX
    /AWS1/CX_BDOINTERNALSERVEREX
    /AWS1/CX_BDORESOURCENOTFOUNDEX
    /AWS1/CX_BDOTHROTTLINGEX
    /AWS1/CX_BDOVALIDATIONEX
    /AWS1/CX_BDOCLIENTEXC
    /AWS1/CX_BDOSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_onlineevaluationconfigid TYPE /AWS1/BDOONLINEEVALCONFIGID /AWS1/BDOONLINEEVALCONFIGID

The unique identifier of the online evaluation configuration to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdogetonlineevalcfg01 /AWS1/CL_BDOGETONLINEEVALCFG01

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->getonlineevaluationconfig( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_onlineevaluationconfiga = lo_result->get_onlineevalconfigarn( ).
  lv_onlineevaluationconfigi = lo_result->get_onlineevaluationconfigid( ).
  lv_evaluationconfigname = lo_result->get_onlineevalconfigname( ).
  lv_evaluationconfigdescrip = lo_result->get_description( ).
  lo_rule = lo_result->get_rule( ).
  IF lo_rule IS NOT INITIAL.
    lo_samplingconfig = lo_rule->get_samplingconfig( ).
    IF lo_samplingconfig IS NOT INITIAL.
      lv_samplingpercentage = lo_samplingconfig->get_samplingpercentage( ).
    ENDIF.
    LOOP AT lo_rule->get_filters( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_key( ).
        lv_filteroperator = lo_row_1->get_operator( ).
        lo_filtervalue = lo_row_1->get_value( ).
        IF lo_filtervalue IS NOT INITIAL.
          lv_string = lo_filtervalue->get_stringvalue( ).
          lv_double = lo_filtervalue->get_doublevalue( ).
          lv_boolean = lo_filtervalue->get_booleanvalue( ).
        ENDIF.
      ENDIF.
    ENDLOOP.
    lo_sessionconfig = lo_rule->get_sessionconfig( ).
    IF lo_sessionconfig IS NOT INITIAL.
      lv_integer = lo_sessionconfig->get_sessiontimeoutminutes( ).
    ENDIF.
  ENDIF.
  lo_datasourceconfig = lo_result->get_datasourceconfig( ).
  IF lo_datasourceconfig IS NOT INITIAL.
    lo_cloudwatchlogsinputconf = lo_datasourceconfig->get_cloudwatchlogs( ).
    IF lo_cloudwatchlogsinputconf IS NOT INITIAL.
      LOOP AT lo_cloudwatchlogsinputconf->get_loggroupnames( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_loggroupname = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_cloudwatchlogsinputconf->get_servicenames( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_servicename = lo_row_5->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDIF.
  LOOP AT lo_result->get_evaluators( ) into lo_row_6.
    lo_row_7 = lo_row_6.
    IF lo_row_7 IS NOT INITIAL.
      lv_evaluatorid = lo_row_7->get_evaluatorid( ).
    ENDIF.
  ENDLOOP.
  lo_outputconfig = lo_result->get_outputconfig( ).
  IF lo_outputconfig IS NOT INITIAL.
    lo_cloudwatchoutputconfig = lo_outputconfig->get_cloudwatchconfig( ).
    IF lo_cloudwatchoutputconfig IS NOT INITIAL.
      lv_loggroupname = lo_cloudwatchoutputconfig->get_loggroupname( ).
    ENDIF.
  ENDIF.
  lv_rolearn = lo_result->get_evalexecutionrolearn( ).
  lv_onlineevaluationconfigs = lo_result->get_status( ).
  lv_onlineevaluationexecuti = lo_result->get_executionstatus( ).
  lv_timestamp = lo_result->get_createdat( ).
  lv_timestamp = lo_result->get_updatedat( ).
  lv_string = lo_result->get_failurereason( ).
ENDIF.