/AWS1/IF_IOM=>CREATEMETADATATRANSFERJOB()¶
About CreateMetadataTransferJob¶
Creates a new metadata transfer job.
Method Signature¶
METHODS /AWS1/IF_IOM~CREATEMETADATATRANSFERJOB
IMPORTING
!IV_METADATATRANSFERJOBID TYPE /AWS1/IOMID OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IOMDESCRIPTION OPTIONAL
!IT_SOURCES TYPE /AWS1/CL_IOMSOURCECONF=>TT_SOURCECONFIGURATIONS OPTIONAL
!IO_DESTINATION TYPE REF TO /AWS1/CL_IOMDESTINATIONCONF OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iomcremetxferjobrsp
RAISING
/AWS1/CX_IOMACCESSDENIEDEX
/AWS1/CX_IOMCONFLICTEXCEPTION
/AWS1/CX_IOMINTERNALSERVEREX
/AWS1/CX_IOMRESOURCENOTFOUNDEX
/AWS1/CX_IOMSERVICEQUOTAEXCDEX
/AWS1/CX_IOMTHROTTLINGEX
/AWS1/CX_IOMVALIDATIONEX
/AWS1/CX_IOMCLIENTEXC
/AWS1/CX_IOMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_sources TYPE /AWS1/CL_IOMSOURCECONF=>TT_SOURCECONFIGURATIONS TT_SOURCECONFIGURATIONS¶
The metadata transfer job sources.
io_destination TYPE REF TO /AWS1/CL_IOMDESTINATIONCONF /AWS1/CL_IOMDESTINATIONCONF¶
The metadata transfer job destination.
Optional arguments:¶
iv_metadatatransferjobid TYPE /AWS1/IOMID /AWS1/IOMID¶
The metadata transfer job Id.
iv_description TYPE /AWS1/IOMDESCRIPTION /AWS1/IOMDESCRIPTION¶
The metadata transfer job description.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iomcremetxferjobrsp /AWS1/CL_IOMCREMETXFERJOBRSP¶
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->createmetadatatransferjob(
io_destination = new /aws1/cl_iomdestinationconf(
io_iottwinmakerconfiguration = new /aws1/cl_iomiottwinmakerdstc00( |string| )
io_s3configuration = new /aws1/cl_ioms3destinationconf( |string| )
iv_type = |string|
)
it_sources = VALUE /aws1/cl_iomsourceconf=>tt_sourceconfigurations(
(
new /aws1/cl_iomsourceconf(
io_iotsitewiseconfiguration = new /aws1/cl_iomiotsitewisesrcconf(
it_filters = VALUE /aws1/cl_iomiotsitewisesrcco00=>tt_iotsitewisesrcconffilters(
(
new /aws1/cl_iomiotsitewisesrcco00(
io_filterbyasset = new /aws1/cl_iomfilterbyasset(
iv_assetexternalid = |string|
iv_assetid = |string|
iv_includeassetmodel = ABAP_TRUE
iv_includeoffspring = ABAP_TRUE
)
io_filterbyassetmodel = new /aws1/cl_iomfilterbyassetmodel(
iv_assetmodelexternalid = |string|
iv_assetmodelid = |string|
iv_includeassets = ABAP_TRUE
iv_includeoffspring = ABAP_TRUE
)
)
)
)
)
io_iottwinmakerconfiguration = new /aws1/cl_iomiottwinmakersrcc00(
it_filters = VALUE /aws1/cl_iomiottwinmakersrcc01=>tt_iottwinmakersrcconffilters(
(
new /aws1/cl_iomiottwinmakersrcc01(
io_filterbycomponenttype = new /aws1/cl_iomfiltbycomponentt00( |string| )
io_filterbyentity = new /aws1/cl_iomfilterbyentity( |string| )
)
)
)
iv_workspace = |string|
)
io_s3configuration = new /aws1/cl_ioms3sourceconf( |string| )
iv_type = |string|
)
)
)
iv_description = |string|
iv_metadatatransferjobid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_id = lo_result->get_metadatatransferjobid( ).
lv_twinmakerarn = lo_result->get_arn( ).
lv_timestamp = lo_result->get_creationdatetime( ).
lo_metadatatransferjobstat = lo_result->get_status( ).
IF lo_metadatatransferjobstat IS NOT INITIAL.
lv_metadatatransferjobstat_1 = lo_metadatatransferjobstat->get_state( ).
lo_errordetails = lo_metadatatransferjobstat->get_error( ).
IF lo_errordetails IS NOT INITIAL.
lv_errorcode = lo_errordetails->get_code( ).
lv_errormessage = lo_errordetails->get_message( ).
ENDIF.
lv_integer = lo_metadatatransferjobstat->get_queuedposition( ).
ENDIF.
ENDIF.