Skip to content

/AWS1/CL_GLU=>LISTENTITIES()

About ListEntities

Returns the available entities supported by the connection type.

Method Signature

IMPORTING

Optional arguments:

iv_connectionname TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING

A name for the connection that has required credentials to query any connection type.

iv_catalogid TYPE /AWS1/GLUCATALOGIDSTRING /AWS1/GLUCATALOGIDSTRING

The catalog ID of the catalog that contains the connection. This can be null, By default, the Amazon Web Services Account ID is the catalog ID.

iv_parententityname TYPE /AWS1/GLUENTITYNAME /AWS1/GLUENTITYNAME

Name of the parent entity for which you want to list the children. This parameter takes a fully-qualified path of the entity in order to list the child entities.

iv_nexttoken TYPE /AWS1/GLUNEXTTOKEN /AWS1/GLUNEXTTOKEN

A continuation token, included if this is a continuation call.

iv_datastoreapiversion TYPE /AWS1/GLUAPIVERSION /AWS1/GLUAPIVERSION

The API version of the SaaS connector.

RETURNING

oo_output TYPE REF TO /aws1/cl_glulistentsresponse /AWS1/CL_GLULISTENTSRESPONSE

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->/aws1/if_glu~listentities(
  iv_catalogid = |string|
  iv_connectionname = |string|
  iv_datastoreapiversion = |string|
  iv_nexttoken = |string|
  iv_parententityname = |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_entities( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_entityname = lo_row_1->get_entityname( ).
      lv_entitylabel = lo_row_1->get_label( ).
      lv_isparententity = lo_row_1->get_isparententity( ).
      lv_entitydescription = lo_row_1->get_description( ).
      lv_category = lo_row_1->get_category( ).
      LOOP AT lo_row_1->get_customproperties( ) into ls_row_2.
        lv_key = ls_row_2-key.
        lo_value = ls_row_2-value.
        IF lo_value IS NOT INITIAL.
          lv_string = lo_value->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.