Skip to content

/AWS1/IF_LKF=>REMOVELFTAGSFROMRESOURCE()

About RemoveLFTagsFromResource

Removes an LF-tag from the resource. Only database, table, or tableWithColumns resource are allowed. To tag columns, use the column inclusion list in tableWithColumns to specify column input.

Method Signature

METHODS /AWS1/IF_LKF~REMOVELFTAGSFROMRESOURCE
  IMPORTING
    !IV_CATALOGID TYPE /AWS1/LKFCATALOGIDSTRING OPTIONAL
    !IO_RESOURCE TYPE REF TO /AWS1/CL_LKFRESOURCE OPTIONAL
    !IT_LFTAGS TYPE /AWS1/CL_LKFLFTAGPAIR=>TT_LFTAGSLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lkfremlftgsfrmresrc01
  RAISING
    /AWS1/CX_LKFACCESSDENIEDEX
    /AWS1/CX_LKFCONCURRENTMODEX
    /AWS1/CX_LKFENTITYNOTFOUNDEX
    /AWS1/CX_LKFGLUEENCEXCEPTION
    /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

Required arguments:

io_resource TYPE REF TO /AWS1/CL_LKFRESOURCE /AWS1/CL_LKFRESOURCE

The database, table, or column resource where you want to remove an LF-tag.

it_lftags TYPE /AWS1/CL_LKFLFTAGPAIR=>TT_LFTAGSLIST TT_LFTAGSLIST

The LF-tags to be removed from the resource.

Optional arguments:

iv_catalogid TYPE /AWS1/LKFCATALOGIDSTRING /AWS1/LKFCATALOGIDSTRING

The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

RETURNING

oo_output TYPE REF TO /aws1/cl_lkfremlftgsfrmresrc01 /AWS1/CL_LKFREMLFTGSFRMRESRC01

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->removelftagsfromresource(
  io_resource = new /aws1/cl_lkfresource(
    io_catalog = new /aws1/cl_lkfcatalogresource( |string| )
    io_database = new /aws1/cl_lkfdatabaseresource(
      iv_catalogid = |string|
      iv_name = |string|
    )
    io_datacellsfilter = new /aws1/cl_lkfdatacellsfiltresrc(
      iv_databasename = |string|
      iv_name = |string|
      iv_tablecatalogid = |string|
      iv_tablename = |string|
    )
    io_datalocation = new /aws1/cl_lkfdatalocresource(
      iv_catalogid = |string|
      iv_resourcearn = |string|
    )
    io_lftag = new /aws1/cl_lkflftagkeyresource(
      it_tagvalues = VALUE /aws1/cl_lkftagvaluelist_w=>tt_tagvaluelist(
        ( new /aws1/cl_lkftagvaluelist_w( |string| ) )
      )
      iv_catalogid = |string|
      iv_tagkey = |string|
    )
    io_lftagexpression = new /aws1/cl_lkflftagxprsnresource(
      iv_catalogid = |string|
      iv_name = |string|
    )
    io_lftagpolicy = new /aws1/cl_lkflftagplyresource(
      it_expression = VALUE /aws1/cl_lkflftag=>tt_expression(
        (
          new /aws1/cl_lkflftag(
            it_tagvalues = VALUE /aws1/cl_lkftagvaluelist_w=>tt_tagvaluelist(
              ( new /aws1/cl_lkftagvaluelist_w( |string| ) )
            )
            iv_tagkey = |string|
          )
        )
      )
      iv_catalogid = |string|
      iv_expressionname = |string|
      iv_resourcetype = |string|
    )
    io_table = new /aws1/cl_lkftableresource(
      io_tablewildcard = new /aws1/cl_lkftablewildcard( )
      iv_catalogid = |string|
      iv_databasename = |string|
      iv_name = |string|
    )
    io_tablewithcolumns = new /aws1/cl_lkftblwthcolumnsresrc(
      io_columnwildcard = new /aws1/cl_lkfcolumnwildcard(
        it_excludedcolumnnames = VALUE /aws1/cl_lkfcolumnnames_w=>tt_columnnames(
          ( new /aws1/cl_lkfcolumnnames_w( |string| ) )
        )
      )
      it_columnnames = VALUE /aws1/cl_lkfcolumnnames_w=>tt_columnnames(
        ( new /aws1/cl_lkfcolumnnames_w( |string| ) )
      )
      iv_catalogid = |string|
      iv_databasename = |string|
      iv_name = |string|
    )
  )
  it_lftags = VALUE /aws1/cl_lkflftagpair=>tt_lftagslist(
    (
      new /aws1/cl_lkflftagpair(
        it_tagvalues = VALUE /aws1/cl_lkftagvaluelist_w=>tt_tagvaluelist(
          ( new /aws1/cl_lkftagvaluelist_w( |string| ) )
        )
        iv_catalogid = |string|
        iv_tagkey = |string|
      )
    )
  )
  iv_catalogid = |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_failures( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_lftagpair = lo_row_1->get_lftag( ).
      IF lo_lftagpair IS NOT INITIAL.
        lv_catalogidstring = lo_lftagpair->get_catalogid( ).
        lv_lftagkey = lo_lftagpair->get_tagkey( ).
        LOOP AT lo_lftagpair->get_tagvalues( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_lftagvalue = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lo_errordetail = lo_row_1->get_error( ).
      IF lo_errordetail IS NOT INITIAL.
        lv_namestring = lo_errordetail->get_errorcode( ).
        lv_descriptionstring = lo_errordetail->get_errormessage( ).
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDIF.