Skip to content

/AWS1/CL_BILAMOUNT

A monetary amount with a currency code. Used throughout the Billing API to represent credit balances, allocations, and adjustments.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_currencycode TYPE /AWS1/BILCURRENCYCODE /AWS1/BILCURRENCYCODE

The ISO 4217 currency code for the amount (for example, USD).

iv_currencyamount TYPE /AWS1/BILCURRENCYAMOUNT /AWS1/BILCURRENCYAMOUNT

The amount as a decimal string (for example, "743.21"). Negative values represent credits that reduce a bill.


Queryable Attributes

currencyCode

The ISO 4217 currency code for the amount (for example, USD).

Accessible with the following methods

Method Description
GET_CURRENCYCODE() Getter for CURRENCYCODE, with configurable default
ASK_CURRENCYCODE() Getter for CURRENCYCODE w/ exceptions if field has no value
HAS_CURRENCYCODE() Determine if CURRENCYCODE has a value

currencyAmount

The amount as a decimal string (for example, "743.21"). Negative values represent credits that reduce a bill.

Accessible with the following methods

Method Description
GET_CURRENCYAMOUNT() Getter for CURRENCYAMOUNT, with configurable default
ASK_CURRENCYAMOUNT() Getter for CURRENCYAMOUNT w/ exceptions if field has no valu
HAS_CURRENCYAMOUNT() Determine if CURRENCYAMOUNT has a value