/AWS1/IF_BCP=>BATCHDELBILLSCENARIOUSAGEMOD()¶
About BatchDeleteBillScenarioUsageModification¶
Delete usage that you have created in a Bill Scenario. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see BatchUpdateBillScenarioUsageModification.
The BatchDeleteBillScenarioUsageModification operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission bcm-pricing-calculator:DeleteBillScenarioUsageModification in your policies.
Method Signature¶
METHODS /AWS1/IF_BCP~BATCHDELBILLSCENARIOUSAGEMOD
IMPORTING
!IV_BILLSCENARIOID TYPE /AWS1/BCPRESOURCEID OPTIONAL
!IT_IDS TYPE /AWS1/CL_BCPBTCDELBILLSCENAR05=>TT_BTCDELBILLSCENARIOUSAGEMD00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcpbtcdelbillscenar06
RAISING
/AWS1/CX_BCPACCESSDENIEDEX
/AWS1/CX_BCPINTERNALSERVEREX
/AWS1/CX_BCPTHROTTLINGEX
/AWS1/CX_BCPVALIDATIONEX
/AWS1/CX_BCPCONFLICTEXCEPTION
/AWS1/CX_BCPDATAUNAVAILEX
/AWS1/CX_BCPRESOURCENOTFOUNDEX
/AWS1/CX_BCPSERVICEQUOTAEXCDEX
/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 ID of the Bill Scenario for which you want to delete the modeled usage.
it_ids TYPE /AWS1/CL_BCPBTCDELBILLSCENAR05=>TT_BTCDELBILLSCENARIOUSAGEMD00 TT_BTCDELBILLSCENARIOUSAGEMD00¶
List of usage that you want to delete from the Bill Scenario.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bcpbtcdelbillscenar06 /AWS1/CL_BCPBTCDELBILLSCENAR06¶
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->batchdelbillscenariousagemod(
it_ids = VALUE /aws1/cl_bcpbtcdelbillscenar05=>tt_btcdelbillscenariousagemd00(
( new /aws1/cl_bcpbtcdelbillscenar05( |string| ) )
)
iv_billscenarioid = |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_errors( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_resourceid = lo_row_1->get_id( ).
lv_string = lo_row_1->get_errormessage( ).
lv_batchdeletebillscenario = lo_row_1->get_errorcode( ).
ENDIF.
ENDLOOP.
ENDIF.