Skip to content

/AWS1/IF_BIL=>LISTBIZSUPPORTSUBSCRHISTORY()

About ListBusinessSupportSubscriptionHistory

Returns the history of Business Support subscription contracts across accounts.

Method Signature

METHODS /AWS1/IF_BIL~LISTBIZSUPPORTSUBSCRHISTORY
  IMPORTING
    !IV_BILLINGMONTH TYPE /AWS1/BILBIZSUPPORTBLLNGMONTH OPTIONAL
    !IV_ACCOUNTID TYPE /AWS1/BILACCOUNTID OPTIONAL
    !IV_STARTDATE TYPE /AWS1/BILTIMESTAMP OPTIONAL
    !IV_ENDDATE TYPE /AWS1/BILTIMESTAMP OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/BILINTEGER OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/BILPAGETOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_billstbizsuppsubhst01
  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

Optional arguments:

iv_billingmonth TYPE /AWS1/BILBIZSUPPORTBLLNGMONTH /AWS1/BILBIZSUPPORTBLLNGMONTH

The billing month to retrieve subscription contracts for, in YYYY-MM format. If you don't specify a value, defaults to the current month.

iv_accountid TYPE /AWS1/BILACCOUNTID /AWS1/BILACCOUNTID

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

iv_startdate TYPE /AWS1/BILTIMESTAMP /AWS1/BILTIMESTAMP

The start date to filter subscription contracts from.

iv_enddate TYPE /AWS1/BILTIMESTAMP /AWS1/BILTIMESTAMP

The end date to filter subscription contracts to.

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_billstbizsuppsubhst01 /AWS1/CL_BILLSTBIZSUPPSUBHST01

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->listbizsupportsubscrhistory(
  iv_accountid = |string|
  iv_billingmonth = |string|
  iv_enddate = '20150101000000.0000000'
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_startdate = '20150101000000.0000000'
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_subscriptioncontracts( ) 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_planname( ).
      lv_timestamp = lo_row_1->get_contractstartdate( ).
      lv_timestamp = lo_row_1->get_contractenddate( ).
    ENDIF.
  ENDLOOP.
  lv_pagetoken = lo_result->get_nexttoken( ).
ENDIF.