SAP ABAP Class CL_GRFN_BRFP_CURR_CONVERSION (Currency Conversion Function)
Hierarchy
☛
GRCFND_A (Software Component) GRC Foundation ABAP
⤷ GRC (Application Component) Governance, Risk and Compliance
⤷ GRFN_BUSINESS_RULES (Package) GRC Shared Business Rules
⤷ GRC (Application Component) Governance, Risk and Compliance
⤷ GRFN_BUSINESS_RULES (Package) GRC Shared Business Rules
Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_GRFN_BRFP | BRF+ Function | 20100112 |
2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_GRFN_BRFP_SERIALIZABLE | BRF+ Serialization | 20100222 |
Properties
Class | CL_GRFN_BRFP_CURR_CONVERSION | |
Short Description | Currency Conversion Function | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | GRFN_BUSINESS_RULES | GRC Shared Business Rules |
Created | 20100112 | SAP |
Last change | 20141106 | |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class CL_GRFN_BRFP_CURR_CONVERSION has no forward declaration.
Interfaces
# | Interface | Abstract | Final | Description | Created on |
---|---|---|---|---|---|
1 | IF_GRFN_BRFP | BRF+ Function | 20100112 | ||
2 | IF_GRFN_BRFP_SERIALIZABLE | BRF+ Serialization | 20100222 |
Friends
Class CL_GRFN_BRFP_CURR_CONVERSION has no friend class.
Attributes
Class CL_GRFN_BRFP_CURR_CONVERSION has no attribute.
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CONVERT_CURR | Static method | Public | Method | convert amount into another currency code | 20100317 |
2 | DOWRITE | Instance method | Private | Method | Write | 20100112 |
3 | GET_CURRENCY_DECIMALS | Static method | Public | Method | Get number of decimals for currency (TCURX), default 2 | 20101208 |
4 | READ | Instance method | Private | Method | Read Currency Conversion | 20100112 |
5 | SHIFT | Static method | Private | Method | Shift number by specified digits | 20101208 |
6 | SHIFT_NO_DECIMALS | Static method | Private | Method | Shift amount to whole number | 20101208 |
7 | WRITE | Instance method | Private | Method | Write Currency Conversion | 20100112 |
Events
Class CL_GRFN_BRFP_CURR_CONVERSION has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | AMOUNT_INTERNAL | Private | See coding | 20101208 | AMOUNT_INTERNAL type p LENGTH 16 DECIMALS 0
|
Method Signatures
Method CONVERT_CURR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_AMOUNT_OUT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_NUMBER | FDT: Elementary Data Type Number | 20100317 | ||
2 | Importing | IV_AMOUNT_IN | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_NUMBER | FDT: Elementary Data Type Number | 20100317 | ||
3 | Importing | IV_CURRENCY_IN | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_CURRENCY | FDT: Elementary Data Type Currency Key | 20100317 | ||
4 | Importing | IV_CURRENCY_OUT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_CURRENCY | FDT: Elementary Data Type Currency Key | 20100317 | ||
5 | Importing | IV_EXCHANGE_RATE_TYPE | Call by reference | Type reference (TYPE) | STRING | 20100317 | |||
6 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | 20100317 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_GRFN_BRFP | BRF+ Exception Class | 20100317 |
Method DOWRITE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Changing | CV_STRING | Call by reference | Type reference (TYPE) | STRING | 20100112 | |||
2 | Importing | IS_DATA | Call by reference | Type reference (TYPE) | GRFN_S_BRFP_CURR_CONVERSION | Currency Conversion | 20100112 |
Method DOWRITE on class CL_GRFN_BRFP_CURR_CONVERSION has no exception.
Method GET_CURRENCY_DECIMALS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_CURRENCY | Call by reference | Type reference (TYPE) | SYCURR | Currency Key | 20101208 | ||
2 | Importing | IV_RELATIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Get relative to default 2 decimals | 20101208 | |
3 | Returning | RV_DECIMALS | Value transfer | Type reference (TYPE) | CURRDEC | Number of decimal places | 20101208 |
Method GET_CURRENCY_DECIMALS on class CL_GRFN_BRFP_CURR_CONVERSION has no exception.
Method READ Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Changing | CT_DATA | Call by reference | Type reference (TYPE) | GRFN_T_BRFP_CURR_CONVERSION | Group & Aggregation | 20100112 | ||
2 | Importing | IV_STRING | Call by reference | Type reference (TYPE) | STRING | 20100112 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_GRFN_BRFP | BRFP Exception Class | 20100112 |
Method SHIFT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_AMOUNT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT-NUMBER | 20101208 | |||
2 | Importing | IV_DECIMALS | Call by reference | Type reference (TYPE) | I | 20101208 | |||
3 | Returning | RV_SHIFTED_AMOUNT | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT-NUMBER | 20101208 |
Method SHIFT on class CL_GRFN_BRFP_CURR_CONVERSION has no exception.
Method SHIFT_NO_DECIMALS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_AMOUNT_INT | Call by reference | Type reference (TYPE) | AMOUNT_INTERNAL | Amount with no decimals | 20101208 | ||
2 | Exporting | EV_DECIMALS_CURRENCY | Call by reference | Type reference (TYPE) | CURRDEC | Decimals shifted by currency | 20101208 | ||
3 | Exporting | EV_DECIMALS_PRECISION | Call by reference | Type reference (TYPE) | I | Decimals shifted for precision | 20101208 | ||
4 | Exporting | EV_DECIMALS_TOTAL | Call by reference | Type reference (TYPE) | I | Total number of shifted decimals | 20101208 | ||
5 | Importing | IS_AMOUNT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_AMOUNT | Elementary Data Type Amount | 20101208 | ||
6 | Importing | IV_MIN_DECIMALS | Call by reference | Type reference (TYPE) | CURRDEC | 0 | Min. shift for higher precision | 20101208 |
Method SHIFT_NO_DECIMALS on class CL_GRFN_BRFP_CURR_CONVERSION has no exception.
Method WRITE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IT_DATA | Call by reference | Type reference (TYPE) | GRFN_T_BRFP_CURR_CONVERSION | Currency Conversion | 20100112 | ||
2 | Returning | RV_STRING | Value transfer | Type reference (TYPE) | STRING | 20100112 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_GRFN_BRFP | BRFP Exception Class | 20100112 |
History
Last changed by/on | SAP | 20141106 |
SAP Release Created in | 600 |