/AWS1/IF_IOM=>GETMETADATATRANSFERJOB()
¶
About GetMetadataTransferJob¶
Gets a nmetadata transfer job.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_metadatatransferjobid
TYPE /AWS1/IOMID
/AWS1/IOMID
¶
The metadata transfer job Id.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_iomgetmetxferjobrsp
/AWS1/CL_IOMGETMETXFERJOBRSP
¶
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->/aws1/if_iom~getmetadatatransferjob( |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_description = lo_result->get_description( ).
LOOP AT lo_result->get_sources( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_sourcetype = lo_row_1->get_type( ).
lo_s3sourceconfiguration = lo_row_1->get_s3configuration( ).
IF lo_s3sourceconfiguration IS NOT INITIAL.
lv_s3sourcelocation = lo_s3sourceconfiguration->get_location( ).
ENDIF.
lo_iotsitewisesourceconfig = lo_row_1->get_iotsitewiseconfiguration( ).
IF lo_iotsitewisesourceconfig IS NOT INITIAL.
LOOP AT lo_iotsitewisesourceconfig->get_filters( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lo_filterbyassetmodel = lo_row_3->get_filterbyassetmodel( ).
IF lo_filterbyassetmodel IS NOT INITIAL.
lv_uuid = lo_filterbyassetmodel->get_assetmodelid( ).
lv_sitewiseexternalid = lo_filterbyassetmodel->get_assetmodelexternalid( ).
lv_boolean = lo_filterbyassetmodel->get_includeoffspring( ).
lv_boolean = lo_filterbyassetmodel->get_includeassets( ).
ENDIF.
lo_filterbyasset = lo_row_3->get_filterbyasset( ).
IF lo_filterbyasset IS NOT INITIAL.
lv_uuid = lo_filterbyasset->get_assetid( ).
lv_sitewiseexternalid = lo_filterbyasset->get_assetexternalid( ).
lv_boolean = lo_filterbyasset->get_includeoffspring( ).
lv_boolean = lo_filterbyasset->get_includeassetmodel( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
lo_iottwinmakersourceconfi = lo_row_1->get_iottwinmakerconf( ).
IF lo_iottwinmakersourceconfi IS NOT INITIAL.
lv_twinmakerarn = lo_iottwinmakersourceconfi->get_workspace( ).
LOOP AT lo_iottwinmakersourceconfi->get_filters( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lo_filterbycomponenttype = lo_row_5->get_filterbycomponenttype( ).
IF lo_filterbycomponenttype IS NOT INITIAL.
lv_componenttypeid = lo_filterbycomponenttype->get_componenttypeid( ).
ENDIF.
lo_filterbyentity = lo_row_5->get_filterbyentity( ).
IF lo_filterbyentity IS NOT INITIAL.
lv_entityid = lo_filterbyentity->get_entityid( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDLOOP.
lo_destinationconfiguratio = lo_result->get_destination( ).
IF lo_destinationconfiguratio IS NOT INITIAL.
lv_destinationtype = lo_destinationconfiguratio->get_type( ).
lo_s3destinationconfigurat = lo_destinationconfiguratio->get_s3configuration( ).
IF lo_s3destinationconfigurat IS NOT INITIAL.
lv_s3destinationlocation = lo_s3destinationconfigurat->get_location( ).
ENDIF.
lo_iottwinmakerdestination = lo_destinationconfiguratio->get_iottwinmakerconf( ).
IF lo_iottwinmakerdestination IS NOT INITIAL.
lv_twinmakerarn = lo_iottwinmakerdestination->get_workspace( ).
ENDIF.
ENDIF.
lv_rolearn = lo_result->get_metadatatransferjobrole( ).
lv_string = lo_result->get_reporturl( ).
lv_timestamp = lo_result->get_creationdatetime( ).
lv_timestamp = lo_result->get_updatedatetime( ).
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.
lo_metadatatransferjobprog = lo_result->get_progress( ).
IF lo_metadatatransferjobprog IS NOT INITIAL.
lv_integer = lo_metadatatransferjobprog->get_totalcount( ).
lv_integer = lo_metadatatransferjobprog->get_succeededcount( ).
lv_integer = lo_metadatatransferjobprog->get_skippedcount( ).
lv_integer = lo_metadatatransferjobprog->get_failedcount( ).
ENDIF.
ENDIF.