/AWS1/IF_BUP=>CREATERESTORETESTINGPLAN()¶
About CreateRestoreTestingPlan¶
Creates a restore testing plan.
The first of two steps to create a restore testing plan. After this request is successful, finish the procedure using CreateRestoreTestingSelection.
Method Signature¶
METHODS /AWS1/IF_BUP~CREATERESTORETESTINGPLAN
IMPORTING
!IV_CREATORREQUESTID TYPE /AWS1/BUPSTRING00 OPTIONAL
!IO_RESTORETESTINGPLAN TYPE REF TO /AWS1/CL_BUPRESTORETSTINGPLA00 OPTIONAL
!IT_TAGS TYPE /AWS1/CL_BUPSENSITIVESTRMAP_W=>TT_SENSITIVESTRINGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bupcrerestoretsting01
RAISING
/AWS1/CX_BUPALREADYEXISTSEX
/AWS1/CX_BUPCONFLICTEXCEPTION
/AWS1/CX_BUPINVPARAMVALUEEX
/AWS1/CX_BUPLIMITEXCEEDEDEX
/AWS1/CX_BUPMISSINGPARAMVALEX
/AWS1/CX_BUPSERVICEUNAVAILEX
/AWS1/CX_BUPCLIENTEXC
/AWS1/CX_BUPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_restoretestingplan TYPE REF TO /AWS1/CL_BUPRESTORETSTINGPLA00 /AWS1/CL_BUPRESTORETSTINGPLA00¶
A restore testing plan must contain a unique
RestoreTestingPlanNamestring you create and must contain aScheduleExpressioncron. You may optionally include aStartWindowHoursinteger and aCreatorRequestIdstring.The
RestoreTestingPlanNameis a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
Optional arguments:¶
iv_creatorrequestid TYPE /AWS1/BUPSTRING00 /AWS1/BUPSTRING00¶
This is a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
it_tags TYPE /AWS1/CL_BUPSENSITIVESTRMAP_W=>TT_SENSITIVESTRINGMAP TT_SENSITIVESTRINGMAP¶
The tags to assign to the restore testing plan.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bupcrerestoretsting01 /AWS1/CL_BUPCRERESTORETSTING01¶
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->createrestoretestingplan(
io_restoretestingplan = new /aws1/cl_buprestoretstingpla00(
io_recoverypointselection = new /aws1/cl_buprestoretstingrec00(
it_excludevaults = VALUE /aws1/cl_bupstringlist_w=>tt_stringlist(
( new /aws1/cl_bupstringlist_w( |string| ) )
)
it_includevaults = VALUE /aws1/cl_bupstringlist_w=>tt_stringlist(
( new /aws1/cl_bupstringlist_w( |string| ) )
)
it_recoverypointtypes = VALUE /aws1/cl_buprestoretstingrec01=>tt_restoretestingrecpttypelist(
( new /aws1/cl_buprestoretstingrec01( |string| ) )
)
iv_algorithm = |string|
iv_selectionwindowdays = 123
)
iv_restoretestingplanname = |string|
iv_scheduleexpression = |string|
iv_schedulexprsntimezone = |string|
iv_startwindowhours = 123
)
it_tags = VALUE /aws1/cl_bupsensitivestrmap_w=>tt_sensitivestringmap(
(
VALUE /aws1/cl_bupsensitivestrmap_w=>ts_sensitivestringmap_maprow(
value = new /aws1/cl_bupsensitivestrmap_w( |string| )
key = |string|
)
)
)
iv_creatorrequestid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_timestamp = lo_result->get_creationtime( ).
lv_string = lo_result->get_restoretestingplanarn( ).
lv_string = lo_result->get_restoretestingplanname( ).
ENDIF.