SAP ABAP Class CL_GRFN_FDT_AMOUNT_CONV (FDT Service: Conversion of amounts w. currencycode)
Hierarchy
☛
GRCFND_A (Software Component) GRC Foundation ABAP
⤷
GRC (Application Component) Governance, Risk and Compliance
⤷
GRFN_AUTO_MONITOR (Package) GRC Automated Monitoring Framework
⤷
⤷
Properties
| Class | CL_GRFN_FDT_AMOUNT_CONV | |
| Short Description | FDT Service: Conversion of amounts w. currencycode | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | GRFN_AUTO_MONITOR | GRC Automated Monitoring Framework |
| Created | 20100430 | SAP |
| Last change | 20141106 | |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_GRFN_FDT_AMOUNT_CONV has no interface implemented.
Friends
Class CL_GRFN_FDT_AMOUNT_CONV has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Type reference (TYPE) | TH_CURR_EXIST | 20100430 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Convert from external to internal format | 20100430 | |
| 2 | Static method | Public | Method | Convert from internal to external format | 20100430 | |
| 3 | Static method | Public | Method | Get number of decimals for currency (TCURX), default 2 | 20100430 | |
| 4 | Static method | Private | Method | Shift number by specified digits | 20100430 |
Events
Class CL_GRFN_FDT_AMOUNT_CONV has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | AMOUNT_INTERNAL | Public | See coding | 20100430 | |
||
| 2 | S_CURR_EXIST | Private | See coding | 20100430 | |
||
| 3 | TH_CURR_EXIST | Private | See coding | 20100430 | |
Method Signatures
Method CONVERT_FROM_CURR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AMOUNT_CURR | Call by reference | Type reference (TYPE) | GRFN_FDT_AMOUNT_CURR | Amount shifted and therefore with 2 decimals of currency | 20100430 | |||
| 2 | IV_CURRENCY | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT-CURRENCY | BRFplus Currency | 20100430 | |||
| 3 | RV_AMOUNT | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT-NUMBER | BRFplus Decimal Number | 20100430 |
Method CONVERT_FROM_CURR on class CL_GRFN_FDT_AMOUNT_CONV has no exception.
Method CONVERT_TO_CURR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_AMOUNT_CURR | Call by reference | Type reference (TYPE) | GRFN_FDT_AMOUNT_CURR | Amount shifted by and therefore with 2 decimal places | 20100430 | |||
| 2 | EV_AMOUNT_INT | Call by reference | Type reference (TYPE) | AMOUNT_INTERNAL | Amount shifted by and therefore without decimal places | 20100430 | |||
| 3 | IS_AMOUNT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT | 20100430 |
Method CONVERT_TO_CURR on class CL_GRFN_FDT_AMOUNT_CONV has no exception.
Method GET_CURRENCY_DECIMALS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CURRENCY | Call by reference | Type reference (TYPE) | SYCURR | Currency Key | 20100430 | |||
| 2 | IV_RELATIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Get relative to default 2 decimals | 20100430 | ||
| 3 | RV_DECIMALS | Value transfer | Type reference (TYPE) | CURRDEC | Number of decimal places | 20100430 |
Method GET_CURRENCY_DECIMALS on class CL_GRFN_FDT_AMOUNT_CONV has no exception.
Method SHIFT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AMOUNT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT-NUMBER | 20100430 | ||||
| 2 | IV_DECIMALS | Call by reference | Type reference (TYPE) | I | 20100430 | ||||
| 3 | RV_SHIFTED_AMOUNT | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT-NUMBER | 20100430 |
Method SHIFT on class CL_GRFN_FDT_AMOUNT_CONV has no exception.
History
| Last changed by/on | SAP | 20141106 |
| SAP Release Created in | 600 |