/AWS1/IF_R5A=>LISTPLANEXECUTIONEVENTS()
¶
About ListPlanExecutionEvents¶
Lists the events that occurred during a plan execution. These events provide a detailed timeline of the execution process.
Method Signature¶
METHODS /AWS1/IF_R5A~LISTPLANEXECUTIONEVENTS
IMPORTING
!IV_PLANARN TYPE /AWS1/R5APLANARN OPTIONAL
!IV_EXECUTIONID TYPE /AWS1/R5AEXECUTIONID OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/R5ALISTEXECEVTSMAXRSLTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/R5ASTRING OPTIONAL
!IV_NAME TYPE /AWS1/R5ASTEPNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5alstplanexecevtsrsp
RAISING
/AWS1/CX_R5AACCESSDENIEDEX
/AWS1/CX_R5ARESOURCENOTFOUNDEX
/AWS1/CX_R5ACLIENTEXC
/AWS1/CX_R5ASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_planarn
TYPE /AWS1/R5APLANARN
/AWS1/R5APLANARN
¶
The Amazon Resource Name (ARN) of the plan.
iv_executionid
TYPE /AWS1/R5AEXECUTIONID
/AWS1/R5AEXECUTIONID
¶
The execution identifier of a plan execution.
Optional arguments:¶
iv_maxresults
TYPE /AWS1/R5ALISTEXECEVTSMAXRSLTS
/AWS1/R5ALISTEXECEVTSMAXRSLTS
¶
The number of objects that you want to return with this call.
iv_nexttoken
TYPE /AWS1/R5ASTRING
/AWS1/R5ASTRING
¶
Specifies that you want to receive the next page of results. Valid only if you received a
nextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'snextToken
response to request the next page of results.
iv_name
TYPE /AWS1/R5ASTEPNAME
/AWS1/R5ASTEPNAME
¶
The name of the plan execution event.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_r5alstplanexecevtsrsp
/AWS1/CL_R5ALSTPLANEXECEVTSRSP
¶
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->listplanexecutionevents(
iv_executionid = |string|
iv_maxresults = 123
iv_name = |string|
iv_nexttoken = |string|
iv_planarn = |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_timestamp = lo_row_1->get_timestamp( ).
lv_executioneventtype = lo_row_1->get_type( ).
lv_stepname = lo_row_1->get_stepname( ).
lv_executionblocktype = lo_row_1->get_executionblocktype( ).
LOOP AT lo_row_1->get_resources( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_row_1->get_error( ).
lv_string = lo_row_1->get_description( ).
lv_string = lo_row_1->get_eventid( ).
lv_string = lo_row_1->get_previouseventid( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.