Skip to content

/AWS1/IF_CWL=>DESCRIBELOOKUPTABLES()

About DescribeLookupTables

Retrieves metadata about lookup tables in your account. You can optionally filter the results by table name prefix. Results are sorted by table name in ascending order.

Method Signature

METHODS /AWS1/IF_CWL~DESCRIBELOOKUPTABLES
  IMPORTING
    !IV_LOOKUPTABLENAMEPREFIX TYPE /AWS1/CWLLOOKUPTABLENAME OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/CWLDESCRLKUPTBLSMAXRSLTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/CWLNEXTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwldescrlkuptablesrsp
  RAISING
    /AWS1/CX_CWLACCESSDENIEDEX
    /AWS1/CX_CWLINVALIDPARAMETEREX
    /AWS1/CX_CWLRESOURCENOTFOUNDEX
    /AWS1/CX_CWLSERVICEUNAVAILEX
    /AWS1/CX_CWLCLIENTEXC
    /AWS1/CX_CWLSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_lookuptablenameprefix TYPE /AWS1/CWLLOOKUPTABLENAME /AWS1/CWLLOOKUPTABLENAME

A prefix to filter lookup tables by name. Only tables whose names start with this prefix are returned. If you don't specify a prefix, all tables in the account and Region are returned.

iv_maxresults TYPE /AWS1/CWLDESCRLKUPTBLSMAXRSLTS /AWS1/CWLDESCRLKUPTBLSMAXRSLTS

The maximum number of lookup tables to return in the response. The default value is 50 and the maximum value is 100.

iv_nexttoken TYPE /AWS1/CWLNEXTTOKEN /AWS1/CWLNEXTTOKEN

The token for the next set of items to return. (You received this token from a previous call.)

RETURNING

oo_output TYPE REF TO /aws1/cl_cwldescrlkuptablesrsp /AWS1/CL_CWLDESCRLKUPTABLESRSP

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->describelookuptables(
  iv_lookuptablenameprefix = |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_lookuptables( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_arn = lo_row_1->get_lookuptablearn( ).
      lv_lookuptablename = lo_row_1->get_lookuptablename( ).
      lv_lookuptabledescription = lo_row_1->get_description( ).
      LOOP AT lo_row_1->get_tablefields( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_string = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_recordscount = lo_row_1->get_recordscount( ).
      lv_storedbytes = lo_row_1->get_sizebytes( ).
      lv_timestamp = lo_row_1->get_lastupdatedtime( ).
      lv_kmskeyid = lo_row_1->get_kmskeyid( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.