/AWS1/IF_BII=>UPDATEINVOICEUNIT()¶
About UpdateInvoiceUnit¶
You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.
Method Signature¶
METHODS /AWS1/IF_BII~UPDATEINVOICEUNIT
IMPORTING
!IV_INVOICEUNITARN TYPE /AWS1/BIIINVOICEUNITARNSTRING OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/BIIDESCRIPTIONSTRING OPTIONAL
!IV_TAXINHERITANCEDISABLED TYPE /AWS1/BIITAXINHERITANCEDSBDF00 OPTIONAL
!IO_RULE TYPE REF TO /AWS1/CL_BIIINVOICEUNITRULE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_biiupdinvoiceunitrsp
RAISING
/AWS1/CX_BIIACCESSDENIEDEX
/AWS1/CX_BIIINTERNALSERVEREX
/AWS1/CX_BIIRESOURCENOTFOUNDEX
/AWS1/CX_BIITHROTTLINGEX
/AWS1/CX_BIIVALIDATIONEX
/AWS1/CX_BIICLIENTEXC
/AWS1/CX_BIISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_invoiceunitarn TYPE /AWS1/BIIINVOICEUNITARNSTRING /AWS1/BIIINVOICEUNITARNSTRING¶
The ARN to identify an invoice unit. This information can't be modified or deleted.
Optional arguments:¶
iv_description TYPE /AWS1/BIIDESCRIPTIONSTRING /AWS1/BIIDESCRIPTIONSTRING¶
The assigned description for an invoice unit. This information can't be modified or deleted.
iv_taxinheritancedisabled TYPE /AWS1/BIITAXINHERITANCEDSBDF00 /AWS1/BIITAXINHERITANCEDSBDF00¶
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
io_rule TYPE REF TO /AWS1/CL_BIIINVOICEUNITRULE /AWS1/CL_BIIINVOICEUNITRULE¶
The
InvoiceUnitRuleobject used to update invoice units.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_biiupdinvoiceunitrsp /AWS1/CL_BIIUPDINVOICEUNITRSP¶
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->updateinvoiceunit(
io_rule = new /aws1/cl_biiinvoiceunitrule(
it_linkedaccounts = VALUE /aws1/cl_biiaccountidlist_w=>tt_accountidlist(
( new /aws1/cl_biiaccountidlist_w( |string| ) )
)
)
iv_description = |string|
iv_invoiceunitarn = |string|
iv_taxinheritancedisabled = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_invoiceunitarnstring = lo_result->get_invoiceunitarn( ).
ENDIF.
UpdateInvoiceUnit with all updatable fields¶
UpdateInvoiceUnit with all updatable fields
DATA(lo_result) = lo_client->updateinvoiceunit(
io_rule = new /aws1/cl_biiinvoiceunitrule(
it_linkedaccounts = VALUE /aws1/cl_biiaccountidlist_w=>tt_accountidlist(
( new /aws1/cl_biiaccountidlist_w( |111111111111| ) )
( new /aws1/cl_biiaccountidlist_w( |222222222222| ) )
)
)
iv_description = |Updated IU description|
iv_invoiceunitarn = |arn:aws:invoicing::000000000000:invoice-unit/12345678|
iv_taxinheritancedisabled = ABAP_FALSE
).
UpdateInvoiceUnit with specific fields¶
UpdateInvoiceUnit with specific fields
DATA(lo_result) = lo_client->updateinvoiceunit(
iv_description = |Updated IU description. All other fields remain unchanged|
iv_invoiceunitarn = |arn:aws:invoicing::000000000000:invoice-unit/12345678|
).