/AWS1/IF_BRK=>SEARCHSPENDINGLIMITS()¶
About SearchSpendingLimits¶
Searches and lists spending limits based on specified filters. This operation supports pagination and allows filtering by various criteria to find specific spending limits. We recommend using pagination to ensure that the operation returns quickly and successfully.
Method Signature¶
METHODS /AWS1/IF_BRK~SEARCHSPENDINGLIMITS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/BRKSTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BRKINTEGER OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_BRKSRCHSPENDINGLMTS01=>TT_SRCHSPENDINGLIMITSFILTLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_brksrchspendinglmts02
RAISING
/AWS1/CX_BRKACCESSDENIEDEX
/AWS1/CX_BRKINTERNALSERVICEEX
/AWS1/CX_BRKTHROTTLINGEX
/AWS1/CX_BRKVALIDATIONEX
/AWS1/CX_BRKCLIENTEXC
/AWS1/CX_BRKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/BRKSTRING /AWS1/BRKSTRING¶
The token to retrieve the next page of results. This value is returned from a previous call to SearchSpendingLimits when there are more results available.
iv_maxresults TYPE /AWS1/BRKINTEGER /AWS1/BRKINTEGER¶
The maximum number of results to return in a single call. Minimum value of 1, maximum value of 100. Default is 20.
it_filters TYPE /AWS1/CL_BRKSRCHSPENDINGLMTS01=>TT_SRCHSPENDINGLIMITSFILTLIST TT_SRCHSPENDINGLIMITSFILTLIST¶
The filters to apply when searching for spending limits. Use filters to narrow down the results based on specific criteria.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_brksrchspendinglmts02 /AWS1/CL_BRKSRCHSPENDINGLMTS02¶
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->searchspendinglimits(
it_filters = VALUE /aws1/cl_brksrchspendinglmts01=>tt_srchspendinglimitsfiltlist(
(
new /aws1/cl_brksrchspendinglmts01(
it_values = VALUE /aws1/cl_brkstring256list_w=>tt_string256list(
( new /aws1/cl_brkstring256list_w( |string| ) )
)
iv_name = |string|
iv_operator = |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_spendinglimits( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_spendinglimitarn = lo_row_1->get_spendinglimitarn( ).
lv_devicearn = lo_row_1->get_devicearn( ).
lo_timeperiod = lo_row_1->get_timeperiod( ).
IF lo_timeperiod IS NOT INITIAL.
lv_timestamp = lo_timeperiod->get_startat( ).
lv_timestamp = lo_timeperiod->get_endat( ).
ENDIF.
lv_string = lo_row_1->get_spendinglimit( ).
lv_string = lo_row_1->get_queuedspend( ).
lv_string = lo_row_1->get_totalspend( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
LOOP AT lo_row_1->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.