/AWS1/IF_BDC=>LISTBATCHEVALUATIONS()¶
About ListBatchEvaluations¶
Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.
Method Signature¶
METHODS /AWS1/IF_BDC~LISTBATCHEVALUATIONS
IMPORTING
!IV_MAXRESULTS TYPE /AWS1/BDCINTEGER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/BDCSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdclistbatchevalsrsp
RAISING
/AWS1/CX_BDCACCESSDENIEDEX
/AWS1/CX_BDCINTERNALSERVEREX
/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¶
Optional arguments:¶
iv_maxresults TYPE /AWS1/BDCINTEGER /AWS1/BDCINTEGER¶
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.
iv_nexttoken TYPE /AWS1/BDCSTRING /AWS1/BDCSTRING¶
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdclistbatchevalsrsp /AWS1/CL_BDCLISTBATCHEVALSRSP¶
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->listbatchevaluations(
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_batchevaluations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_batchevaluationid = lo_row_1->get_batchevaluationid( ).
lv_batchevaluationarn = lo_row_1->get_batchevaluationarn( ).
lv_batchevaluationname = lo_row_1->get_batchevaluationname( ).
lv_batchevaluationstatus = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_batchevaluationdescript = lo_row_1->get_description( ).
LOOP AT lo_row_1->get_evaluators( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_evaluatorid = lo_row_3->get_evaluatorid( ).
ENDIF.
ENDLOOP.
lo_evaluationjobresults = lo_row_1->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_row_1->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_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.