Skip to content

/AWS1/IF_GLU=>GETASSET()

About GetAsset

Retrieves the metadata for an asset in Glue Data Catalog, including its forms, additional attachments, and associated glossary terms.

Method Signature

METHODS /AWS1/IF_GLU~GETASSET
  IMPORTING
    !IV_IDENTIFIER TYPE /AWS1/GLUASSETID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glugetassetoutput
  RAISING
    /AWS1/CX_GLUACCESSDENIEDEX
    /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_identifier TYPE /AWS1/GLUASSETID /AWS1/GLUASSETID

The unique identifier of the asset to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_glugetassetoutput /AWS1/CL_GLUGETASSETOUTPUT

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->getasset( |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_id( ).
  lv_assetname = lo_result->get_name( ).
  lv_assetdescription = lo_result->get_description( ).
  lv_createdat = lo_result->get_createdat( ).
  lv_updatedat = lo_result->get_updatedat( ).
  lv_assettypeid = lo_result->get_assettypeid( ).
  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.
  LOOP AT lo_result->get_forms( ) into ls_row_2.
    lv_key = ls_row_2-key.
    lo_value = ls_row_2-value.
    IF lo_value IS NOT INITIAL.
      lv_formtypeid = lo_value->get_formtypeid( ).
      lv_formcontent = lo_value->get_content( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_attachments( ) into ls_row_2.
    lv_key = ls_row_2-key.
    lo_value = ls_row_2-value.
    IF lo_value IS NOT INITIAL.
      lv_formtypeid = lo_value->get_formtypeid( ).
      lv_formcontent = lo_value->get_content( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_iterableforms( ) into ls_row_3.
    lv_key_1 = ls_row_3-key.
    lo_value_1 = ls_row_3-value.
    IF lo_value_1 IS NOT INITIAL.
      lv_formtypeid = lo_value_1->get_formtypeid( ).
    ENDIF.
  ENDLOOP.
ENDIF.