/AWS1/IF_CWL=>UPDATELOOKUPTABLE()¶
About UpdateLookupTable¶
Updates an existing lookup table by replacing all of its CSV content. After the update completes, queries that use this table will use the new data.
This is a full replacement operation. All existing content is replaced with the new CSV data.
Method Signature¶
METHODS /AWS1/IF_CWL~UPDATELOOKUPTABLE
IMPORTING
!IV_LOOKUPTABLEARN TYPE /AWS1/CWLARN OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CWLLOOKUPTABLEDESC OPTIONAL
!IV_TABLEBODY TYPE /AWS1/CWLTABLEBODY OPTIONAL
!IV_KMSKEYID TYPE /AWS1/CWLKMSKEYID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwlupdlookuptablersp
RAISING
/AWS1/CX_CWLACCESSDENIEDEX
/AWS1/CX_CWLINVALIDPARAMETEREX
/AWS1/CX_CWLRESOURCENOTFOUNDEX
/AWS1/CX_CWLSERVICEUNAVAILEX
/AWS1/CX_CWLVALIDATIONEX
/AWS1/CX_CWLCLIENTEXC
/AWS1/CX_CWLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_lookuptablearn TYPE /AWS1/CWLARN /AWS1/CWLARN¶
The ARN of the lookup table to update.
iv_tablebody TYPE /AWS1/CWLTABLEBODY /AWS1/CWLTABLEBODY¶
The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.
Optional arguments:¶
iv_description TYPE /AWS1/CWLLOOKUPTABLEDESC /AWS1/CWLLOOKUPTABLEDESC¶
An updated description of the lookup table.
iv_kmskeyid TYPE /AWS1/CWLKMSKEYID /AWS1/CWLKMSKEYID¶
The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwlupdlookuptablersp /AWS1/CL_CWLUPDLOOKUPTABLERSP¶
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->updatelookuptable(
iv_description = |string|
iv_kmskeyid = |string|
iv_lookuptablearn = |string|
iv_tablebody = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_lookuptablearn( ).
lv_timestamp = lo_result->get_lastupdatedtime( ).
ENDIF.