/AWS1/CL_PTBMONETARYVALUE¶
Represents a monetary amount with its associated currency.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_amount TYPE /AWS1/PTBSTRING /AWS1/PTBSTRING¶
The numeric amount of the monetary value.
iv_currencycode TYPE /AWS1/PTBCURRENCYCODE /AWS1/PTBCURRENCYCODE¶
The ISO 4217 currency code (e.g., USD, EUR) for the monetary amount.
Queryable Attributes¶
Amount¶
The numeric amount of the monetary value.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_AMOUNT() |
Getter for AMOUNT, with configurable default |
ASK_AMOUNT() |
Getter for AMOUNT w/ exceptions if field has no value |
HAS_AMOUNT() |
Determine if AMOUNT has a value |
CurrencyCode¶
The ISO 4217 currency code (e.g., USD, EUR) for the monetary amount.
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 |