Skip to content

/AWS1/IF_BIL=>DISASSOCIATESOURCEVIEWS()

About DisassociateSourceViews

Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views.

Method Signature

METHODS /AWS1/IF_BIL~DISASSOCIATESOURCEVIEWS
  IMPORTING
    !IV_ARN TYPE /AWS1/BILBILLINGVIEWARN OPTIONAL
    !IT_SOURCEVIEWS TYPE /AWS1/CL_BILBLLVIEWSRCVIEWSL00=>TT_BILLINGVIEWSOURCEVIEWSLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bildassocsrcviewsrsp
  RAISING
    /AWS1/CX_BILACCESSDENIEDEX
    /AWS1/CX_BILBLLVIEWHLTHSTATEX
    /AWS1/CX_BILCONFLICTEXCEPTION
    /AWS1/CX_BILINTERNALSERVEREX
    /AWS1/CX_BILRESOURCENOTFOUNDEX
    /AWS1/CX_BILTHROTTLINGEX
    /AWS1/CX_BILVALIDATIONEX
    /AWS1/CX_BILCLIENTEXC
    /AWS1/CX_BILSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_arn TYPE /AWS1/BILBILLINGVIEWARN /AWS1/BILBILLINGVIEWARN

The Amazon Resource Name (ARN) of the billing view to disassociate source views from.

it_sourceviews TYPE /AWS1/CL_BILBLLVIEWSRCVIEWSL00=>TT_BILLINGVIEWSOURCEVIEWSLIST TT_BILLINGVIEWSOURCEVIEWSLIST

A list of ARNs of the source billing views to disassociate.

RETURNING

oo_output TYPE REF TO /aws1/cl_bildassocsrcviewsrsp /AWS1/CL_BILDASSOCSRCVIEWSRSP

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->disassociatesourceviews(
  it_sourceviews = VALUE /aws1/cl_bilbllviewsrcviewsl00=>tt_billingviewsourceviewslist(
    ( new /aws1/cl_bilbllviewsrcviewsl00( |string| ) )
  )
  iv_arn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_billingviewarn = lo_result->get_arn( ).
ENDIF.

Invoke DisassociateSourceViews

Invoke DisassociateSourceViews

DATA(lo_result) = lo_client->disassociatesourceviews(
  it_sourceviews = VALUE /aws1/cl_bilbllviewsrcviewsl00=>tt_billingviewsourceviewslist(
    ( new /aws1/cl_bilbllviewsrcviewsl00( |arn:aws:billing::123456789012:billingview/primary| ) )
    ( new /aws1/cl_bilbllviewsrcviewsl00( |arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d| ) )
  )
  iv_arn = |arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899|
).