/AWS1/IF_TRL=>LISTIMPORTFAILURES()¶
About ListImportFailures¶
CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change.
Returns a list of failures for the specified import.
Method Signature¶
METHODS /AWS1/IF_TRL~LISTIMPORTFAILURES
IMPORTING
!IV_IMPORTID TYPE /AWS1/TRLUUID OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/TRLLSTIMPFAILURESMAXRS00 OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/TRLPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_trllistimpfailuresrsp
RAISING
/AWS1/CX_TRLINVALIDNEXTTOKENEX
/AWS1/CX_TRLINVALIDPARAMETEREX
/AWS1/CX_TRLOPNOTPERMITTEDEX
/AWS1/CX_TRLUNSUPPORTEDOPEX
/AWS1/CX_TRLCLIENTEXC
/AWS1/CX_TRLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_importid TYPE /AWS1/TRLUUID /AWS1/TRLUUID¶
The ID of the import.
Optional arguments:¶
iv_maxresults TYPE /AWS1/TRLLSTIMPFAILURESMAXRS00 /AWS1/TRLLSTIMPFAILURESMAXRS00¶
The maximum number of failures to display on a single page.
iv_nexttoken TYPE /AWS1/TRLPAGINATIONTOKEN /AWS1/TRLPAGINATIONTOKEN¶
A token you can use to get the next page of import failures.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_trllistimpfailuresrsp /AWS1/CL_TRLLISTIMPFAILURESRSP¶
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->listimportfailures(
iv_importid = |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_failures( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_location( ).
lv_importfailurestatus = lo_row_1->get_status( ).
lv_string = lo_row_1->get_errortype( ).
lv_string = lo_row_1->get_errormessage( ).
lv_date = lo_row_1->get_lastupdatedtime( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.