/AWS1/IF_GLU=>BATCHGETITERABLEFORMS()¶
About BatchGetIterableForms¶
Retrieves multiple items from an iterable form on an asset in Glue Data Catalog in a single request.
Method Signature¶
METHODS /AWS1/IF_GLU~BATCHGETITERABLEFORMS
IMPORTING
!IV_ASSETIDENTIFIER TYPE /AWS1/GLUASSETID OPTIONAL
!IV_ITERABLEFORMNAME TYPE /AWS1/GLUITERABLEFORMNAME OPTIONAL
!IT_ITEMIDENTIFIERS TYPE /AWS1/CL_GLUITEMIDLIST_W=>TT_ITEMIDENTIFIERLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glubtcgtiterablefrm01
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_assetidentifier TYPE /AWS1/GLUASSETID /AWS1/GLUASSETID¶
The unique identifier of the asset.
iv_iterableformname TYPE /AWS1/GLUITERABLEFORMNAME /AWS1/GLUITERABLEFORMNAME¶
The name of the iterable form to retrieve items from.
it_itemidentifiers TYPE /AWS1/CL_GLUITEMIDLIST_W=>TT_ITEMIDENTIFIERLIST TT_ITEMIDENTIFIERLIST¶
The list of item identifiers to retrieve. Each identifier can be an item ID or item name.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_glubtcgtiterablefrm01 /AWS1/CL_GLUBTCGTITERABLEFRM01¶
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->batchgetiterableforms(
it_itemidentifiers = VALUE /aws1/cl_gluitemidlist_w=>tt_itemidentifierlist(
( new /aws1/cl_gluitemidlist_w( |string| ) )
)
iv_assetidentifier = |string|
iv_iterableformname = |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_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_itemid = lo_row_1->get_itemid( ).
lv_itemname = lo_row_1->get_itemname( ).
LOOP AT lo_row_1->get_glossaryterms( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_glossarytermid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_forms( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_formtypeid = lo_value->get_formtypeid( ).
lv_formcontent = lo_value->get_content( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_attachments( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_formtypeid = lo_value->get_formtypeid( ).
lv_formcontent = lo_value->get_content( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_errors( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_itemidentifier = lo_row_6->get_itemidentifier( ).
lv_itemerrorcode = lo_row_6->get_code( ).
lv_itemerrormessage = lo_row_6->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.