/AWS1/IF_SAG=>BATCHDELETECODEREVIEWS()¶
About BatchDeleteCodeReviews¶
Deletes one or more code reviews from an agent space.
Method Signature¶
METHODS /AWS1/IF_SAG~BATCHDELETECODEREVIEWS
IMPORTING
!IT_CODEREVIEWIDS TYPE /AWS1/CL_SAGCODEREVIEWIDLIST_W=>TT_CODEREVIEWIDLIST OPTIONAL
!IV_AGENTSPACEID TYPE /AWS1/SAGSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagbtcdelcoderevwsout
RAISING
/AWS1/CX_SAGCLIENTEXC
/AWS1/CX_SAGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_codereviewids TYPE /AWS1/CL_SAGCODEREVIEWIDLIST_W=>TT_CODEREVIEWIDLIST TT_CODEREVIEWIDLIST¶
The list of code review identifiers to delete.
iv_agentspaceid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING¶
The unique identifier of the agent space that contains the code reviews to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sagbtcdelcoderevwsout /AWS1/CL_SAGBTCDELCODEREVWSOUT¶
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->batchdeletecodereviews(
it_codereviewids = VALUE /aws1/cl_sagcodereviewidlist_w=>tt_codereviewidlist(
( new /aws1/cl_sagcodereviewidlist_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_deleted( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_failed( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_codereviewid( ).
lv_string = lo_row_3->get_reason( ).
ENDIF.
ENDLOOP.
ENDIF.