Skip to content

/AWS1/IF_BTC=>UPDATEQUOTASHARE()

About UpdateQuotaShare

Updates a quota share.

Method Signature

METHODS /AWS1/IF_BTC~UPDATEQUOTASHARE
  IMPORTING
    !IV_QUOTASHAREARN TYPE /AWS1/BTCSTRING OPTIONAL
    !IT_CAPACITYLIMITS TYPE /AWS1/CL_BTCQUOTASHARECAPLIMIT=>TT_QUOTASHARECAPACITYLIMITS OPTIONAL
    !IO_RESOURCESHARINGCONF TYPE REF TO /AWS1/CL_BTCQUOTASHARERESHRC00 OPTIONAL
    !IO_PREEMPTIONCONFIGURATION TYPE REF TO /AWS1/CL_BTCQUOTASHAREPMTCONF OPTIONAL
    !IV_STATE TYPE /AWS1/BTCQUOTASHARESTATE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_btcupdquotasharersp
  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_quotasharearn TYPE /AWS1/BTCSTRING /AWS1/BTCSTRING

The Amazon Resource Name (ARN) of the quota share to update.

Optional arguments:

it_capacitylimits TYPE /AWS1/CL_BTCQUOTASHARECAPLIMIT=>TT_QUOTASHARECAPACITYLIMITS TT_QUOTASHARECAPACITYLIMITS

A list that specifies the quantity and type of compute capacity allocated to the quota share.

io_resourcesharingconf TYPE REF TO /AWS1/CL_BTCQUOTASHARERESHRC00 /AWS1/CL_BTCQUOTASHARERESHRC00

Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.

io_preemptionconfiguration TYPE REF TO /AWS1/CL_BTCQUOTASHAREPMTCONF /AWS1/CL_BTCQUOTASHAREPMTCONF

Specifies the preemption behavior for jobs in a quota share.

iv_state TYPE /AWS1/BTCQUOTASHARESTATE /AWS1/BTCQUOTASHARESTATE

The state of the quota share. If the quota share is ENABLED, it is able to accept jobs. If the quota share is DISABLED, new jobs won't be accepted but jobs already submitted can finish.

RETURNING

oo_output TYPE REF TO /aws1/cl_btcupdquotasharersp /AWS1/CL_BTCUPDQUOTASHARERSP

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->updatequotashare(
  io_preemptionconfiguration = new /aws1/cl_btcquotasharepmtconf( |string| )
  io_resourcesharingconf = new /aws1/cl_btcquotasharereshrc00(
    iv_borrowlimit = 123
    iv_strategy = |string|
  )
  it_capacitylimits = VALUE /aws1/cl_btcquotasharecaplimit=>tt_quotasharecapacitylimits(
    (
      new /aws1/cl_btcquotasharecaplimit(
        iv_capacityunit = |string|
        iv_maxcapacity = 123
      )
    )
  )
  iv_quotasharearn = |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_quotasharename( ).
  lv_string = lo_result->get_quotasharearn( ).
ENDIF.