/AWS1/CL_SEB=>GETARCHIVESEARCH()
¶
About GetArchiveSearch¶
Retrieves the details and current status of a specific email archive search job.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_searchid
TYPE /AWS1/SEBSEARCHID
/AWS1/SEBSEARCHID
¶
The identifier of the search job to get details for.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_sebgetarchivesrchrsp
/AWS1/CL_SEBGETARCHIVESRCHRSP
¶
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->/aws1/if_seb~getarchivesearch( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_archiveid = lo_result->get_archiveid( ).
lo_archivefilters = lo_result->get_filters( ).
IF lo_archivefilters IS NOT INITIAL.
LOOP AT lo_archivefilters->get_include( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_archivestringexpression = lo_row_1->get_stringexpression( ).
IF lo_archivestringexpression IS NOT INITIAL.
lo_archivestringtoevaluate = lo_archivestringexpression->get_evaluate( ).
IF lo_archivestringtoevaluate IS NOT INITIAL.
lv_archivestringemailattri = lo_archivestringtoevaluate->get_attribute( ).
ENDIF.
lv_archivestringoperator = lo_archivestringexpression->get_operator( ).
LOOP AT lo_archivestringexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stringvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_archivebooleanexpressio = lo_row_1->get_booleanexpression( ).
IF lo_archivebooleanexpressio IS NOT INITIAL.
lo_archivebooleantoevaluat = lo_archivebooleanexpressio->get_evaluate( ).
IF lo_archivebooleantoevaluat IS NOT INITIAL.
lv_archivebooleanemailattr = lo_archivebooleantoevaluat->get_attribute( ).
ENDIF.
lv_archivebooleanoperator = lo_archivebooleanexpressio->get_operator( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_archivefilters->get_unless( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_archivestringexpression = lo_row_1->get_stringexpression( ).
IF lo_archivestringexpression IS NOT INITIAL.
lo_archivestringtoevaluate = lo_archivestringexpression->get_evaluate( ).
IF lo_archivestringtoevaluate IS NOT INITIAL.
lv_archivestringemailattri = lo_archivestringtoevaluate->get_attribute( ).
ENDIF.
lv_archivestringoperator = lo_archivestringexpression->get_operator( ).
LOOP AT lo_archivestringexpression->get_values( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stringvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_archivebooleanexpressio = lo_row_1->get_booleanexpression( ).
IF lo_archivebooleanexpressio IS NOT INITIAL.
lo_archivebooleantoevaluat = lo_archivebooleanexpressio->get_evaluate( ).
IF lo_archivebooleantoevaluat IS NOT INITIAL.
lv_archivebooleanemailattr = lo_archivebooleantoevaluat->get_attribute( ).
ENDIF.
lv_archivebooleanoperator = lo_archivebooleanexpressio->get_operator( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
lv_timestamp = lo_result->get_fromtimestamp( ).
lv_timestamp = lo_result->get_totimestamp( ).
lv_searchmaxresults = lo_result->get_maxresults( ).
lo_searchstatus = lo_result->get_status( ).
IF lo_searchstatus IS NOT INITIAL.
lv_timestamp = lo_searchstatus->get_submissiontimestamp( ).
lv_timestamp = lo_searchstatus->get_completiontimestamp( ).
lv_searchstate = lo_searchstatus->get_state( ).
lv_errormessage = lo_searchstatus->get_errormessage( ).
ENDIF.
ENDIF.