Skip to content

/AWS1/IF_GLU=>LSTMATERIALIZEDVIEWREFRESH00()

About ListMaterializedViewRefreshTaskRuns

List all task runs for a particular account.

Method Signature

METHODS /AWS1/IF_GLU~LSTMATERIALIZEDVIEWREFRESH00
  IMPORTING
    !IV_CATALOGID TYPE /AWS1/GLUNAMESTRING OPTIONAL
    !IV_DATABASENAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
    !IV_TABLENAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/GLUPAGESIZE OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/GLUTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glulstmaterializedv01
  RAISING
    /AWS1/CX_GLUACCESSDENIEDEX
    /AWS1/CX_GLUINVALIDINPUTEX
    /AWS1/CX_GLUOPERATIONTIMEOUTEX
    /AWS1/CX_GLUCLIENTEXC
    /AWS1/CX_GLUSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_catalogid TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING

The ID of the Data Catalog where the table resides. If none is supplied, the account ID is used by default.

Optional arguments:

iv_databasename TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING

The database where the table resides.

iv_tablename TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING

The name of the table for which statistics is generated.

iv_maxresults TYPE /AWS1/GLUPAGESIZE /AWS1/GLUPAGESIZE

The maximum size of the response.

iv_nexttoken TYPE /AWS1/GLUTOKEN /AWS1/GLUTOKEN

A continuation token, if this is a continuation call.

RETURNING

oo_output TYPE REF TO /aws1/cl_glulstmaterializedv01 /AWS1/CL_GLULSTMATERIALIZEDV01

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->lstmaterializedviewrefresh00(
  iv_catalogid = |string|
  iv_databasename = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_tablename = |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_materializedviewrefres02( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_accountid = lo_row_1->get_customerid( ).
      lv_uuidv4 = lo_row_1->get_materializedviewrefres00( ).
      lv_databasename = lo_row_1->get_databasename( ).
      lv_tablename = lo_row_1->get_tablename( ).
      lv_catalogidstring = lo_row_1->get_catalogid( ).
      lv_role = lo_row_1->get_role( ).
      lv_materializedviewrefresh = lo_row_1->get_status( ).
      lv_timestamp = lo_row_1->get_creationtime( ).
      lv_timestamp = lo_row_1->get_lastupdated( ).
      lv_timestamp = lo_row_1->get_starttime( ).
      lv_timestamp = lo_row_1->get_endtime( ).
      lv_descriptionstring = lo_row_1->get_errormessage( ).
      lv_nonnegativedouble = lo_row_1->get_dpuseconds( ).
      lv_materializedviewrefresh_1 = lo_row_1->get_refreshtype( ).
      lv_bytecount = lo_row_1->get_processedbytes( ).
    ENDIF.
  ENDLOOP.
  lv_token = lo_result->get_nexttoken( ).
ENDIF.