/AWS1/IF_CTT=>LISTCONTROLOPERATIONS()¶
About ListControlOperations¶
Provides a list of operations in progress or queued. For usage examples, see ListControlOperation examples.
Method Signature¶
METHODS /AWS1/IF_CTT~LISTCONTROLOPERATIONS
IMPORTING
!IO_FILTER TYPE REF TO /AWS1/CL_CTTCONTROLOPFILTER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CTTLISTCTLOPSNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/CTTLISTCTLOPSMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cttlistctlopsoutput
RAISING
/AWS1/CX_CTTACCESSDENIEDEX
/AWS1/CX_CTTINTERNALSERVEREX
/AWS1/CX_CTTTHROTTLINGEX
/AWS1/CX_CTTVALIDATIONEX
/AWS1/CX_CTTCLIENTEXC
/AWS1/CX_CTTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
io_filter TYPE REF TO /AWS1/CL_CTTCONTROLOPFILTER /AWS1/CL_CTTCONTROLOPFILTER¶
An input filter for the
ListControlOperationsAPI that lets you select the types of control operations to view.
iv_nexttoken TYPE /AWS1/CTTLISTCTLOPSNEXTTOKEN /AWS1/CTTLISTCTLOPSNEXTTOKEN¶
A pagination token.
iv_maxresults TYPE /AWS1/CTTLISTCTLOPSMAXRESULTS /AWS1/CTTLISTCTLOPSMAXRESULTS¶
The maximum number of results to be shown.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cttlistctlopsoutput /AWS1/CL_CTTLISTCTLOPSOUTPUT¶
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->listcontroloperations(
io_filter = new /aws1/cl_cttcontrolopfilter(
it_controlidentifiers = VALUE /aws1/cl_cttcontrolids_w=>tt_controlidentifiers(
( new /aws1/cl_cttcontrolids_w( |string| ) )
)
it_controloperationtypes = VALUE /aws1/cl_cttcontroloptypes_w=>tt_controloperationtypes(
( new /aws1/cl_cttcontroloptypes_w( |string| ) )
)
it_enabledcontrolidentifiers = VALUE /aws1/cl_cttenabledctlids_w=>tt_enabledcontrolidentifiers(
( new /aws1/cl_cttenabledctlids_w( |string| ) )
)
it_statuses = VALUE /aws1/cl_cttctlopstatuses_w=>tt_controloperationstatuses(
( new /aws1/cl_cttctlopstatuses_w( |string| ) )
)
it_targetidentifiers = VALUE /aws1/cl_ctttargetids_w=>tt_targetidentifiers(
( new /aws1/cl_ctttargetids_w( |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_controloperations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_controloperationtype = lo_row_1->get_operationtype( ).
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_endtime( ).
lv_controloperationstatus = lo_row_1->get_status( ).
lv_string = lo_row_1->get_statusmessage( ).
lv_operationidentifier = lo_row_1->get_operationidentifier( ).
lv_controlidentifier = lo_row_1->get_controlidentifier( ).
lv_targetidentifier = lo_row_1->get_targetidentifier( ).
lv_arn = lo_row_1->get_enabledcontrolidentifier( ).
ENDIF.
ENDLOOP.
lv_listcontroloperationsne = lo_result->get_nexttoken( ).
ENDIF.