Skip to content

/AWS1/IF_GLU=>ASSOCIATEGLOSSARYTERMS()

About AssociateGlossaryTerms

Associates one or more glossary terms with an asset in Glue Data Catalog.

Method Signature

METHODS /AWS1/IF_GLU~ASSOCIATEGLOSSARYTERMS
  IMPORTING
    !IV_ASSETIDENTIFIER TYPE /AWS1/GLUASSETID OPTIONAL
    !IT_GLOSSARYTERMIDENTIFIERS TYPE /AWS1/CL_GLUGLOSSARYTRMIDLST_W=>TT_GLOSSARYTERMIDLIST OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/GLUHASHSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gluascglossarytrmsrsp
  RAISING
    /AWS1/CX_GLUACCESSDENIEDEX
    /AWS1/CX_GLUCONCURRENTMODEX
    /AWS1/CX_GLUENTITYNOTFOUNDEX
    /AWS1/CX_GLUINTERNALSERVICEEX
    /AWS1/CX_GLUINVALIDINPUTEX
    /AWS1/CX_GLUTHROTTLINGEX
    /AWS1/CX_GLUCLIENTEXC
    /AWS1/CX_GLUSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_assetidentifier TYPE /AWS1/GLUASSETID /AWS1/GLUASSETID

The unique identifier of the asset to associate glossary terms with.

it_glossarytermidentifiers TYPE /AWS1/CL_GLUGLOSSARYTRMIDLST_W=>TT_GLOSSARYTERMIDLIST TT_GLOSSARYTERMIDLIST

The list of glossary term identifiers to associate with the asset.

Optional arguments:

iv_clienttoken TYPE /AWS1/GLUHASHSTRING /AWS1/GLUHASHSTRING

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

RETURNING

oo_output TYPE REF TO /aws1/cl_gluascglossarytrmsrsp /AWS1/CL_GLUASCGLOSSARYTRMSRSP

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->associateglossaryterms(
  it_glossarytermidentifiers = VALUE /aws1/cl_gluglossarytrmidlst_w=>tt_glossarytermidlist(
    ( new /aws1/cl_gluglossarytrmidlst_w( |string| ) )
  )
  iv_assetidentifier = |string|
  iv_clienttoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_assetid = lo_result->get_assetidentifier( ).
  LOOP AT lo_result->get_glossaryterms( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_glossarytermid = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
ENDIF.