/AWS1/IF_SE2=>CREATEIMPORTJOB()¶
About CreateImportJob¶
Creates an import job for a data destination.
Method Signature¶
METHODS /AWS1/IF_SE2~CREATEIMPORTJOB
IMPORTING
!IO_IMPORTDESTINATION TYPE REF TO /AWS1/CL_SE2IMPORTDESTINATION OPTIONAL
!IO_IMPORTDATASOURCE TYPE REF TO /AWS1/CL_SE2IMPORTDATASOURCE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_se2createimportjobrsp
RAISING
/AWS1/CX_SE2BADREQUESTEX
/AWS1/CX_SE2LIMITEXCEEDEDEX
/AWS1/CX_SE2TOOMANYREQUESTSEX
/AWS1/CX_SE2CLIENTEXC
/AWS1/CX_SE2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_importdestination TYPE REF TO /AWS1/CL_SE2IMPORTDESTINATION /AWS1/CL_SE2IMPORTDESTINATION¶
The destination for the import job.
io_importdatasource TYPE REF TO /AWS1/CL_SE2IMPORTDATASOURCE /AWS1/CL_SE2IMPORTDATASOURCE¶
The data source for the import job.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_se2createimportjobrsp /AWS1/CL_SE2CREATEIMPORTJOBRSP¶
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->createimportjob(
io_importdatasource = new /aws1/cl_se2importdatasource(
iv_dataformat = |string|
iv_s3url = |string|
)
io_importdestination = new /aws1/cl_se2importdestination(
io_contactlistdestination = new /aws1/cl_se2contactlistdst(
iv_contactlistimportaction = |string|
iv_contactlistname = |string|
)
io_suppressionlistdst = new /aws1/cl_se2suppressionlistdst( |string| )
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_jobid = lo_result->get_jobid( ).
ENDIF.