Skip to content

/AWS1/IF_DFM=>RENEWOFFERING()

About RenewOffering

Explicitly sets the quantity of devices to renew for an offering, starting from the effectiveDate of the next period. The API returns a NotEligible error if the user is not permitted to invoke the operation. If you must be able to invoke this operation, contact aws-devicefarm-support@amazon.com.

Method Signature

IMPORTING

Required arguments:

iv_offeringid TYPE /AWS1/DFMOFFERINGIDENTIFIER /AWS1/DFMOFFERINGIDENTIFIER

The ID of a request to renew an offering.

iv_quantity TYPE /AWS1/DFMINTEGER /AWS1/DFMINTEGER

The quantity requested in an offering renewal.

RETURNING

oo_output TYPE REF TO /aws1/cl_dfmrenewofferingrslt /AWS1/CL_DFMRENEWOFFERINGRSLT

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->/aws1/if_dfm~renewoffering(
  iv_offeringid = |string|
  iv_quantity = 123
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_offeringtransaction = lo_result->get_offeringtransaction( ).
  IF lo_offeringtransaction IS NOT INITIAL.
    lo_offeringstatus = lo_offeringtransaction->get_offeringstatus( ).
    IF lo_offeringstatus IS NOT INITIAL.
      lv_offeringtransactiontype = lo_offeringstatus->get_type( ).
      lo_offering = lo_offeringstatus->get_offering( ).
      IF lo_offering IS NOT INITIAL.
        lv_offeringidentifier = lo_offering->get_id( ).
        lv_message = lo_offering->get_description( ).
        lv_offeringtype = lo_offering->get_type( ).
        lv_deviceplatform = lo_offering->get_platform( ).
        LOOP AT lo_offering->get_recurringcharges( ) into lo_row.
          lo_row_1 = lo_row.
          IF lo_row_1 IS NOT INITIAL.
            lo_monetaryamount = lo_row_1->get_cost( ).
            IF lo_monetaryamount IS NOT INITIAL.
              lv_double = lo_monetaryamount->get_amount( ).
              lv_currencycode = lo_monetaryamount->get_currencycode( ).
            ENDIF.
            lv_recurringchargefrequenc = lo_row_1->get_frequency( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lv_integer = lo_offeringstatus->get_quantity( ).
      lv_datetime = lo_offeringstatus->get_effectiveon( ).
    ENDIF.
    lv_transactionidentifier = lo_offeringtransaction->get_transactionid( ).
    lv_offeringpromotionidenti = lo_offeringtransaction->get_offeringpromotionid( ).
    lv_datetime = lo_offeringtransaction->get_createdon( ).
    lo_monetaryamount = lo_offeringtransaction->get_cost( ).
    IF lo_monetaryamount IS NOT INITIAL.
      lv_double = lo_monetaryamount->get_amount( ).
      lv_currencycode = lo_monetaryamount->get_currencycode( ).
    ENDIF.
  ENDIF.
ENDIF.