/AWS1/IF_MHO=>LISTTEMPLATESTEPS()¶
About ListTemplateSteps¶
List the steps in a template.
Method Signature¶
METHODS /AWS1/IF_MHO~LISTTEMPLATESTEPS
IMPORTING
!IV_MAXRESULTS TYPE /AWS1/MHOMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/MHONEXTTOKEN OPTIONAL
!IV_TEMPLATEID TYPE /AWS1/MHOTEMPLATEID OPTIONAL
!IV_STEPGROUPID TYPE /AWS1/MHOSTEPGROUPID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mholisttmplstepsrsp
RAISING
/AWS1/CX_MHOACCESSDENIEDEX
/AWS1/CX_MHOINTERNALSERVEREX
/AWS1/CX_MHORESOURCENOTFOUNDEX
/AWS1/CX_MHOTHROTTLINGEX
/AWS1/CX_MHOVALIDATIONEX
/AWS1/CX_MHOCLIENTEXC
/AWS1/CX_MHOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_templateid TYPE /AWS1/MHOTEMPLATEID /AWS1/MHOTEMPLATEID¶
The ID of the template.
iv_stepgroupid TYPE /AWS1/MHOSTEPGROUPID /AWS1/MHOSTEPGROUPID¶
The ID of the step group.
Optional arguments:¶
iv_maxresults TYPE /AWS1/MHOMAXRESULTS /AWS1/MHOMAXRESULTS¶
The maximum number of results that can be returned.
iv_nexttoken TYPE /AWS1/MHONEXTTOKEN /AWS1/MHONEXTTOKEN¶
The pagination token.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mholisttmplstepsrsp /AWS1/CL_MHOLISTTMPLSTEPSRSP¶
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->listtemplatesteps(
iv_maxresults = 123
iv_nexttoken = |string|
iv_stepgroupid = |string|
iv_templateid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nexttoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_templatestepsummarylist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_id( ).
lv_string = lo_row_1->get_stepgroupid( ).
lv_string = lo_row_1->get_templateid( ).
lv_string = lo_row_1->get_name( ).
lv_stepactiontype = lo_row_1->get_stepactiontype( ).
lv_targettype = lo_row_1->get_targettype( ).
lv_owner = lo_row_1->get_owner( ).
LOOP AT lo_row_1->get_previous( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stringlistmember = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_next( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stringlistmember = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.