Skip to content

/AWS1/IF_BIC=>UPDATEBILLINGGROUP()

About UpdateBillingGroup

This updates an existing billing group.

Method Signature

METHODS /AWS1/IF_BIC~UPDATEBILLINGGROUP
  IMPORTING
    !IV_ARN TYPE /AWS1/BICBILLINGGROUPARN OPTIONAL
    !IV_NAME TYPE /AWS1/BICBILLINGGROUPNAME OPTIONAL
    !IV_STATUS TYPE /AWS1/BICBILLINGGROUPSTATUS OPTIONAL
    !IO_COMPUTATIONPREFERENCE TYPE REF TO /AWS1/CL_BICCOMPUTATIONPREFE00 OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/BICBILLINGGROUPDESC OPTIONAL
    !IO_ACCOUNTGROUPING TYPE REF TO /AWS1/CL_BICUPBLLGRACGRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bicupdbllnggroupout
  RAISING
    /AWS1/CX_BICACCESSDENIEDEX
    /AWS1/CX_BICCONFLICTEXCEPTION
    /AWS1/CX_BICINTERNALSERVEREX
    /AWS1/CX_BICRESOURCENOTFOUNDEX
    /AWS1/CX_BICTHROTTLINGEX
    /AWS1/CX_BICVALIDATIONEX
    /AWS1/CX_BICCLIENTEXC
    /AWS1/CX_BICSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_arn TYPE /AWS1/BICBILLINGGROUPARN /AWS1/BICBILLINGGROUPARN

The Amazon Resource Name (ARN) of the billing group being updated.

Optional arguments:

iv_name TYPE /AWS1/BICBILLINGGROUPNAME /AWS1/BICBILLINGGROUPNAME

The name of the billing group. The names must be unique to each billing group.

iv_status TYPE /AWS1/BICBILLINGGROUPSTATUS /AWS1/BICBILLINGGROUPSTATUS

The status of the billing group. Only one of the valid values can be used.

io_computationpreference TYPE REF TO /AWS1/CL_BICCOMPUTATIONPREFE00 /AWS1/CL_BICCOMPUTATIONPREFE00

The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group.

iv_description TYPE /AWS1/BICBILLINGGROUPDESC /AWS1/BICBILLINGGROUPDESC

A description of the billing group.

io_accountgrouping TYPE REF TO /AWS1/CL_BICUPBLLGRACGRING /AWS1/CL_BICUPBLLGRACGRING

Specifies if the billing group has automatic account association (AutoAssociate) enabled.

RETURNING

oo_output TYPE REF TO /aws1/cl_bicupdbllnggroupout /AWS1/CL_BICUPDBLLNGGROUPOUT

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->updatebillinggroup(
  io_accountgrouping = new /aws1/cl_bicupbllgracgring(
    iv_autoassociate = ABAP_TRUE
    iv_responsibilitytransferarn = |string|
  )
  io_computationpreference = new /aws1/cl_biccomputationprefe00( |string| )
  iv_arn = |string|
  iv_description = |string|
  iv_name = |string|
  iv_status = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_billinggrouparn = lo_result->get_arn( ).
  lv_billinggroupname = lo_result->get_name( ).
  lv_billinggroupdescription = lo_result->get_description( ).
  lv_accountid = lo_result->get_primaryaccountid( ).
  lv_pricingplanarn = lo_result->get_pricingplanarn( ).
  lv_numberofaccounts = lo_result->get_size( ).
  lv_instant = lo_result->get_lastmodifiedtime( ).
  lv_billinggroupstatus = lo_result->get_status( ).
  lv_billinggroupstatusreaso = lo_result->get_statusreason( ).
  lo_updatebillinggroupaccou = lo_result->get_accountgrouping( ).
  IF lo_updatebillinggroupaccou IS NOT INITIAL.
    lv_boolean = lo_updatebillinggroupaccou->get_autoassociate( ).
    lv_responsibilitytransfera = lo_updatebillinggroupaccou->get_responsibilityxferarn( ).
  ENDIF.
ENDIF.