Skip to content

/AWS1/IF_BIL=>LISTBIZSUPPORTACCOUNTCHARGES()

About ListBusinessSupportAccountCharges

Returns Business Support charges broken down at the linked account level for a given billing month.

Method Signature

METHODS /AWS1/IF_BIL~LISTBIZSUPPORTACCOUNTCHARGES
  IMPORTING
    !IV_BILLINGMONTH TYPE /AWS1/BILBIZSUPPORTBLLNGMONTH OPTIONAL
    !IV_ACCOUNTID TYPE /AWS1/BILACCOUNTID OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/BILINTEGER OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/BILPAGETOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_billstbizsuppacchgrsp
  RAISING
    /AWS1/CX_BILACCESSDENIEDEX
    /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_billingmonth TYPE /AWS1/BILBIZSUPPORTBLLNGMONTH /AWS1/BILBIZSUPPORTBLLNGMONTH

The billing month to retrieve Business Support charges for, in YYYY-MM format. You can request the current month (charges will be estimated) or a past month (charges will be finalized).

Optional arguments:

iv_accountid TYPE /AWS1/BILACCOUNTID /AWS1/BILACCOUNTID

The linked account ID to filter results to a specific account. If you don't specify a value, the response includes charges for all linked accounts.

iv_maxresults TYPE /AWS1/BILINTEGER /AWS1/BILINTEGER

The maximum number of results to return per page. Default is 100.

iv_nexttoken TYPE /AWS1/BILPAGETOKEN /AWS1/BILPAGETOKEN

The pagination token for the next page of results.

RETURNING

oo_output TYPE REF TO /aws1/cl_billstbizsuppacchgrsp /AWS1/CL_BILLSTBIZSUPPACCHGRSP

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->listbizsupportaccountcharges(
  iv_accountid = |string|
  iv_billingmonth = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_businesssupportbillingm = lo_result->get_billingmonth( ).
  lv_boolean = lo_result->get_isestimated( ).
  lv_string = lo_result->get_totalsupportcharge( ).
  lv_string = lo_result->get_totalsupportelgblspend( ).
  lv_integer = lo_result->get_accountcount( ).
  LOOP AT lo_result->get_accountcharges( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_accountid = lo_row_1->get_accountid( ).
      lv_string = lo_row_1->get_supportplanname( ).
      lv_string = lo_row_1->get_totalcharge( ).
      lv_string = lo_row_1->get_totalusagebasis( ).
      LOOP AT lo_row_1->get_tiercharges( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_string = lo_row_3->get_tierdescription( ).
          lv_string = lo_row_3->get_tierrate( ).
          lv_string = lo_row_3->get_usageslice( ).
          lv_string = lo_row_3->get_tiercharge( ).
          lv_timestamp = lo_row_3->get_chargeperiodstartdate( ).
          lv_timestamp = lo_row_3->get_chargeperiodenddate( ).
        ENDIF.
      ENDLOOP.
      lo_businesssupportdiscount = lo_row_1->get_supportdiscount( ).
      IF lo_businesssupportdiscount IS NOT INITIAL.
        lv_string = lo_businesssupportdiscount->get_discountamount( ).
        lv_string = lo_businesssupportdiscount->get_discountpercentage( ).
        lv_string = lo_businesssupportdiscount->get_discounttype( ).
        lv_string = lo_businesssupportdiscount->get_discountsource( ).
      ENDIF.
      LOOP AT lo_row_1->get_supportelgblspendbysvc( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_string = lo_row_5->get_contributingservice( ).
          lv_string = lo_row_5->get_itemtype( ).
          lv_string = lo_row_5->get_description( ).
          lv_string = lo_row_5->get_chargeamount( ).
          lv_string = lo_row_5->get_currency( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv_pagetoken = lo_result->get_nexttoken( ).
ENDIF.