/AWS1/IF_SAG=>BATCHGETARTIFACTMETADATA()¶
About BatchGetArtifactMetadata¶
Retrieve the list of artifact metadata for the given agent space
Method Signature¶
METHODS /AWS1/IF_SAG~BATCHGETARTIFACTMETADATA
IMPORTING
!IV_AGENTSPACEID TYPE /AWS1/SAGAGENTSPACEID OPTIONAL
!IT_ARTIFACTIDS TYPE /AWS1/CL_SAGARTIFACTIDS_W=>TT_ARTIFACTIDS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagbtcgetartfctmetout
RAISING
/AWS1/CX_SAGACCESSDENIEDEX
/AWS1/CX_SAGINTERNALSERVEREX
/AWS1/CX_SAGRESOURCENOTFOUNDEX
/AWS1/CX_SAGTHROTTLINGEX
/AWS1/CX_SAGVLDTNEXCEPTION
/AWS1/CX_SAGCLIENTEXC
/AWS1/CX_SAGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_agentspaceid TYPE /AWS1/SAGAGENTSPACEID /AWS1/SAGAGENTSPACEID¶
Unique identifier of the agent space
it_artifactids TYPE /AWS1/CL_SAGARTIFACTIDS_W=>TT_ARTIFACTIDS TT_ARTIFACTIDS¶
List of artifact identifiers
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sagbtcgetartfctmetout /AWS1/CL_SAGBTCGETARTFCTMETOUT¶
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->batchgetartifactmetadata(
it_artifactids = VALUE /aws1/cl_sagartifactids_w=>tt_artifactids(
( new /aws1/cl_sagartifactids_w( |string| ) )
)
iv_agentspaceid = |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_artifactmetadatalist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_agentspaceid = lo_row_1->get_agentspaceid( ).
lv_artifactid = lo_row_1->get_artifactid( ).
lv_string = lo_row_1->get_filename( ).
lv_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
ENDIF.