/AWS1/IF_DBR=>UPDATEDATASET()¶
About UpdateDataset¶
Modifies the definition of an existing DataBrew dataset.
Method Signature¶
METHODS /AWS1/IF_DBR~UPDATEDATASET
IMPORTING
!IV_NAME TYPE /AWS1/DBRDATASETNAME OPTIONAL
!IV_FORMAT TYPE /AWS1/DBRINPUTFORMAT OPTIONAL
!IO_FORMATOPTIONS TYPE REF TO /AWS1/CL_DBRFORMATOPTIONS OPTIONAL
!IO_INPUT TYPE REF TO /AWS1/CL_DBRINPUT OPTIONAL
!IO_PATHOPTIONS TYPE REF TO /AWS1/CL_DBRPATHOPTIONS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dbrupdatedatasetrsp
RAISING
/AWS1/CX_DBRACCESSDENIEDEX
/AWS1/CX_DBRRESOURCENOTFOUNDEX
/AWS1/CX_DBRVALIDATIONEX
/AWS1/CX_DBRCLIENTEXC
/AWS1/CX_DBRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/DBRDATASETNAME /AWS1/DBRDATASETNAME¶
The name of the dataset to be updated.
io_input TYPE REF TO /AWS1/CL_DBRINPUT /AWS1/CL_DBRINPUT¶
Input
Optional arguments:¶
iv_format TYPE /AWS1/DBRINPUTFORMAT /AWS1/DBRINPUTFORMAT¶
The file format of a dataset that is created from an Amazon S3 file or folder.
io_formatoptions TYPE REF TO /AWS1/CL_DBRFORMATOPTIONS /AWS1/CL_DBRFORMATOPTIONS¶
FormatOptions
io_pathoptions TYPE REF TO /AWS1/CL_DBRPATHOPTIONS /AWS1/CL_DBRPATHOPTIONS¶
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dbrupdatedatasetrsp /AWS1/CL_DBRUPDATEDATASETRSP¶
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->updatedataset(
io_formatoptions = new /aws1/cl_dbrformatoptions(
io_csv = new /aws1/cl_dbrcsvoptions(
iv_delimiter = |string|
iv_headerrow = ABAP_TRUE
)
io_excel = new /aws1/cl_dbrexceloptions(
it_sheetindexes = VALUE /aws1/cl_dbrsheetindexlist_w=>tt_sheetindexlist(
( new /aws1/cl_dbrsheetindexlist_w( 123 ) )
)
it_sheetnames = VALUE /aws1/cl_dbrsheetnamelist_w=>tt_sheetnamelist(
( new /aws1/cl_dbrsheetnamelist_w( |string| ) )
)
iv_headerrow = ABAP_TRUE
)
io_json = new /aws1/cl_dbrjsonoptions( ABAP_TRUE )
)
io_input = new /aws1/cl_dbrinput(
io_databaseinputdefinition = new /aws1/cl_dbrdatabaseinputdefn(
io_tempdirectory = new /aws1/cl_dbrs3location(
iv_bucket = |string|
iv_bucketowner = |string|
iv_key = |string|
)
iv_databasetablename = |string|
iv_glueconnectionname = |string|
iv_querystring = |string|
)
io_datacataloginputdefn = new /aws1/cl_dbrdatacataloginpdefn(
io_tempdirectory = new /aws1/cl_dbrs3location(
iv_bucket = |string|
iv_bucketowner = |string|
iv_key = |string|
)
iv_catalogid = |string|
iv_databasename = |string|
iv_tablename = |string|
)
io_metadata = new /aws1/cl_dbrmetadata( |string| )
io_s3inputdefinition = new /aws1/cl_dbrs3location(
iv_bucket = |string|
iv_bucketowner = |string|
iv_key = |string|
)
)
io_pathoptions = new /aws1/cl_dbrpathoptions(
io_fileslimit = new /aws1/cl_dbrfileslimit(
iv_maxfiles = 123
iv_order = |string|
iv_orderedby = |string|
)
io_lastmodifieddatecondition = new /aws1/cl_dbrfilterexpression(
it_valuesmap = VALUE /aws1/cl_dbrvaluesmap_w=>tt_valuesmap(
(
VALUE /aws1/cl_dbrvaluesmap_w=>ts_valuesmap_maprow(
value = new /aws1/cl_dbrvaluesmap_w( |string| )
key = |string|
)
)
)
iv_expression = |string|
)
it_parameters = VALUE /aws1/cl_dbrdatasetparameter=>tt_pathparametersmap(
(
VALUE /aws1/cl_dbrdatasetparameter=>ts_pathparametersmap_maprow(
key = |string|
value = new /aws1/cl_dbrdatasetparameter(
io_datetimeoptions = new /aws1/cl_dbrdatetimeoptions(
iv_format = |string|
iv_localecode = |string|
iv_timezoneoffset = |string|
)
io_filter = new /aws1/cl_dbrfilterexpression(
it_valuesmap = VALUE /aws1/cl_dbrvaluesmap_w=>tt_valuesmap(
(
VALUE /aws1/cl_dbrvaluesmap_w=>ts_valuesmap_maprow(
value = new /aws1/cl_dbrvaluesmap_w( |string| )
key = |string|
)
)
)
iv_expression = |string|
)
iv_createcolumn = ABAP_TRUE
iv_name = |string|
iv_type = |string|
)
)
)
)
)
iv_format = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_datasetname = lo_result->get_name( ).
ENDIF.