/AWS1/IF_SMC=>CREATEROTATIONOVERRIDE()¶
About CreateRotationOverride¶
Creates an override for a rotation in an on-call schedule.
Method Signature¶
METHODS /AWS1/IF_SMC~CREATEROTATIONOVERRIDE
IMPORTING
!IV_ROTATIONID TYPE /AWS1/SMCSSMCONTACTSARN OPTIONAL
!IT_NEWCONTACTIDS TYPE /AWS1/CL_SMCROTATIONOVERRIDE00=>TT_ROTATIONOVERRIDECONTACTSA00 OPTIONAL
!IV_STARTTIME TYPE /AWS1/SMCDATETIME OPTIONAL
!IV_ENDTIME TYPE /AWS1/SMCDATETIME OPTIONAL
!IV_IDEMPOTENCYTOKEN TYPE /AWS1/SMCIDEMPOTENCYTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_smccrerotationoverr01
RAISING
/AWS1/CX_SMCACCESSDENIEDEX
/AWS1/CX_SMCINTERNALSERVEREX
/AWS1/CX_SMCRESOURCENOTFOUNDEX
/AWS1/CX_SMCSERVICEQUOTAEXCDEX
/AWS1/CX_SMCTHROTTLINGEX
/AWS1/CX_SMCVALIDATIONEX
/AWS1/CX_SMCCLIENTEXC
/AWS1/CX_SMCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_rotationid TYPE /AWS1/SMCSSMCONTACTSARN /AWS1/SMCSSMCONTACTSARN¶
The Amazon Resource Name (ARN) of the rotation to create an override for.
it_newcontactids TYPE /AWS1/CL_SMCROTATIONOVERRIDE00=>TT_ROTATIONOVERRIDECONTACTSA00 TT_ROTATIONOVERRIDECONTACTSA00¶
The Amazon Resource Names (ARNs) of the contacts to replace those in the current on-call rotation with.
If you want to include any current team members in the override shift, you must include their ARNs in the new contact ID list.
iv_starttime TYPE /AWS1/SMCDATETIME /AWS1/SMCDATETIME¶
The date and time when the override goes into effect.
iv_endtime TYPE /AWS1/SMCDATETIME /AWS1/SMCDATETIME¶
The date and time when the override ends.
Optional arguments:¶
iv_idempotencytoken TYPE /AWS1/SMCIDEMPOTENCYTOKEN /AWS1/SMCIDEMPOTENCYTOKEN¶
A token that ensures that the operation is called only once with the specified details.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_smccrerotationoverr01 /AWS1/CL_SMCCREROTATIONOVERR01¶
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->createrotationoverride(
it_newcontactids = VALUE /aws1/cl_smcrotationoverride00=>tt_rotationoverridecontactsa00(
( new /aws1/cl_smcrotationoverride00( |string| ) )
)
iv_endtime = '20150101000000.0000000'
iv_idempotencytoken = |string|
iv_rotationid = |string|
iv_starttime = '20150101000000.0000000'
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_uuid = lo_result->get_rotationoverrideid( ).
ENDIF.