Skip to content

/AWS1/CL_GUR=>PUTRECOMMENDATIONFEEDBACK()

About PutRecommendationFeedback

Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.

Method Signature

IMPORTING

Required arguments:

iv_codereviewarn TYPE /AWS1/GURARN /AWS1/GURARN

The Amazon Resource Name (ARN) of the CodeReview object.

iv_recommendationid TYPE /AWS1/GURRECOMMENDATIONID /AWS1/GURRECOMMENDATIONID

The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.

it_reactions TYPE /AWS1/CL_GURREACTIONS_W=>TT_REACTIONS TT_REACTIONS

List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.

RETURNING

oo_output TYPE REF TO /aws1/cl_gurputrecommendatio01 /AWS1/CL_GURPUTRECOMMENDATIO01

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->/aws1/if_gur~putrecommendationfeedback(
  it_reactions = VALUE /aws1/cl_gurreactions_w=>tt_reactions(
    ( new /aws1/cl_gurreactions_w( |string| ) )
  )
  iv_codereviewarn = |string|
  iv_recommendationid = |string|
).

This is an example of reading all possible response values