/AWS1/CL_SGMUSD¶
Represents an amount of money in United States dollars.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_dollars TYPE /AWS1/SGMDOLLARS /AWS1/SGMDOLLARS¶
The whole number of dollars in the amount.
iv_cents TYPE /AWS1/SGMCENTS /AWS1/SGMCENTS¶
The fractional portion, in cents, of the amount.
iv_tenthfractionsofacent TYPE /AWS1/SGMTENTHFRACTIONSOFACENT /AWS1/SGMTENTHFRACTIONSOFACENT¶
Fractions of a cent, in tenths.
Queryable Attributes¶
Dollars¶
The whole number of dollars in the amount.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DOLLARS() |
Getter for DOLLARS, with configurable default |
ASK_DOLLARS() |
Getter for DOLLARS w/ exceptions if field has no value |
HAS_DOLLARS() |
Determine if DOLLARS has a value |
Cents¶
The fractional portion, in cents, of the amount.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CENTS() |
Getter for CENTS, with configurable default |
ASK_CENTS() |
Getter for CENTS w/ exceptions if field has no value |
HAS_CENTS() |
Determine if CENTS has a value |
TenthFractionsOfACent¶
Fractions of a cent, in tenths.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TENTHFRACTIONSOFACENT() |
Getter for TENTHFRACTIONSOFACENT, with configurable default |
ASK_TENTHFRACTIONSOFACENT() |
Getter for TENTHFRACTIONSOFACENT w/ exceptions if field has |
HAS_TENTHFRACTIONSOFACENT() |
Determine if TENTHFRACTIONSOFACENT has a value |