Skip to content

/AWS1/CL_R5A=>LISTPLANEXECUTIONS()

About ListPlanExecutions

Lists the executions of a Region switch plan. This operation returns information about both current and historical executions.

Method Signature

IMPORTING

Required arguments:

iv_planarn TYPE /AWS1/R5APLANARN /AWS1/R5APLANARN

The ARN for the plan.

Optional arguments:

iv_maxresults TYPE /AWS1/R5ALISTEXECSMAXRESULTS /AWS1/R5ALISTEXECSMAXRESULTS

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

iv_nexttoken TYPE /AWS1/R5ASTRING /AWS1/R5ASTRING

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.

iv_state TYPE /AWS1/R5AEXECUTIONSTATE /AWS1/R5AEXECUTIONSTATE

The state of the plan execution. For example, the plan execution might be In Progress.

RETURNING

oo_output TYPE REF TO /aws1/cl_r5alistplanexecsrsp /AWS1/CL_R5ALISTPLANEXECSRSP

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~listplanexecutions(
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_planarn = |string|
  iv_state = |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_items( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_planarn = lo_row_1->get_planarn( ).
      lv_executionid = lo_row_1->get_executionid( ).
      lv_string = lo_row_1->get_version( ).
      lv_timestamp = lo_row_1->get_updatedat( ).
      lv_string = lo_row_1->get_comment( ).
      lv_timestamp = lo_row_1->get_starttime( ).
      lv_timestamp = lo_row_1->get_endtime( ).
      lv_executionmode = lo_row_1->get_mode( ).
      lv_executionstate = lo_row_1->get_executionstate( ).
      lv_executionaction = lo_row_1->get_executionaction( ).
      lv_string = lo_row_1->get_executionregion( ).
      lv_duration = lo_row_1->get_actualrecoverytime( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nexttoken( ).
ENDIF.