Skip to content

/AWS1/IF_MGN=>LISTNETWORKMIGRATIONEXECS()

About ListNetworkMigrationExecutions

Lists network migration execution instances for a given definition, showing the status and progress of each execution.

Method Signature

METHODS /AWS1/IF_MGN~LISTNETWORKMIGRATIONEXECS
  IMPORTING
    !IV_NETWORKMIGRATIONDEFNID TYPE /AWS1/MGNNETWORKMIGRDEFNID OPTIONAL
    !IO_FILTERS TYPE REF TO /AWS1/CL_MGNLISTNETMIGEXREQFLT OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/MGNPAGINATIONTOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/MGNMAXRESULTSTYPE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mgnlstnetmigrexecsrsp
  RAISING
    /AWS1/CX_MGNACCESSDENIEDEX
    /AWS1/CX_MGNRESOURCENOTFOUNDEX
    /AWS1/CX_MGNCLIENTEXC
    /AWS1/CX_MGNSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_networkmigrationdefnid TYPE /AWS1/MGNNETWORKMIGRDEFNID /AWS1/MGNNETWORKMIGRDEFNID

The unique identifier of the network migration definition to list executions for.

Optional arguments:

io_filters TYPE REF TO /AWS1/CL_MGNLISTNETMIGEXREQFLT /AWS1/CL_MGNLISTNETMIGEXREQFLT

Filters to apply when listing executions, such as status or execution ID.

iv_nexttoken TYPE /AWS1/MGNPAGINATIONTOKEN /AWS1/MGNPAGINATIONTOKEN

The token for the next page of results.

iv_maxresults TYPE /AWS1/MGNMAXRESULTSTYPE /AWS1/MGNMAXRESULTSTYPE

The maximum number of results to return in a single call.

RETURNING

oo_output TYPE REF TO /aws1/cl_mgnlstnetmigrexecsrsp /AWS1/CL_MGNLSTNETMIGREXECSRSP

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->listnetworkmigrationexecs(
  io_filters = new /aws1/cl_mgnlistnetmigexreqflt(
    it_networkmigrationexecids = VALUE /aws1/cl_mgnnetmigexeidsflt_w=>tt_networkmigrexecidsfilter(
      ( new /aws1/cl_mgnnetmigexeidsflt_w( |string| ) )
    )
    it_networkmigrexecstatuses = VALUE /aws1/cl_mgnnetmigextatusesf00=>tt_networkmigrexecstatsfilter(
      ( new /aws1/cl_mgnnetmigextatusesf00( |string| ) )
    )
  )
  iv_maxresults = 123
  iv_networkmigrationdefnid = |string|
  iv_nexttoken = |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_networkmigrationdefinit = lo_row_1->get_networkmigrationdefnid( ).
      lv_networkmigrationexecuti = lo_row_1->get_networkmigrationexecid( ).
      lv_executionstatus = lo_row_1->get_status( ).
      lv_executionstage = lo_row_1->get_stage( ).
      lv_executionstageactivity = lo_row_1->get_activity( ).
      lv_timestamp = lo_row_1->get_createdat( ).
      lv_timestamp = lo_row_1->get_updatedat( ).
      LOOP AT lo_row_1->get_tags( ) into ls_row_2.
        lv_key = ls_row_2-key.
        lo_value = ls_row_2-value.
        IF lo_value IS NOT INITIAL.
          lv_tagvalue = lo_value->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.

Sample ListNetworkMigrationExecutions call

Sample ListNetworkMigrationExecutions call

DATA(lo_result) = lo_client->listnetworkmigrationexecs( iv_networkmigrationdefnid = |nmd-01234567891234567| ) .