Skip to content

/AWS1/IF_BDC=>GETBATCHEVALUATION()

About GetBatchEvaluation

Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.

Method Signature

METHODS /AWS1/IF_BDC~GETBATCHEVALUATION
  IMPORTING
    !IV_BATCHEVALUATIONID TYPE /AWS1/BDCBATCHEVALUATIONID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdcgetbatchevalrsp
  RAISING
    /AWS1/CX_BDCACCESSDENIEDEX
    /AWS1/CX_BDCINTERNALSERVEREX
    /AWS1/CX_BDCRESOURCENOTFOUNDEX
    /AWS1/CX_BDCTHROTTLINGEX
    /AWS1/CX_BDCUNAUTHORIZEDEX
    /AWS1/CX_BDCVALIDATIONEX
    /AWS1/CX_BDCCLIENTEXC
    /AWS1/CX_BDCSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_batchevaluationid TYPE /AWS1/BDCBATCHEVALUATIONID /AWS1/BDCBATCHEVALUATIONID

The unique identifier of the batch evaluation to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdcgetbatchevalrsp /AWS1/CL_BDCGETBATCHEVALRSP

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->getbatchevaluation( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_batchevaluationid = lo_result->get_batchevaluationid( ).
  lv_batchevaluationarn = lo_result->get_batchevaluationarn( ).
  lv_batchevaluationname = lo_result->get_batchevaluationname( ).
  lv_batchevaluationstatus = lo_result->get_status( ).
  lv_timestamp = lo_result->get_createdat( ).
  LOOP AT lo_result->get_evaluators( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_evaluatorid = lo_row_1->get_evaluatorid( ).
    ENDIF.
  ENDLOOP.
  lo_datasourceconfig = lo_result->get_datasourceconfig( ).
  IF lo_datasourceconfig IS NOT INITIAL.
    lo_cloudwatchlogssource = lo_datasourceconfig->get_cloudwatchlogs( ).
    IF lo_cloudwatchlogssource IS NOT INITIAL.
      LOOP AT lo_cloudwatchlogssource->get_servicenames( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_string = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_cloudwatchlogssource->get_loggroupnames( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_string = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      lo_cloudwatchfilterconfig = lo_cloudwatchlogssource->get_filterconfig( ).
      IF lo_cloudwatchfilterconfig IS NOT INITIAL.
        LOOP AT lo_cloudwatchfilterconfig->get_sessionids( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_string = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
        lo_sessionfilterconfig = lo_cloudwatchfilterconfig->get_timerange( ).
        IF lo_sessionfilterconfig IS NOT INITIAL.
          lv_timestamp = lo_sessionfilterconfig->get_starttime( ).
          lv_timestamp = lo_sessionfilterconfig->get_endtime( ).
        ENDIF.
      ENDIF.
    ENDIF.
  ENDIF.
  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_string = lo_cloudwatchoutputconfig->get_loggroupname( ).
      lv_string = lo_cloudwatchoutputconfig->get_logstreamname( ).
    ENDIF.
  ENDIF.
  lo_evaluationjobresults = lo_result->get_evaluationresults( ).
  IF lo_evaluationjobresults IS NOT INITIAL.
    lv_integer = lo_evaluationjobresults->get_numberofsessionscompltd( ).
    lv_integer = lo_evaluationjobresults->get_numberofsessinprogress( ).
    lv_integer = lo_evaluationjobresults->get_numberofsessionsfailed( ).
    lv_integer = lo_evaluationjobresults->get_totalnumberofsessions( ).
    lv_integer = lo_evaluationjobresults->get_numberofsessionsignored( ).
    LOOP AT lo_evaluationjobresults->get_evaluatorsummaries( ) into lo_row_4.
      lo_row_5 = lo_row_4.
      IF lo_row_5 IS NOT INITIAL.
        lv_string = lo_row_5->get_evaluatorid( ).
        lo_evaluatorstatistics = lo_row_5->get_statistics( ).
        IF lo_evaluatorstatistics IS NOT INITIAL.
          lv_double = lo_evaluatorstatistics->get_averagescore( ).
        ENDIF.
        lv_integer = lo_row_5->get_totalevaluated( ).
        lv_integer = lo_row_5->get_totalfailed( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  LOOP AT lo_result->get_errordetails( ) into lo_row_6.
    lo_row_7 = lo_row_6.
    IF lo_row_7 IS NOT INITIAL.
      lv_string = lo_row_7->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_batchevaluationdescript = lo_result->get_description( ).
  lv_timestamp = lo_result->get_updatedat( ).
ENDIF.