/AWS1/IF_BCP=>LSTBILLSCENARIOCOMMITMENTM00()¶
About ListBillScenarioCommitmentModifications¶
Lists the commitment modifications associated with a bill scenario.
Method Signature¶
METHODS /AWS1/IF_BCP~LSTBILLSCENARIOCOMMITMENTM00
  IMPORTING
    !IV_BILLSCENARIOID TYPE /AWS1/BCPRESOURCEID OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/BCPNEXTPAGETOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/BCPMAXRESULTS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcplstbillscenarioc01
  RAISING
    /AWS1/CX_BCPACCESSDENIEDEX
    /AWS1/CX_BCPINTERNALSERVEREX
    /AWS1/CX_BCPTHROTTLINGEX
    /AWS1/CX_BCPVALIDATIONEX
    /AWS1/CX_BCPDATAUNAVAILEX
    /AWS1/CX_BCPRESOURCENOTFOUNDEX
    /AWS1/CX_BCPCLIENTEXC
    /AWS1/CX_BCPSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_billscenarioid TYPE /AWS1/BCPRESOURCEID /AWS1/BCPRESOURCEID¶
The unique identifier of the bill scenario to list commitment modifications for.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/BCPNEXTPAGETOKEN /AWS1/BCPNEXTPAGETOKEN¶
A token to retrieve the next page of results.
iv_maxresults TYPE /AWS1/BCPMAXRESULTS /AWS1/BCPMAXRESULTS¶
The maximum number of results to return per page.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bcplstbillscenarioc01 /AWS1/CL_BCPLSTBILLSCENARIOC01¶
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->lstbillscenariocommitmentm00(
  iv_billscenarioid = |string|
  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_items( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_resourceid = lo_row_1->get_id( ).
      lv_accountid = lo_row_1->get_usageaccountid( ).
      lv_usagegroup = lo_row_1->get_group( ).
      lo_billscenariocommitmentm = lo_row_1->get_commitmentaction( ).
      IF lo_billscenariocommitmentm IS NOT INITIAL.
        lo_addreservedinstanceacti = lo_billscenariocommitmentm->get_addreservedinstaction( ).
        IF lo_addreservedinstanceacti IS NOT INITIAL.
          lv_uuid = lo_addreservedinstanceacti->get_reservedinstsofferingid( ).
          lv_reservedinstanceinstanc = lo_addreservedinstanceacti->get_instancecount( ).
        ENDIF.
        lo_addsavingsplanaction = lo_billscenariocommitmentm->get_addsavingsplanaction( ).
        IF lo_addsavingsplanaction IS NOT INITIAL.
          lv_uuid = lo_addsavingsplanaction->get_savingsplanofferingid( ).
          lv_savingsplancommitment = lo_addsavingsplanaction->get_commitment( ).
        ENDIF.
        lo_negatereservedinstancea = lo_billscenariocommitmentm->get_negatereservedinstaction( ).
        IF lo_negatereservedinstancea IS NOT INITIAL.
          lv_uuid = lo_negatereservedinstancea->get_reservedinstancesid( ).
        ENDIF.
        lo_negatesavingsplanaction = lo_billscenariocommitmentm->get_negatesavingsplanaction( ).
        IF lo_negatesavingsplanaction IS NOT INITIAL.
          lv_uuid = lo_negatesavingsplanaction->get_savingsplanid( ).
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.
  lv_nextpagetoken = lo_result->get_nexttoken( ).
ENDIF.