/AWS1/IF_IOT=>UPDATECOMMAND()¶
About UpdateCommand¶
Update information about a command or mark a command for deprecation.
Method Signature¶
METHODS /AWS1/IF_IOT~UPDATECOMMAND
IMPORTING
!IV_COMMANDID TYPE /AWS1/IOTCOMMANDID OPTIONAL
!IV_DISPLAYNAME TYPE /AWS1/IOTDISPLAYNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IOTCOMMANDDESCRIPTION OPTIONAL
!IV_DEPRECATED TYPE /AWS1/IOTDEPRECATIONFLAG OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotupdatecommandrsp
RAISING
/AWS1/CX_IOTCONFLICTEXCEPTION
/AWS1/CX_IOTINTERNALSERVEREX
/AWS1/CX_IOTRESOURCENOTFOUNDEX
/AWS1/CX_IOTTHROTTLINGEX
/AWS1/CX_IOTVALIDATIONEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_commandid TYPE /AWS1/IOTCOMMANDID /AWS1/IOTCOMMANDID¶
The unique identifier of the command to be updated.
Optional arguments:¶
iv_displayname TYPE /AWS1/IOTDISPLAYNAME /AWS1/IOTDISPLAYNAME¶
The new user-friendly name to use in the console for the command.
iv_description TYPE /AWS1/IOTCOMMANDDESCRIPTION /AWS1/IOTCOMMANDDESCRIPTION¶
A short text description of the command.
iv_deprecated TYPE /AWS1/IOTDEPRECATIONFLAG /AWS1/IOTDEPRECATIONFLAG¶
A boolean that you can use to specify whether to deprecate a command.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotupdatecommandrsp /AWS1/CL_IOTUPDATECOMMANDRSP¶
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->updatecommand(
iv_commandid = |string|
iv_deprecated = ABAP_TRUE
iv_description = |string|
iv_displayname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_commandid = lo_result->get_commandid( ).
lv_displayname = lo_result->get_displayname( ).
lv_commanddescription = lo_result->get_description( ).
lv_deprecationflag = lo_result->get_deprecated( ).
lv_datetype = lo_result->get_lastupdatedat( ).
ENDIF.