/AWS1/IF_ADS=>DESCRIBEEXPORTTASKS()¶
About DescribeExportTasks¶
Retrieve status of one or more export tasks. You can retrieve the status of up to 100 export tasks.
Method Signature¶
METHODS /AWS1/IF_ADS~DESCRIBEEXPORTTASKS
IMPORTING
!IT_EXPORTIDS TYPE /AWS1/CL_ADSEXPORTIDS_W=>TT_EXPORTIDS OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_ADSEXPORTFILTER=>TT_EXPORTFILTERS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/ADSINTEGER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/ADSNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_adsdescrexptasksrsp
RAISING
/AWS1/CX_ADSAUTHERROREXCEPTION
/AWS1/CX_ADSHOMEREGIONNOTSETEX
/AWS1/CX_ADSINVALIDPARAMETEREX
/AWS1/CX_ADSINVPARAMVALUEEX
/AWS1/CX_ADSSERVERINTERNALER00
/AWS1/CX_ADSCLIENTEXC
/AWS1/CX_ADSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_exportids TYPE /AWS1/CL_ADSEXPORTIDS_W=>TT_EXPORTIDS TT_EXPORTIDS¶
One or more unique identifiers used to query the status of an export request.
it_filters TYPE /AWS1/CL_ADSEXPORTFILTER=>TT_EXPORTFILTERS TT_EXPORTFILTERS¶
One or more filters.
AgentId- ID of the agent whose collected data will be exported
iv_maxresults TYPE /AWS1/ADSINTEGER /AWS1/ADSINTEGER¶
The maximum number of volume results returned by
DescribeExportTasksin paginated output. When this parameter is used,DescribeExportTasksonly returnsmaxResultsresults in a single page along with anextTokenresponse element.
iv_nexttoken TYPE /AWS1/ADSNEXTTOKEN /AWS1/ADSNEXTTOKEN¶
The
nextTokenvalue returned from a previous paginatedDescribeExportTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value is null when there are no more results to return.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_adsdescrexptasksrsp /AWS1/CL_ADSDESCREXPTASKSRSP¶
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->describeexporttasks(
it_exportids = VALUE /aws1/cl_adsexportids_w=>tt_exportids(
( new /aws1/cl_adsexportids_w( |string| ) )
)
it_filters = VALUE /aws1/cl_adsexportfilter=>tt_exportfilters(
(
new /aws1/cl_adsexportfilter(
it_values = VALUE /aws1/cl_adsfiltervalues_w=>tt_filtervalues(
( new /aws1/cl_adsfiltervalues_w( |string| ) )
)
iv_condition = |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_exportsinfo( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_configurationsexportid = lo_row_1->get_exportid( ).
lv_exportstatus = lo_row_1->get_exportstatus( ).
lv_exportstatusmessage = lo_row_1->get_statusmessage( ).
lv_configurationsdownloadu = lo_row_1->get_confsdownloadurl( ).
lv_exportrequesttime = lo_row_1->get_exportrequesttime( ).
lv_boolean = lo_row_1->get_istruncated( ).
lv_timestamp = lo_row_1->get_requestedstarttime( ).
lv_timestamp = lo_row_1->get_requestedendtime( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.