Skip to content

/AWS1/CL_R5A=>GETPLANEVALUATIONSTATUS()

About GetPlanEvaluationStatus

Retrieves the evaluation status of a Region switch plan. The evaluation status provides information about the last time the plan was evaluated and any warnings or issues detected.

Method Signature

IMPORTING

Required arguments:

iv_planarn TYPE /AWS1/R5APLANARN /AWS1/R5APLANARN

The Amazon Resource Name (ARN) of the Region switch plan to retrieve evaluation status for.

Optional arguments:

iv_maxresults TYPE /AWS1/R5AMAXRESULTS /AWS1/R5AMAXRESULTS

The number of objects that you want to return with this call.

iv_nexttoken TYPE /AWS1/R5ANEXTTOKEN /AWS1/R5ANEXTTOKEN

Specifies that you want to receive the next page of results. Valid only if you received a nextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's nextToken response to request the next page of results.

RETURNING

oo_output TYPE REF TO /aws1/cl_r5agetplanevalstatrsp /AWS1/CL_R5AGETPLANEVALSTATRSP

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->/aws1/if_r5a~getplanevaluationstatus(
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_planarn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_planarn = lo_result->get_planarn( ).
  lv_timestamp = lo_result->get_lastevaluationtime( ).
  lv_string = lo_result->get_lastevaluatedversion( ).
  lv_region = lo_result->get_region( ).
  lv_evaluationstatus = lo_result->get_evaluationstate( ).
  LOOP AT lo_result->get_warnings( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_minimalworkflow = lo_row_1->get_workflow( ).
      IF lo_minimalworkflow IS NOT INITIAL.
        lv_executionaction = lo_minimalworkflow->get_action( ).
        lv_string = lo_minimalworkflow->get_name( ).
      ENDIF.
      lv_string = lo_row_1->get_version( ).
      lv_stepname = lo_row_1->get_stepname( ).
      lv_resourcearn = lo_row_1->get_resourcearn( ).
      lv_resourcewarningstatus = lo_row_1->get_warningstatus( ).
      lv_timestamp = lo_row_1->get_warningupdatedtime( ).
      lv_string = lo_row_1->get_warningmessage( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.