/AWS1/IF_CNT=>EVALUATEDATATABLEVALUES()¶
About EvaluateDataTableValues¶
Evaluates values at the time of the request and returns them. It considers the request's timezone or the table's timezone, in that order, when accessing time based tables. When a value is accessed, the accessor's identity and the time of access are saved alongside the value to help identify values that are actively in use. The term "Batch" is not included in the operation name since it does not meet all the criteria for a batch operation as specified in Batch Operations: Amazon Web Services API Standards.
Method Signature¶
METHODS /AWS1/IF_CNT~EVALUATEDATATABLEVALUES
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_DATATABLEID TYPE /AWS1/CNTDATATABLEID OPTIONAL
!IT_VALUES TYPE /AWS1/CL_CNTDATATBLVALEVALSET=>TT_DATATABLEVALUEEVALSETLIST OPTIONAL
!IV_TIMEZONE TYPE /AWS1/CNTTIMEZONE OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CNTNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/CNTMAXRESULT100 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntevaldatatblvalsrsp
RAISING
/AWS1/CX_CNTACCESSDENIEDEX
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/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.
iv_datatableid TYPE /AWS1/CNTDATATABLEID /AWS1/CNTDATATABLEID¶
The unique identifier for the data table. Must also accept the table ARN with or without a version alias.
it_values TYPE /AWS1/CL_CNTDATATBLVALEVALSET=>TT_DATATABLEVALUEEVALSETLIST TT_DATATABLEVALUEEVALSETLIST¶
A list of value evaluation sets specifying which primary values and attributes to evaluate.
Optional arguments:¶
iv_timezone TYPE /AWS1/CNTTIMEZONE /AWS1/CNTTIMEZONE¶
Optional IANA timezone identifier to use when resolving time based dynamic values. Defaults to the data table time zone if not provided.
iv_nexttoken TYPE /AWS1/CNTNEXTTOKEN /AWS1/CNTNEXTTOKEN¶
Specify the pagination token from a previous request to retrieve the next page of results.
iv_maxresults TYPE /AWS1/CNTMAXRESULT100 /AWS1/CNTMAXRESULT100¶
The maximum number of data table values to return in one page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntevaldatatblvalsrsp /AWS1/CL_CNTEVALDATATBLVALSRSP¶
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->evaluatedatatablevalues(
it_values = VALUE /aws1/cl_cntdatatblvalevalset=>tt_datatablevalueevalsetlist(
(
new /aws1/cl_cntdatatblvalevalset(
it_attributenames = VALUE /aws1/cl_cntattrnamelist_w=>tt_attributenamelist(
( new /aws1/cl_cntattrnamelist_w( |string| ) )
)
it_primaryvalues = VALUE /aws1/cl_cntprimaryvalue=>tt_primaryvaluesset(
(
new /aws1/cl_cntprimaryvalue(
iv_attributename = |string|
iv_value = |string|
)
)
)
)
)
)
iv_datatableid = |string|
iv_instanceid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_timezone = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_values( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_datatableid = lo_row_1->get_recordid( ).
LOOP AT lo_row_1->get_primaryvalues( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_datatablename = lo_row_3->get_attributename( ).
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_datatablename = lo_row_1->get_attributename( ).
lv_datatableattributevalue = lo_row_1->get_valuetype( ).
lv_boolean = lo_row_1->get_found( ).
lv_boolean = lo_row_1->get_error( ).
lv_string = lo_row_1->get_evaluatedvalue( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.