/AWS1/IF_BIC=>UPDATEBILLINGTRANSFERPREF()¶
About UpdateBillingTransferPreference¶
Sets the auto billing group creation preference for a billing transfer. When the preference is enabled, Billing Conductor automatically creates an indirect billing transfer billing group in your account, with the pricing plan that you specify, for each account that transfers its bill to the bill source account of this billing transfer. The preference applies only to billing groups that are created after you enable it.
Enabling the preference requires the iam:CreateServiceLinkedRole permission. While a pricing plan is specified in an enabled preference, you can't delete that pricing plan.
Method Signature¶
METHODS /AWS1/IF_BIC~UPDATEBILLINGTRANSFERPREF
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/BICCLIENTTOKEN OPTIONAL
!IV_RESPONSIBILITYTRANSFERARN TYPE /AWS1/BICRESPONSIBILITYXFERARN OPTIONAL
!IO_AUTOBLLNGXFERBLLNGGRPCRE TYPE REF TO /AWS1/CL_BICAUTXFERBLLGRCREP00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bicupbllxferprefout
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_responsibilitytransferarn TYPE /AWS1/BICRESPONSIBILITYXFERARN /AWS1/BICRESPONSIBILITYXFERARN¶
The Amazon Resource Name (ARN) of the billing transfer whose preference you want to set.
io_autobllngxferbllnggrpcre TYPE REF TO /AWS1/CL_BICAUTXFERBLLGRCREP00 /AWS1/CL_BICAUTXFERBLLGRCREP00¶
The auto billing group creation preference to set for the billing transfer.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/BICCLIENTTOKEN /AWS1/BICCLIENTTOKEN¶
A unique, case-sensitive identifier that you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bicupbllxferprefout /AWS1/CL_BICUPBLLXFERPREFOUT¶
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->updatebillingtransferpref(
io_autobllngxferbllnggrpcre = new /aws1/cl_bicautxferbllgrcrep00(
iv_enabled = ABAP_TRUE
iv_pricingplanarn = |string|
)
iv_clienttoken = |string|
iv_responsibilitytransferarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_responsibilitytransfera = lo_result->get_responsibilityxferarn( ).
lo_autotransferbillinggrou = lo_result->get_autobllngxferbllnggrpcre( ).
IF lo_autotransferbillinggrou IS NOT INITIAL.
lv_boolean = lo_autotransferbillinggrou->get_enabled( ).
lv_pricingplanarn = lo_autotransferbillinggrou->get_pricingplanarn( ).
ENDIF.
lv_instant = lo_result->get_lastmodifiedtime( ).
ENDIF.