Skip to content

/AWS1/IF_DRS=>RETRYRECOVERYPLANEXECSTEP()

About RetryRecoveryPlanExecutionStep

Retries a failed SERVER type execution step.

Method Signature

METHODS /AWS1/IF_DRS~RETRYRECOVERYPLANEXECSTEP
  IMPORTING
    !IV_RECOVERYPLANEXECSTEPARN TYPE /AWS1/DRSSTRICTDRSARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_drsretryrecplnxteprsp
  RAISING
    /AWS1/CX_DRSACCESSDENIEDEX
    /AWS1/CX_DRSCONFLICTEXCEPTION
    /AWS1/CX_DRSINTERNALSERVEREX
    /AWS1/CX_DRSRESOURCENOTFOUNDEX
    /AWS1/CX_DRSTHROTTLINGEX
    /AWS1/CX_DRSUNINITIALIZEDACEX
    /AWS1/CX_DRSVALIDATIONEX
    /AWS1/CX_DRSCLIENTEXC
    /AWS1/CX_DRSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_recoveryplanexecsteparn TYPE /AWS1/DRSSTRICTDRSARN /AWS1/DRSSTRICTDRSARN

The ARN of the execution step to retry.

RETURNING

oo_output TYPE REF TO /aws1/cl_drsretryrecplnxteprsp /AWS1/CL_DRSRETRYRECPLNXTEPRSP

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

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_recoveryplanexecutionst = lo_result->get_recoveryplanexecstep( ).
  IF lo_recoveryplanexecutionst IS NOT INITIAL.
    lv_strictdrsarn = lo_recoveryplanexecutionst->get_recoveryplanexecsteparn( ).
    lv_recoveryplansteporder = lo_recoveryplanexecutionst->get_stepindex( ).
    lv_recoveryplanexecutionst_1 = lo_recoveryplanexecutionst->get_status( ).
    lv_recoveryplanstepname = lo_recoveryplanexecutionst->get_stepname( ).
    lo_recoveryplanexecutionst_2 = lo_recoveryplanexecutionst->get_configuration( ).
    IF lo_recoveryplanexecutionst_2 IS NOT INITIAL.
      lo_executionserverstepconf = lo_recoveryplanexecutionst_2->get_executionserverstepconf( ).
      IF lo_executionserverstepconf IS NOT INITIAL.
        LOOP AT lo_executionserverstepconf->get_servers( ) into lo_row.
          lo_row_1 = lo_row.
          IF lo_row_1 IS NOT INITIAL.
            lv_sourceserverarn = lo_row_1->get_serverarn( ).
            lv_recoveryplanserverimpac = lo_row_1->get_impactlevel( ).
            lv_jobid = lo_row_1->get_jobid( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lo_waitstepconfiguration = lo_recoveryplanexecutionst_2->get_waitstepconfiguration( ).
      IF lo_waitstepconfiguration IS NOT INITIAL.
        lv_waitdurationminutes = lo_waitstepconfiguration->get_waitdurationminutes( ).
      ENDIF.
    ENDIF.
    lo_errordetail = lo_recoveryplanexecutionst->get_errordetail( ).
    IF lo_errordetail IS NOT INITIAL.
      lv_string = lo_errordetail->get_message( ).
      lv_string = lo_errordetail->get_code( ).
    ENDIF.
    lv_strictlypositiveinteger = lo_recoveryplanexecutionst->get_attempt( ).
    lv_iso8601datetimestring = lo_recoveryplanexecutionst->get_createdat( ).
    lv_iso8601datetimestring = lo_recoveryplanexecutionst->get_updatedat( ).
  ENDIF.
ENDIF.