Skip to content

/AWS1/CL_RGR=>UPDATEGROUP()

About UpdateGroup

Updates the description for an existing group. You cannot update the name of a resource group.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:UpdateGroup

Method Signature

IMPORTING

Optional arguments:

iv_groupname TYPE /AWS1/RGRGROUPNAME /AWS1/RGRGROUPNAME

Don't use this parameter. Use Group instead.

iv_group TYPE /AWS1/RGRGROUPSTRINGV2 /AWS1/RGRGROUPSTRINGV2

The name or the ARN of the resource group to update.

iv_description TYPE /AWS1/RGRDESCRIPTION /AWS1/RGRDESCRIPTION

The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.

iv_criticality TYPE /AWS1/RGRCRITICALITY /AWS1/RGRCRITICALITY

The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.

iv_owner TYPE /AWS1/RGROWNER /AWS1/RGROWNER

A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.

iv_displayname TYPE /AWS1/RGRDISPLAYNAME /AWS1/RGRDISPLAYNAME

The name of the application group, which you can change at any time.

RETURNING

oo_output TYPE REF TO /aws1/cl_rgrupdategroupoutput /AWS1/CL_RGRUPDATEGROUPOUTPUT

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_rgr~updategroup(
  iv_criticality = 123
  iv_description = |string|
  iv_displayname = |string|
  iv_group = |string|
  iv_groupname = |string|
  iv_owner = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_group = lo_result->get_group( ).
  IF lo_group IS NOT INITIAL.
    lv_grouparnv2 = lo_group->get_grouparn( ).
    lv_groupname = lo_group->get_name( ).
    lv_description = lo_group->get_description( ).
    lv_criticality = lo_group->get_criticality( ).
    lv_owner = lo_group->get_owner( ).
    lv_displayname = lo_group->get_displayname( ).
    LOOP AT lo_group->get_applicationtag( ) into ls_row.
      lv_key = ls_row-key.
      lo_value = ls_row-value.
      IF lo_value IS NOT INITIAL.
        lv_applicationarn = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.