/AWS1/IF_BTC=>UPDATESERVICEENVIRONMENT()¶
About UpdateServiceEnvironment¶
Updates a service environment. You can update the state of a service environment from ENABLED to DISABLED to prevent new service jobs from being placed in the service environment.
Method Signature¶
METHODS /AWS1/IF_BTC~UPDATESERVICEENVIRONMENT
IMPORTING
!IV_SERVICEENVIRONMENT TYPE /AWS1/BTCSTRING OPTIONAL
!IV_STATE TYPE /AWS1/BTCSERVICEENVSTATE OPTIONAL
!IT_CAPACITYLIMITS TYPE /AWS1/CL_BTCCAPACITYLIMIT=>TT_CAPACITYLIMITS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_btcupdatesvcenvrsp
RAISING
/AWS1/CX_BTCCLIENTEXCEPTION
/AWS1/CX_BTCSERVEREXCEPTION
/AWS1/CX_BTCCLIENTEXC
/AWS1/CX_BTCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_serviceenvironment TYPE /AWS1/BTCSTRING /AWS1/BTCSTRING¶
The name or ARN of the service environment to update.
Optional arguments:¶
iv_state TYPE /AWS1/BTCSERVICEENVSTATE /AWS1/BTCSERVICEENVSTATE¶
The state of the service environment.
it_capacitylimits TYPE /AWS1/CL_BTCCAPACITYLIMIT=>TT_CAPACITYLIMITS TT_CAPACITYLIMITS¶
The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_btcupdatesvcenvrsp /AWS1/CL_BTCUPDATESVCENVRSP¶
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->updateserviceenvironment(
it_capacitylimits = VALUE /aws1/cl_btccapacitylimit=>tt_capacitylimits(
(
new /aws1/cl_btccapacitylimit(
iv_capacityunit = |string|
iv_maxcapacity = 123
)
)
)
iv_serviceenvironment = |string|
iv_state = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_serviceenvironmentname( ).
lv_string = lo_result->get_serviceenvironmentarn( ).
ENDIF.