Skip to content

/AWS1/IF_LKF=>LISTLFTAGEXPRESSIONS()

About ListLFTagExpressions

Returns the LF-Tag expressions in caller’s account filtered based on caller's permissions. Data Lake and read only admins implicitly can see all tag expressions in their account, else caller needs DESCRIBE permissions on tag expression.

Method Signature

METHODS /AWS1/IF_LKF~LISTLFTAGEXPRESSIONS
  IMPORTING
    !IV_CATALOGID TYPE /AWS1/LKFCATALOGIDSTRING OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/LKFPAGESIZE OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/LKFTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lkflistlftagxprsnsrsp
  RAISING
    /AWS1/CX_LKFACCESSDENIEDEX
    /AWS1/CX_LKFENTITYNOTFOUNDEX
    /AWS1/CX_LKFINTERNALSERVICEEX
    /AWS1/CX_LKFINVALIDINPUTEX
    /AWS1/CX_LKFOPERATIONTIMEOUTEX
    /AWS1/CX_LKFCLIENTEXC
    /AWS1/CX_LKFSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_catalogid TYPE /AWS1/LKFCATALOGIDSTRING /AWS1/LKFCATALOGIDSTRING

The identifier for the Data Catalog. By default, the account ID.

iv_maxresults TYPE /AWS1/LKFPAGESIZE /AWS1/LKFPAGESIZE

The maximum number of results to return.

iv_nexttoken TYPE /AWS1/LKFTOKEN /AWS1/LKFTOKEN

A continuation token, if this is not the first call to retrieve this list.

RETURNING

oo_output TYPE REF TO /aws1/cl_lkflistlftagxprsnsrsp /AWS1/CL_LKFLISTLFTAGXPRSNSRSP

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->listlftagexpressions(
  iv_catalogid = |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_lftagexpressions( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_namestring = lo_row_1->get_name( ).
      lv_descriptionstring = lo_row_1->get_description( ).
      lv_catalogidstring = lo_row_1->get_catalogid( ).
      LOOP AT lo_row_1->get_expression( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_lftagkey = lo_row_3->get_tagkey( ).
          LOOP AT lo_row_3->get_tagvalues( ) into lo_row_4.
            lo_row_5 = lo_row_4.
            IF lo_row_5 IS NOT INITIAL.
              lv_lftagvalue = lo_row_5->get_value( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv_token = lo_result->get_nexttoken( ).
ENDIF.