Skip to content

/AWS1/IF_WAD=>PUTAGENTRECFEEDBACK()

About PutAgentRecommendationFeedback

Submits user feedback on a recommendation to help improve future optimization suggestions and track implementation outcomes.

Method Signature

METHODS /AWS1/IF_WAD~PUTAGENTRECFEEDBACK
  IMPORTING
    !IV_RECOMMENDATIONARN TYPE /AWS1/WADAGENTRECARN OPTIONAL
    !IV_TYPE TYPE /AWS1/WADRECFEEDBACKTYPE OPTIONAL
    !IV_FEEDBACKCATEGORY TYPE /AWS1/WADFEEDBACKCATEGORY OPTIONAL
    !IV_COMMENTS TYPE /AWS1/WADSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wadputagntrecfdbckrsp
  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 provide feedback for.

iv_type TYPE /AWS1/WADRECFEEDBACKTYPE /AWS1/WADRECFEEDBACKTYPE

The type of feedback being provided.

Optional arguments:

iv_feedbackcategory TYPE /AWS1/WADFEEDBACKCATEGORY /AWS1/WADFEEDBACKCATEGORY

Optional category classifying the nature of the feedback.

iv_comments TYPE /AWS1/WADSTRING /AWS1/WADSTRING

Optional comments providing additional context about the feedback.

RETURNING

oo_output TYPE REF TO /aws1/cl_wadputagntrecfdbckrsp /AWS1/CL_WADPUTAGNTRECFDBCKRSP

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->putagentrecfeedback(
  iv_comments = |string|
  iv_feedbackcategory = |string|
  iv_recommendationarn = |string|
  iv_type = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.