/AWS1/IF_ADS=>DESCRIBEIMPORTTASKS()¶
About DescribeImportTasks¶
Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.
Method Signature¶
METHODS /AWS1/IF_ADS~DESCRIBEIMPORTTASKS
IMPORTING
!IT_FILTERS TYPE /AWS1/CL_ADSIMPORTTASKFILTER=>TT_DESCRIMPORTTASKSFILTERLIST OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/ADSDESCRIMPTASKSMAXRSLTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/ADSNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_adsdescrimptasksrsp
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_filters TYPE /AWS1/CL_ADSIMPORTTASKFILTER=>TT_DESCRIMPORTTASKSFILTERLIST TT_DESCRIMPORTTASKSFILTERLIST¶
An array of name-value pairs that you provide to filter the results for the
DescribeImportTaskrequest to a specific subset of results. Currently, wildcard values aren't supported for filters.
iv_maxresults TYPE /AWS1/ADSDESCRIMPTASKSMAXRSLTS /AWS1/ADSDESCRIMPTASKSMAXRSLTS¶
The maximum number of results that you want this request to return, up to 100.
iv_nexttoken TYPE /AWS1/ADSNEXTTOKEN /AWS1/ADSNEXTTOKEN¶
The token to request a specific page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_adsdescrimptasksrsp /AWS1/CL_ADSDESCRIMPTASKSRSP¶
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->describeimporttasks(
it_filters = VALUE /aws1/cl_adsimporttaskfilter=>tt_descrimporttasksfilterlist(
(
new /aws1/cl_adsimporttaskfilter(
it_values = VALUE /aws1/cl_adsimptskfiltvallst_w=>tt_importtaskfiltervaluelist(
( new /aws1/cl_adsimptskfiltvallst_w( |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.
lv_nexttoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_tasks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_importtaskidentifier = lo_row_1->get_importtaskid( ).
lv_clientrequesttoken = lo_row_1->get_clientrequesttoken( ).
lv_importtaskname = lo_row_1->get_name( ).
lv_importurl = lo_row_1->get_importurl( ).
lv_importstatus = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_importrequesttime( ).
lv_timestamp = lo_row_1->get_importcompletiontime( ).
lv_timestamp = lo_row_1->get_importdeletedtime( ).
lv_fileclassification = lo_row_1->get_fileclassification( ).
lv_integer = lo_row_1->get_serverimportsuccess( ).
lv_integer = lo_row_1->get_serverimportfailure( ).
lv_integer = lo_row_1->get_applicationimportsuccess( ).
lv_integer = lo_row_1->get_applicationimportfailure( ).
lv_s3presignedurl = lo_row_1->get_errsandfailedentrieszip( ).
ENDIF.
ENDLOOP.
ENDIF.