/AWS1/IF_BDC=>UPDATEABTEST()¶
About UpdateABTest¶
Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.
Method Signature¶
METHODS /AWS1/IF_BDC~UPDATEABTEST
IMPORTING
!IV_ABTESTID TYPE /AWS1/BDCABTESTID OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/BDCCLIENTTOKEN OPTIONAL
!IV_NAME TYPE /AWS1/BDCABTESTNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/BDCABTESTDESCRIPTION OPTIONAL
!IT_VARIANTS TYPE /AWS1/CL_BDCVARIANT=>TT_VARIANTLIST OPTIONAL
!IO_GATEWAYFILTER TYPE REF TO /AWS1/CL_BDCGATEWAYFILTER OPTIONAL
!IO_EVALUATIONCONFIG TYPE REF TO /AWS1/CL_BDCABTESTEVALCONFIG OPTIONAL
!IV_ROLEARN TYPE /AWS1/BDCROLEARN OPTIONAL
!IV_EXECUTIONSTATUS TYPE /AWS1/BDCABTESTEXECUTIONSTATUS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdcupdateabtestrsp
RAISING
/AWS1/CX_BDCACCESSDENIEDEX
/AWS1/CX_BDCCONFLICTEXCEPTION
/AWS1/CX_BDCINTERNALSERVEREX
/AWS1/CX_BDCRESOURCENOTFOUNDEX
/AWS1/CX_BDCSERVICEQUOTAEXCDEX
/AWS1/CX_BDCTHROTTLINGEX
/AWS1/CX_BDCUNAUTHORIZEDEX
/AWS1/CX_BDCVALIDATIONEX
/AWS1/CX_BDCCLIENTEXC
/AWS1/CX_BDCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_abtestid TYPE /AWS1/BDCABTESTID /AWS1/BDCABTESTID¶
The unique identifier of the A/B test to update.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/BDCCLIENTTOKEN /AWS1/BDCCLIENTTOKEN¶
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
iv_name TYPE /AWS1/BDCABTESTNAME /AWS1/BDCABTESTNAME¶
The updated name of the A/B test.
iv_description TYPE /AWS1/BDCABTESTDESCRIPTION /AWS1/BDCABTESTDESCRIPTION¶
The updated description of the A/B test.
it_variants TYPE /AWS1/CL_BDCVARIANT=>TT_VARIANTLIST TT_VARIANTLIST¶
The updated list of variants.
io_gatewayfilter TYPE REF TO /AWS1/CL_BDCGATEWAYFILTER /AWS1/CL_BDCGATEWAYFILTER¶
The updated gateway filter.
io_evaluationconfig TYPE REF TO /AWS1/CL_BDCABTESTEVALCONFIG /AWS1/CL_BDCABTESTEVALCONFIG¶
The updated evaluation configuration.
iv_rolearn TYPE /AWS1/BDCROLEARN /AWS1/BDCROLEARN¶
The updated IAM role ARN.
iv_executionstatus TYPE /AWS1/BDCABTESTEXECUTIONSTATUS /AWS1/BDCABTESTEXECUTIONSTATUS¶
The updated execution status to enable or disable the A/B test.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdcupdateabtestrsp /AWS1/CL_BDCUPDATEABTESTRSP¶
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->updateabtest(
io_evaluationconfig = new /aws1/cl_bdcabtestevalconfig(
it_pervarntonlineevalconfig = VALUE /aws1/cl_bdcpervaronlineeval00=>tt_pervarntonlineevalcfglist(
(
new /aws1/cl_bdcpervaronlineeval00(
iv_name = |string|
iv_onlineevaluationconfigarn = |string|
)
)
)
iv_onlineevaluationconfigarn = |string|
)
io_gatewayfilter = new /aws1/cl_bdcgatewayfilter(
it_targetpaths = VALUE /aws1/cl_bdctargetpathlist_w=>tt_targetpathlist(
( new /aws1/cl_bdctargetpathlist_w( |string| ) )
)
)
it_variants = VALUE /aws1/cl_bdcvariant=>tt_variantlist(
(
new /aws1/cl_bdcvariant(
io_variantconfiguration = new /aws1/cl_bdcvariantconf(
io_configurationbundle = new /aws1/cl_bdcconfbundleref(
iv_bundlearn = |string|
iv_bundleversion = |string|
)
io_target = new /aws1/cl_bdctargetref( |string| )
)
iv_name = |string|
iv_weight = 123
)
)
)
iv_abtestid = |string|
iv_clienttoken = |string|
iv_description = |string|
iv_executionstatus = |string|
iv_name = |string|
iv_rolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_abtestid = lo_result->get_abtestid( ).
lv_abtestarn = lo_result->get_abtestarn( ).
lv_abteststatus = lo_result->get_status( ).
lv_abtestexecutionstatus = lo_result->get_executionstatus( ).
lv_timestamp = lo_result->get_updatedat( ).
ENDIF.