Skip to content

/AWS1/IF_OUT=>LISTQUOTES()

About ListQuotes

Lists the quotes for your Amazon Web Services account.

Method Signature

METHODS /AWS1/IF_OUT~LISTQUOTES
  IMPORTING
    !IV_NEXTTOKEN TYPE /AWS1/OUTTOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/OUTMAXRESULTS1000 OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_outlistquotesoutput
  RAISING
    /AWS1/CX_OUTACCESSDENIEDEX
    /AWS1/CX_OUTINTERNALSERVEREX
    /AWS1/CX_OUTCLIENTEXC
    /AWS1/CX_OUTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_nexttoken TYPE /AWS1/OUTTOKEN /AWS1/OUTTOKEN

The pagination token.

iv_maxresults TYPE /AWS1/OUTMAXRESULTS1000 /AWS1/OUTMAXRESULTS1000

The maximum page size.

RETURNING

oo_output TYPE REF TO /aws1/cl_outlistquotesoutput /AWS1/CL_OUTLISTQUOTESOUTPUT

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->listquotes(
  iv_maxresults = 123
  iv_nexttoken = |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_quotes( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_quoteid = lo_row_1->get_quoteid( ).
      lv_accountid = lo_row_1->get_accountid( ).
      lv_quotestatus = lo_row_1->get_quotestatus( ).
      lv_statusmessage = lo_row_1->get_statusmessage( ).
      lv_outpostarn = lo_row_1->get_outpostarn( ).
      lv_countrycode = lo_row_1->get_countrycode( ).
      LOOP AT lo_row_1->get_requestedcapacities( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_quotecapacitytype = lo_row_3->get_quotecapacitytype( ).
          lv_string = lo_row_3->get_unit( ).
          lv_nullablefloat = lo_row_3->get_quantity( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_requestedconstraints( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_quoteconstrainttype = lo_row_5->get_quoteconstrainttype( ).
          lv_constraintvalue = lo_row_5->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_requestedpaymentoptions( ) into lo_row_6.
        lo_row_7 = lo_row_6.
        IF lo_row_7 IS NOT INITIAL.
          lv_paymentoption = lo_row_7->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_requestedpaymentterms( ) into lo_row_8.
        lo_row_9 = lo_row_8.
        IF lo_row_9 IS NOT INITIAL.
          lv_paymentterm = lo_row_9->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_quoteoptions( ) into lo_row_10.
        lo_row_11 = lo_row_10.
        IF lo_row_11 IS NOT INITIAL.
          lv_quoteoptionidentifier = lo_row_11->get_quoteoptionidentifier( ).
          LOOP AT lo_row_11->get_capacities( ) into lo_row_2.
            lo_row_3 = lo_row_2.
            IF lo_row_3 IS NOT INITIAL.
              lv_quotecapacitytype = lo_row_3->get_quotecapacitytype( ).
              lv_string = lo_row_3->get_unit( ).
              lv_nullablefloat = lo_row_3->get_quantity( ).
            ENDIF.
          ENDLOOP.
          lo_capacitysummary = lo_row_11->get_capacitysummary( ).
          IF lo_capacitysummary IS NOT INITIAL.
            LOOP AT lo_capacitysummary->get_existingcapacities( ) into lo_row_2.
              lo_row_3 = lo_row_2.
              IF lo_row_3 IS NOT INITIAL.
                lv_quotecapacitytype = lo_row_3->get_quotecapacitytype( ).
                lv_string = lo_row_3->get_unit( ).
                lv_nullablefloat = lo_row_3->get_quantity( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_capacitysummary->get_finalcapacities( ) into lo_row_2.
              lo_row_3 = lo_row_2.
              IF lo_row_3 IS NOT INITIAL.
                lv_quotecapacitytype = lo_row_3->get_quotecapacitytype( ).
                lv_string = lo_row_3->get_unit( ).
                lv_nullablefloat = lo_row_3->get_quantity( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_capacitysummary->get_capacitychange( ) into lo_row_2.
              lo_row_3 = lo_row_2.
              IF lo_row_3 IS NOT INITIAL.
                lv_quotecapacitytype = lo_row_3->get_quotecapacitytype( ).
                lv_string = lo_row_3->get_unit( ).
                lv_nullablefloat = lo_row_3->get_quantity( ).
              ENDIF.
            ENDLOOP.
          ENDIF.
          LOOP AT lo_row_11->get_specifications( ) into lo_row_12.
            lo_row_13 = lo_row_12.
            IF lo_row_13 IS NOT INITIAL.
              lv_quotespecificationtype = lo_row_13->get_quotespecificationtype( ).
              lo_rackspecificationdetail = lo_row_13->get_existingrackspecdetails( ).
              IF lo_rackspecificationdetail IS NOT INITIAL.
                lv_rackid = lo_rackspecificationdetail->get_rackid( ).
                lv_quoterackusetype = lo_rackspecificationdetail->get_rackuse( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackpowerdrawkva( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackweightlbs( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackheightinches( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackwidthinches( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackdepthinches( ).
                lv_rackunitheight = lo_rackspecificationdetail->get_rackunitheight( ).
                LOOP AT lo_rackspecificationdetail->get_ec2capacities( ) into lo_row_14.
                  lo_row_15 = lo_row_14.
                  IF lo_row_15 IS NOT INITIAL.
                    lv_family = lo_row_15->get_family( ).
                    lv_maxsize = lo_row_15->get_maxsize( ).
                    lv_quantity = lo_row_15->get_quantity( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_rackspecificationdetail = lo_row_13->get_finalrackspecdetails( ).
              IF lo_rackspecificationdetail IS NOT INITIAL.
                lv_rackid = lo_rackspecificationdetail->get_rackid( ).
                lv_quoterackusetype = lo_rackspecificationdetail->get_rackuse( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackpowerdrawkva( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackweightlbs( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackheightinches( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackwidthinches( ).
                lv_nullablefloat = lo_rackspecificationdetail->get_rackdepthinches( ).
                lv_rackunitheight = lo_rackspecificationdetail->get_rackunitheight( ).
                LOOP AT lo_rackspecificationdetail->get_ec2capacities( ) into lo_row_14.
                  lo_row_15 = lo_row_14.
                  IF lo_row_15 IS NOT INITIAL.
                    lv_family = lo_row_15->get_family( ).
                    lv_maxsize = lo_row_15->get_maxsize( ).
                    lv_quantity = lo_row_15->get_quantity( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_serverspecificationdeta = lo_row_13->get_serverspecdetails( ).
              IF lo_serverspecificationdeta IS NOT INITIAL.
                lv_nullablefloat = lo_serverspecificationdeta->get_serverpowerdrawkva( ).
                lv_nullablefloat = lo_serverspecificationdeta->get_serverweightlbs( ).
                lv_nullablefloat = lo_serverspecificationdeta->get_serverheightinches( ).
                lv_nullablefloat = lo_serverspecificationdeta->get_serverwidthinches( ).
                lv_nullablefloat = lo_serverspecificationdeta->get_serverdepthinches( ).
                lv_rackunitheight = lo_serverspecificationdeta->get_rackunitheight( ).
                LOOP AT lo_serverspecificationdeta->get_ec2capacities( ) into lo_row_14.
                  lo_row_15 = lo_row_14.
                  IF lo_row_15 IS NOT INITIAL.
                    lv_family = lo_row_15->get_family( ).
                    lv_maxsize = lo_row_15->get_maxsize( ).
                    lv_quantity = lo_row_15->get_quantity( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
            ENDIF.
          ENDLOOP.
          LOOP AT lo_row_11->get_pricingoptions( ) into lo_row_16.
            lo_row_17 = lo_row_16.
            IF lo_row_17 IS NOT INITIAL.
              lv_quotepricingtype = lo_row_17->get_pricingtype( ).
              lo_subscriptionpricingdeta = lo_row_17->get_subscrpricingdetails( ).
              IF lo_subscriptionpricingdeta IS NOT INITIAL.
                lv_paymentoption = lo_subscriptionpricingdeta->get_paymentoption( ).
                lv_paymentterm = lo_subscriptionpricingdeta->get_paymentterm( ).
                lv_nullablefloat = lo_subscriptionpricingdeta->get_upfrontprice( ).
                lv_nullablefloat = lo_subscriptionpricingdeta->get_monthlyrecurringprice( ).
                lv_currencycode = lo_subscriptionpricingdeta->get_currency( ).
              ENDIF.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
      lv_orderidentifier = lo_row_1->get_submittedorderid( ).
      lv_iso8601timestamp = lo_row_1->get_createddate( ).
      lv_iso8601timestamp = lo_row_1->get_expirationdate( ).
      lv_quotedescription = lo_row_1->get_description( ).
    ENDIF.
  ENDLOOP.
  lv_token = lo_result->get_nexttoken( ).
ENDIF.