/AWS1/IF_CNT=>CREATEDATATABLE()¶
About CreateDataTable¶
Creates a new data table with the specified properties. Supports the creation of all table properties except for attributes and values. A table with no attributes and values is a valid state for a table. The number of tables per instance is limited to 100 per instance. Customers can request an increase by using Amazon Web Services Service Quotas.
Method Signature¶
METHODS /AWS1/IF_CNT~CREATEDATATABLE
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_NAME TYPE /AWS1/CNTDATATABLENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CNTDATATABLEDESCRIPTION OPTIONAL
!IV_TIMEZONE TYPE /AWS1/CNTTIMEZONE OPTIONAL
!IV_VALUELOCKLEVEL TYPE /AWS1/CNTDATATABLELOCKLEVEL OPTIONAL
!IV_STATUS TYPE /AWS1/CNTDATATABLESTATUS OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntcreatedatatablersp
RAISING
/AWS1/CX_CNTACCESSDENIEDEX
/AWS1/CX_CNTCONFLICTEXCEPTION
/AWS1/CX_CNTDUPLICATERESRCEX
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/AWS1/CX_CNTSERVICEQUOTAEXCDEX
/AWS1/CX_CNTTHROTTLINGEX
/AWS1/CX_CNTCLIENTEXC
/AWS1/CX_CNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_instanceid TYPE /AWS1/CNTINSTANCEID /AWS1/CNTINSTANCEID¶
The unique identifier for the Amazon Connect instance where the data table will be created.
iv_name TYPE /AWS1/CNTDATATABLENAME /AWS1/CNTDATATABLENAME¶
The name for the data table. Must conform to Connect human readable string specification and have 1-127 characters. Whitespace must be trimmed first. Must not start with the reserved case insensitive values 'connect:' and 'aws:'. Must be unique for the instance using case-insensitive comparison.
iv_timezone TYPE /AWS1/CNTTIMEZONE /AWS1/CNTTIMEZONE¶
The IANA timezone identifier to use when resolving time based dynamic values. Required even if no time slices are specified.
iv_valuelocklevel TYPE /AWS1/CNTDATATABLELOCKLEVEL /AWS1/CNTDATATABLELOCKLEVEL¶
The data level that concurrent value edits are locked on. One of DATA_TABLE, PRIMARY_VALUE, ATTRIBUTE, VALUE, and NONE. NONE is the default if unspecified. This determines how concurrent edits are handled when multiple users attempt to modify values simultaneously.
iv_status TYPE /AWS1/CNTDATATABLESTATUS /AWS1/CNTDATATABLESTATUS¶
The status of the data table. One of PUBLISHED or SAVED. Required parameter that determines the initial state of the table.
Optional arguments:¶
iv_description TYPE /AWS1/CNTDATATABLEDESCRIPTION /AWS1/CNTDATATABLEDESCRIPTION¶
An optional description for the data table. Must conform to Connect human readable string specification and have 0-250 characters. Whitespace must be trimmed first.
it_tags TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
Key value pairs for attribute based access control (TBAC or ABAC). Optional tags to apply to the data table for organization and access control purposes.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntcreatedatatablersp /AWS1/CL_CNTCREATEDATATABLERSP¶
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->createdatatable(
it_tags = VALUE /aws1/cl_cnttagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_cnttagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_cnttagmap_w( |string| )
)
)
)
iv_description = |string|
iv_instanceid = |string|
iv_name = |string|
iv_status = |string|
iv_timezone = |string|
iv_valuelocklevel = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_datatableid = lo_result->get_id( ).
lv_arn = lo_result->get_arn( ).
lo_datatablelockversion = lo_result->get_lockversion( ).
IF lo_datatablelockversion IS NOT INITIAL.
lv_string = lo_datatablelockversion->get_datatable( ).
lv_string = lo_datatablelockversion->get_attribute( ).
lv_string = lo_datatablelockversion->get_primaryvalues( ).
lv_string = lo_datatablelockversion->get_value( ).
ENDIF.
ENDIF.