/AWS1/IF_WAD=>UPDATEAGENTRECSTATUS()¶
About UpdateAgentRecommendationStatus¶
Updates the status of a recommendation to track its progress through the implementation lifecycle.
Method Signature¶
METHODS /AWS1/IF_WAD~UPDATEAGENTRECSTATUS
IMPORTING
!IV_RECOMMENDATIONARN TYPE /AWS1/WADAGENTRECARN OPTIONAL
!IV_STATUS TYPE /AWS1/WADRECOMMENDATIONSTATUS OPTIONAL
!IV_UPDATEREASON TYPE /AWS1/WADSENSITIVESTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wadupdagentrecstatrsp
RAISING
/AWS1/CX_WADACCESSDENIEDEX
/AWS1/CX_WADINTERNALSERVEREX
/AWS1/CX_WADRESOURCENOTFOUNDEX
/AWS1/CX_WADTHROTTLINGEX
/AWS1/CX_WADVALIDATIONEX
/AWS1/CX_WADCLIENTEXC
/AWS1/CX_WADSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_recommendationarn TYPE /AWS1/WADAGENTRECARN /AWS1/WADAGENTRECARN¶
The Amazon Resource Name (ARN) of the recommendation to update.
iv_status TYPE /AWS1/WADRECOMMENDATIONSTATUS /AWS1/WADRECOMMENDATIONSTATUS¶
The new status to assign to the recommendation.
Optional arguments:¶
iv_updatereason TYPE /AWS1/WADSENSITIVESTRING /AWS1/WADSENSITIVESTRING¶
A free-text reason explaining this status update.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wadupdagentrecstatrsp /AWS1/CL_WADUPDAGENTRECSTATRSP¶
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->updateagentrecstatus(
iv_recommendationarn = |string|
iv_status = |string|
iv_updatereason = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.