/AWS1/IF_BCP=>LISTBILLSCENARIOS()¶
About ListBillScenarios¶
Lists all bill scenarios for the account.
Method Signature¶
METHODS /AWS1/IF_BCP~LISTBILLSCENARIOS
IMPORTING
!IT_FILTERS TYPE /AWS1/CL_BCPLSTBILLSCENARIOS01=>TT_LISTBILLSCENARIOSFILTERS OPTIONAL
!IO_CREATEDATFILTER TYPE REF TO /AWS1/CL_BCPFILTERTIMESTAMP OPTIONAL
!IO_EXPIRESATFILTER TYPE REF TO /AWS1/CL_BCPFILTERTIMESTAMP OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/BCPNEXTPAGETOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BCPMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcplstbillscenarios03
RAISING
/AWS1/CX_BCPACCESSDENIEDEX
/AWS1/CX_BCPINTERNALSERVEREX
/AWS1/CX_BCPTHROTTLINGEX
/AWS1/CX_BCPVALIDATIONEX
/AWS1/CX_BCPDATAUNAVAILEX
/AWS1/CX_BCPCLIENTEXC
/AWS1/CX_BCPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_filters TYPE /AWS1/CL_BCPLSTBILLSCENARIOS01=>TT_LISTBILLSCENARIOSFILTERS TT_LISTBILLSCENARIOSFILTERS¶
Filters to apply to the list of bill scenarios.
io_createdatfilter TYPE REF TO /AWS1/CL_BCPFILTERTIMESTAMP /AWS1/CL_BCPFILTERTIMESTAMP¶
Filter bill scenarios based on the creation date.
io_expiresatfilter TYPE REF TO /AWS1/CL_BCPFILTERTIMESTAMP /AWS1/CL_BCPFILTERTIMESTAMP¶
Filter bill scenarios based on the expiration date.
iv_nexttoken TYPE /AWS1/BCPNEXTPAGETOKEN /AWS1/BCPNEXTPAGETOKEN¶
A token to retrieve the next page of results.
iv_maxresults TYPE /AWS1/BCPMAXRESULTS /AWS1/BCPMAXRESULTS¶
The maximum number of results to return per page.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bcplstbillscenarios03 /AWS1/CL_BCPLSTBILLSCENARIOS03¶
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->listbillscenarios(
io_createdatfilter = new /aws1/cl_bcpfiltertimestamp(
iv_aftertimestamp = '20150101000000.0000000'
iv_beforetimestamp = '20150101000000.0000000'
)
io_expiresatfilter = new /aws1/cl_bcpfiltertimestamp(
iv_aftertimestamp = '20150101000000.0000000'
iv_beforetimestamp = '20150101000000.0000000'
)
it_filters = VALUE /aws1/cl_bcplstbillscenarios01=>tt_listbillscenariosfilters(
(
new /aws1/cl_bcplstbillscenarios01(
it_values = VALUE /aws1/cl_bcplstbillscenarios02=>tt_listbillscenariosfiltvalues(
( new /aws1/cl_bcplstbillscenarios02( |string| ) )
)
iv_matchoption = |string|
iv_name = |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.
LOOP AT lo_result->get_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_resourceid = lo_row_1->get_id( ).
lv_billscenarioname = lo_row_1->get_name( ).
lo_billinterval = lo_row_1->get_billinterval( ).
IF lo_billinterval IS NOT INITIAL.
lv_timestamp = lo_billinterval->get_start( ).
lv_timestamp = lo_billinterval->get_end( ).
ENDIF.
lv_billscenariostatus = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_expiresat( ).
lv_string = lo_row_1->get_failuremessage( ).
ENDIF.
ENDLOOP.
lv_nextpagetoken = lo_result->get_nexttoken( ).
ENDIF.