/AWS1/IF_DRS=>UPDATERECOVERYPLAN()¶
About UpdateRecoveryPlan¶
Updates a Recovery Plan's name or description.
Method Signature¶
METHODS /AWS1/IF_DRS~UPDATERECOVERYPLAN
IMPORTING
!IV_RECOVERYPLANARN TYPE /AWS1/DRSSTRICTDRSARN OPTIONAL
!IV_NAME TYPE /AWS1/DRSRECOVERYPLANNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/DRSRECOVERYPLANDESC OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_drsupdaterecplanrsp
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_recoveryplanarn TYPE /AWS1/DRSSTRICTDRSARN /AWS1/DRSSTRICTDRSARN¶
The ARN of the Recovery Plan to update.
Optional arguments:¶
iv_name TYPE /AWS1/DRSRECOVERYPLANNAME /AWS1/DRSRECOVERYPLANNAME¶
The name of a Recovery Plan.
iv_description TYPE /AWS1/DRSRECOVERYPLANDESC /AWS1/DRSRECOVERYPLANDESC¶
The description of a Recovery Plan.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_drsupdaterecplanrsp /AWS1/CL_DRSUPDATERECPLANRSP¶
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->updaterecoveryplan(
iv_description = |string|
iv_name = |string|
iv_recoveryplanarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_recoveryplan = lo_result->get_recoveryplan( ).
IF lo_recoveryplan IS NOT INITIAL.
lv_strictdrsarn = lo_recoveryplan->get_recoveryplanarn( ).
lv_recoveryplanname = lo_recoveryplan->get_name( ).
lv_recoveryplandescription = lo_recoveryplan->get_description( ).
lv_recoveryplanstatus = lo_recoveryplan->get_status( ).
lv_iso8601datetimestring = lo_recoveryplan->get_createdat( ).
lv_iso8601datetimestring = lo_recoveryplan->get_updatedat( ).
LOOP AT lo_recoveryplan->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.