/AWS1/IF_TRL=>CANCELQUERY()¶
About CancelQuery¶
Cancels a query if the query is not in a terminated state, such as
CANCELLED, FAILED, TIMED_OUT, or
FINISHED. You must specify an ARN value for EventDataStore.
The ID of the query that you want to cancel is also required. When you run
CancelQuery, the query status might show as CANCELLED even if
the operation is not yet finished.
Method Signature¶
METHODS /AWS1/IF_TRL~CANCELQUERY
IMPORTING
!IV_EVENTDATASTORE TYPE /AWS1/TRLEVENTDATASTOREARN OPTIONAL
!IV_QUERYID TYPE /AWS1/TRLUUID OPTIONAL
!IV_EVENTDATASTOREOWNERACCTID TYPE /AWS1/TRLACCOUNTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_trlcancelqueryrsp
RAISING
/AWS1/CX_TRLCONFLICTEXCEPTION
/AWS1/CX_TRLEVTDATASTOREARNI00
/AWS1/CX_TRLEVTDATASTORENOTF00
/AWS1/CX_TRLINACTEVTDATASTOR00
/AWS1/CX_TRLINACTIVEQUERYEX
/AWS1/CX_TRLINVALIDPARAMETEREX
/AWS1/CX_TRLNOMANAGEMENTACCT00
/AWS1/CX_TRLOPNOTPERMITTEDEX
/AWS1/CX_TRLQUERYIDNOTFOUNDEX
/AWS1/CX_TRLUNSUPPORTEDOPEX
/AWS1/CX_TRLCLIENTEXC
/AWS1/CX_TRLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_queryid TYPE /AWS1/TRLUUID /AWS1/TRLUUID¶
The ID of the query that you want to cancel. The
QueryIdcomes from the response of aStartQueryoperation.
Optional arguments:¶
iv_eventdatastore TYPE /AWS1/TRLEVENTDATASTOREARN /AWS1/TRLEVENTDATASTOREARN¶
The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running.
iv_eventdatastoreowneracctid TYPE /AWS1/TRLACCOUNTID /AWS1/TRLACCOUNTID¶
The account ID of the event data store owner.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_trlcancelqueryrsp /AWS1/CL_TRLCANCELQUERYRSP¶
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->cancelquery(
iv_eventdatastore = |string|
iv_eventdatastoreowneracctid = |string|
iv_queryid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_uuid = lo_result->get_queryid( ).
lv_querystatus = lo_result->get_querystatus( ).
lv_accountid = lo_result->get_evtdatastoreowneracctid( ).
ENDIF.