Skip to content

/AWS1/CL_TAD=>LISTORGRECOMMENDATIONACCTS()

About ListOrganizationRecommendationAccounts

Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.

Method Signature

IMPORTING

Required arguments:

iv_orgrecommendationid TYPE /AWS1/TADORGRECOMMENDATIONID /AWS1/TADORGRECOMMENDATIONID

The Recommendation identifier

Optional arguments:

iv_nexttoken TYPE /AWS1/TADSTRING /AWS1/TADSTRING

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

iv_maxresults TYPE /AWS1/TADINTEGER /AWS1/TADINTEGER

The maximum number of results to return per page.

iv_affectedaccountid TYPE /AWS1/TADACCOUNTID /AWS1/TADACCOUNTID

An account affected by this organization recommendation

RETURNING

oo_output TYPE REF TO /aws1/cl_tadlstorgrecommenda01 /AWS1/CL_TADLSTORGRECOMMENDA01

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_tad~listorgrecommendationaccts(
  iv_affectedaccountid = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_orgrecommendationid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_nexttoken( ).
  LOOP AT lo_result->get_acctrecommendationlcsums( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_accountid = lo_row_1->get_accountid( ).
      lv_accountrecommendationar = lo_row_1->get_accountrecommendationarn( ).
      lv_recommendationlifecycle = lo_row_1->get_lifecyclestage( ).
      lv_string = lo_row_1->get_updatedonbehalfof( ).
      lv_string = lo_row_1->get_upddonbehalfofjobtitle( ).
      lv_recommendationupdaterea = lo_row_1->get_updatereason( ).
      lv_updaterecommendationlif = lo_row_1->get_updatereasoncode( ).
      lv_timestamp = lo_row_1->get_lastupdatedat( ).
    ENDIF.
  ENDLOOP.
ENDIF.

List all Accounts for an AWS Organization's Recommendation

List all Accounts for an AWS Organization's Recommendation

DATA(lo_result) = lo_client->/aws1/if_tad~listorgrecommendationaccts( iv_orgrecommendationid = |arn:aws:trustedadvisor:::organization-recommendation/9534ec9b-bf3a-44e8-8213-2ed68b39d9d5| ) .