Skip to content

/AWS1/IF_BIL=>ASSOCIATESOURCEVIEWS()

About AssociateSourceViews

Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources.

Method Signature

METHODS /AWS1/IF_BIL~ASSOCIATESOURCEVIEWS
  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_bilassocsrcviewsrsp
  RAISING
    /AWS1/CX_BILACCESSDENIEDEX
    /AWS1/CX_BILBLLVIEWHLTHSTATEX
    /AWS1/CX_BILCONFLICTEXCEPTION
    /AWS1/CX_BILINTERNALSERVEREX
    /AWS1/CX_BILRESOURCENOTFOUNDEX
    /AWS1/CX_BILSERVICEQUOTAEXCDEX
    /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 associate source views with.

it_sourceviews TYPE /AWS1/CL_BILBLLVIEWSRCVIEWSL00=>TT_BILLINGVIEWSOURCEVIEWSLIST TT_BILLINGVIEWSOURCEVIEWSLIST

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

RETURNING

oo_output TYPE REF TO /aws1/cl_bilassocsrcviewsrsp /AWS1/CL_BILASSOCSRCVIEWSRSP

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->associatesourceviews(
  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 AssociateSourceViews

Invoke AssociateSourceViews

DATA(lo_result) = lo_client->associatesourceviews(
  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|
).