/AWS1/IF_MGN=>LISTIMPORTFILEENRICHMENTS()¶
About ListImportFileEnrichments¶
Lists import file enrichment jobs with optional filtering by job IDs.
Method Signature¶
METHODS /AWS1/IF_MGN~LISTIMPORTFILEENRICHMENTS
IMPORTING
!IO_FILTERS TYPE REF TO /AWS1/CL_MGNLISTIMPFILEERCFLT OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/MGNMAXRESULTSTYPE OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/MGNPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mgnlistimpfileercrsp
RAISING
/AWS1/CX_MGNVALIDATIONEX
/AWS1/CX_MGNCLIENTEXC
/AWS1/CX_MGNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
io_filters TYPE REF TO /AWS1/CL_MGNLISTIMPFILEERCFLT /AWS1/CL_MGNLISTIMPFILEERCFLT¶
Filters to apply when listing import file enrichment jobs.
iv_maxresults TYPE /AWS1/MGNMAXRESULTSTYPE /AWS1/MGNMAXRESULTSTYPE¶
The maximum number of results to return in a single call.
iv_nexttoken TYPE /AWS1/MGNPAGINATIONTOKEN /AWS1/MGNPAGINATIONTOKEN¶
The token for the next page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mgnlistimpfileercrsp /AWS1/CL_MGNLISTIMPFILEERCRSP¶
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->listimportfileenrichments(
io_filters = new /aws1/cl_mgnlistimpfileercflt(
it_jobids = VALUE /aws1/cl_mgnimpfileercidsflt_w=>tt_impfileenrchmntsidsfilter(
( new /aws1/cl_mgnimpfileercidsflt_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_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_importfileenrichmentjob = lo_row_1->get_jobid( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_endedat( ).
lv_importfileenrichmentsta = lo_row_1->get_status( ).
lv_largeboundedstring = lo_row_1->get_statusdetails( ).
lo_checksum = lo_row_1->get_checksum( ).
IF lo_checksum IS NOT INITIAL.
lv_encryptionalgorithm = lo_checksum->get_encryptionalgorithm( ).
lv_hash = lo_checksum->get_hash( ).
ENDIF.
lo_enrichmenttargets3confi = lo_row_1->get_s3buckettarget( ).
IF lo_enrichmenttargets3confi IS NOT INITIAL.
lv_s3bucketname = lo_enrichmenttargets3confi->get_s3bucket( ).
lv_accountid = lo_enrichmenttargets3confi->get_s3bucketowner( ).
lv_s3keyname = lo_enrichmenttargets3confi->get_s3key( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.
Sample ListImportFileEnrichments call¶
Sample ListImportFileEnrichments call
DATA(lo_result) = lo_client->listimportfileenrichments(
io_filters = new /aws1/cl_mgnlistimpfileercflt(
it_jobids = VALUE /aws1/cl_mgnimpfileercidsflt_w=>tt_impfileenrchmntsidsfilter(
( new /aws1/cl_mgnimpfileercidsflt_w( |01234567-abcd-abcd-efab-0123456789ab| ) )
)
)
iv_maxresults = 10
).