/AWS1/IF_SMC=>UPDATECONTACT()¶
About UpdateContact¶
Updates the contact or escalation plan specified.
Method Signature¶
METHODS /AWS1/IF_SMC~UPDATECONTACT
IMPORTING
!IV_CONTACTID TYPE /AWS1/SMCSSMCONTACTSARN OPTIONAL
!IV_DISPLAYNAME TYPE /AWS1/SMCCONTACTNAME OPTIONAL
!IO_PLAN TYPE REF TO /AWS1/CL_SMCPLAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_smcupdatecontactrslt
RAISING
/AWS1/CX_SMCACCESSDENIEDEX
/AWS1/CX_SMCDATAENCEXCEPTION
/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_contactid TYPE /AWS1/SMCSSMCONTACTSARN /AWS1/SMCSSMCONTACTSARN¶
The Amazon Resource Name (ARN) of the contact or escalation plan you're updating.
Optional arguments:¶
iv_displayname TYPE /AWS1/SMCCONTACTNAME /AWS1/SMCCONTACTNAME¶
The full name of the contact or escalation plan.
io_plan TYPE REF TO /AWS1/CL_SMCPLAN /AWS1/CL_SMCPLAN¶
A list of stages. A contact has an engagement plan with stages for specified contact channels. An escalation plan uses these stages to contact specified contacts.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_smcupdatecontactrslt /AWS1/CL_SMCUPDATECONTACTRSLT¶
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->updatecontact(
io_plan = new /aws1/cl_smcplan(
it_rotationids = VALUE /aws1/cl_smcssmcontactsarnls00=>tt_ssmcontactsarnlist(
( new /aws1/cl_smcssmcontactsarnls00( |string| ) )
)
it_stages = VALUE /aws1/cl_smcstage=>tt_stageslist(
(
new /aws1/cl_smcstage(
it_targets = VALUE /aws1/cl_smctarget=>tt_targetslist(
(
new /aws1/cl_smctarget(
io_channeltargetinfo = new /aws1/cl_smcchanneltargetinfo(
iv_contactchannelid = |string|
iv_retryintervalinminutes = 123
)
io_contacttargetinfo = new /aws1/cl_smccontacttargetinfo(
iv_contactid = |string|
iv_isessential = ABAP_TRUE
)
)
)
)
iv_durationinminutes = 123
)
)
)
)
iv_contactid = |string|
iv_displayname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.