/AWS1/IF_MGN=>GETNETMIGRMAPPERSEGCNSTRCT()¶
About GetNetworkMigrationMapperSegmentConstruct¶
Retrieves detailed information about a specific construct within a mapper segment, including its properties and configuration data.
Method Signature¶
METHODS /AWS1/IF_MGN~GETNETMIGRMAPPERSEGCNSTRCT
IMPORTING
!IV_NETWORKMIGRATIONDEFNID TYPE /AWS1/MGNNETWORKMIGRDEFNID OPTIONAL
!IV_NETWORKMIGRATIONEXECID TYPE /AWS1/MGNNETWORKMIGREXECID OPTIONAL
!IV_SEGMENTID TYPE /AWS1/MGNSEGMENTID OPTIONAL
!IV_CONSTRUCTID TYPE /AWS1/MGNCONSTRUCTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mgngetnetmigmapsegc01
RAISING
/AWS1/CX_MGNACCESSDENIEDEX
/AWS1/CX_MGNRESOURCENOTFOUNDEX
/AWS1/CX_MGNVALIDATIONEX
/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.
iv_networkmigrationexecid TYPE /AWS1/MGNNETWORKMIGREXECID /AWS1/MGNNETWORKMIGREXECID¶
The unique identifier of the network migration execution.
iv_segmentid TYPE /AWS1/MGNSEGMENTID /AWS1/MGNSEGMENTID¶
The unique identifier of the mapper segment.
iv_constructid TYPE /AWS1/MGNCONSTRUCTID /AWS1/MGNCONSTRUCTID¶
The unique identifier of the construct within the segment.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mgngetnetmigmapsegc01 /AWS1/CL_MGNGETNETMIGMAPSEGC01¶
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->getnetmigrmappersegcnstrct(
iv_constructid = |string|
iv_networkmigrationdefnid = |string|
iv_networkmigrationexecid = |string|
iv_segmentid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_networkmigrationmappers = lo_result->get_construct( ).
IF lo_networkmigrationmappers IS NOT INITIAL.
lv_constructid = lo_networkmigrationmappers->get_constructid( ).
lv_networkmigrationmappers_1 = lo_networkmigrationmappers->get_constructtype( ).
lv_segmentconstructname = lo_networkmigrationmappers->get_name( ).
lv_segmentconstructdescrip = lo_networkmigrationmappers->get_description( ).
lv_logicalid = lo_networkmigrationmappers->get_logicalid( ).
lv_timestamp = lo_networkmigrationmappers->get_createdat( ).
lv_timestamp = lo_networkmigrationmappers->get_updatedat( ).
LOOP AT lo_networkmigrationmappers->get_properties( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_marshalledresourcedefin = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
Sample GetNetworkMigrationMapperSegmentConstruct call¶
Sample GetNetworkMigrationMapperSegmentConstruct call
DATA(lo_result) = lo_client->getnetmigrmappersegcnstrct(
iv_constructid = |abc45678-abcd-abcd-efab-012345678abc|
iv_networkmigrationdefnid = |nmd-01234567891234567|
iv_networkmigrationexecid = |01234567-abcd-abcd-abcd-0123456789ab|
iv_segmentid = |12345678-abcd-abcd-efab-0123456789ab|
).