SAP ABAP Class CL_FDT_QUANTITY_DIMENSION (FDT Service: Quantity)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SRV-BR (Application Component) BRFplus - ABAP-Based Business Rules
⤷
SFDT_SERVICE (Package) BRFplus: Services
⤷
⤷
Properties
| Class | CL_FDT_QUANTITY_DIMENSION | |
| Short Description | FDT Service: Quantity | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SFDT_SERVICE | BRFplus: Services |
| Created | 20090911 | SAP |
| Last change | 20130531 | SAP |
| 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_FDT_QUANTITY_DIMENSION has no interface implemented.
Friends
Class CL_FDT_QUANTITY_DIMENSION 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) | TS_DIMENSION_UNIT | Dimension to unit table | 20100115 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | sum two quantities | 20090914 | |
| 2 | Static method | Public | Method | check consistency of an addition or a subtraction | 20090914 | |
| 3 | Static method | Public | Method | Check whether the Quantity Dimension exsits | 20090914 | |
| 4 | Static method | Public | Method | check consistency of a division | 20090914 | |
| 5 | Static method | Public | Method | check consistency of a division with dimension info | 20110930 | |
| 6 | Static method | Public | Method | check consistency of a multiplication | 20090914 | |
| 7 | Static method | Public | Method | check consistency of a multiplication with dimension info. | 20110930 | |
| 8 | Static method | Public | Method | check consistency of a unit-quantity category pair | 20090914 | |
| 9 | Static method | Public | Method | divide two quantities | 20090914 | |
| 10 | Static method | Public | Method | 20100121 | ||
| 11 | Static method | Public | Method | get quantity category from unit | 20090914 | |
| 12 | Static method | Public | Method | Get text for dimension | 20100121 | |
| 13 | Static method | Public | Method | get SI unit for a given dimension | 20090914 | |
| 14 | Static method | Public | Method | 20100115 | ||
| 15 | Static method | Public | Method | multiply two quantities | 20090914 | |
| 16 | Static method | Public | Method | subtract one quantity from another | 20090914 | |
| 17 | Static method | Private | Method | get quantity category data from unit | 20090914 | |
| 18 | Static method | Private | Method | get quantity category key from dimensions | 20090914 |
Events
Class CL_FDT_QUANTITY_DIMENSION has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | S_DIMENSION_UNIT | Private | See coding | Dimension to unit mapping | 20100115 | begin of s_dimension_unit,
quantity_dimension type if_fdt_types=>quantity_dimension,
unit type if_fdt_types=>element_unit,
end of s_dimension_unit
|
|
| 2 | S_QUANTITY_DIMENSION_DATA | Private | See coding | 20090925 | begin of s_quantity_dimension_data,
qcat type if_fdt_types=>quantity_dimension,
length type leng,
mass type mass,
time type timex,
electric_current type ecurr,
thermodyn_temp type temp,
amt_of_substance type molqu,
lumi_intensity type light,
text type char20,
end of s_quantity_dimension_data
|
||
| 3 | TS_DIMENSION_UNIT | Private | See coding | Dimension to unit table | 20100115 | ts_dimension_unit type sorted table of s_dimension_unit with non-unique key quantity_dimension
|
|
| 4 | TS_ELEMENT_UNIT | Public | See coding | Sortet table of units | 20100115 | ts_element_unit type sorted table of if_fdt_types=>element_unit with unique key table_line
|
|
| 5 | TS_QUANTITY_DIMENSION | Public | See coding | 20100121 | ts_quantity_dimension type sorted table of if_fdt_types=>quantity_dimension with unique key table_line
|
Method Signatures
Method ADD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_SUMMAND1 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 2 | IS_SUMMAND2 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 3 | IV_SUM_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 4 | RS_SUM | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 | ||
| 2 | FDT: Processing Error | 20090914 |
Method CHECK_ADDITION_SUBTRACTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_RESULT_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 2 | EV_RESULT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 3 | EV_TERM1_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 4 | EV_TERM2_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 5 | IS_TERM1 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 6 | IS_TERM2 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 7 | IV_RESULT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
Method CHECK_DIMENSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_EXISTS | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20090914 | ||||
| 2 | IV_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key | 20090914 |
Method CHECK_DIMENSION on class CL_FDT_QUANTITY_DIMENSION has no exception.
Method CHECK_DIVISION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DIVIDEND_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 2 | EV_DIVISOR_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 3 | EV_QUOTIENT_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 4 | EV_QUOTIENT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 5 | IS_DIVIDEND | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 6 | IS_DIVISOR | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 7 | IV_QUOTIENT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
Method CHECK_DIVISION_WITH_DIM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_QUOTIENT_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key ( Quotient ) | 20110930 | |||
| 2 | EV_QUOTIENT_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Quotient SI unit | 20110930 | |||
| 3 | IV_DIVIDEND_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key ( dividend ) | 20110930 | |||
| 4 | IV_DIVISOR_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key ( divisor ) | 20110930 | |||
| 5 | IV_QUOTIENT_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key ( Quotient ) | 20110930 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20110930 |
Method CHECK_MULTIPLICATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FACTOR1_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 2 | EV_FACTOR2_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 3 | EV_PRODUCT_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Quantity | 20090914 | |||
| 4 | EV_PRODUCT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 5 | IS_FACTOR1 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 6 | IS_FACTOR2 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 7 | IV_PRODUCT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
Method CHECK_MULTIPLICATION_WITH_DIM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_PRODUCT_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key( final product ) | 20110930 | |||
| 2 | EV_PRODUCT_SI_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Product SI unit | 20110930 | |||
| 3 | IV_DIMENSION_1 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key( factor 1 ) | 20110930 | |||
| 4 | IV_DIMENSION_2 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key( factor 2 ) | 20110930 | |||
| 5 | IV_PRODUCT_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key( final product ) | 20110930 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20110930 |
Method CHECK_UNIT_DIMENSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key | 20100121 | |||
| 2 | IV_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
Method DIVIDE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_DIVIDEND | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 2 | IS_DIVISOR | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 3 | IV_QUOTIENT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 4 | RS_QUOTIENT | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 | ||
| 2 | FDT: Processing Error | 20090914 |
Method GET_DIMENSIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ETS_DIMENSION | Call by reference | Type reference (TYPE) | TS_QUANTITY_DIMENSION | 20100121 | ||||
| 2 | ET_VALUE_TEXT | Call by reference | Type reference (TYPE) | FDTT_VALUE_TEXT | FDT: Value with text | 20100121 | |||
| 3 | IV_LANGU | Call by reference | Type reference (TYPE) | SY-LANGU | SY-LANGU | Language Key of Current Text Environment | 20100121 |
Method GET_DIMENSIONS on class CL_FDT_QUANTITY_DIMENSION has no exception.
Method GET_DIMENSION_FROM_UNIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 2 | RV_DIMENSION | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Quantity category | 20100121 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
Method GET_DIMENSION_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key | 20100121 | |||
| 2 | IV_LANGU | Call by reference | Type reference (TYPE) | SY-LANGU | SY-LANGU | Language Key of Current Text Environment | 20100121 | ||
| 3 | RV_TEXT | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>TEXT | Text | 20100121 |
Method GET_DIMENSION_TEXT on class CL_FDT_QUANTITY_DIMENSION has no exception.
Method GET_SI_UNIT_FOR_DIMENSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key | 20100121 | |||
| 2 | RV_SI_UNIT | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
Method GET_UNITS_FROM_DIMENSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ETS_UNIT | Call by reference | Type reference (TYPE) | TS_ELEMENT_UNIT | 20100115 | ||||
| 2 | IV_DIMENSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key | 20100121 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20100115 |
Method MULTIPLY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_FACTOR1 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 2 | IS_FACTOR2 | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 3 | IV_PRODUCT_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 4 | RS_PRODUCT | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 | ||
| 2 | FDT: Processing Error | 20090914 |
Method SUBTRACT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_MINUEND | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 2 | IS_SUBTRAHEND | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 | |||
| 3 | IV_DIFFERENCE_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 | |||
| 4 | RS_DIFFERENCE | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_QUANTITY | Elementary Data Type Quantity | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 | ||
| 2 | FDT: Processing Error | 20090914 |
Method _GET_QCAT_DATA_FROM_UNIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_QUANTITY_DIMENSION_DATA | Call by reference | Type reference (TYPE) | S_QUANTITY_DIMENSION_DATA | 20090914 | ||||
| 2 | IV_DIMENSION_KEY | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>QUANTITY_DIMENSION | Dimension key | 20110930 | |||
| 3 | IV_UNIT | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_UNIT | Elementary Data Type Unit of Measurement | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
Method _GET_QCAT_FROM_DIM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CS_QUANTITY_DIMENSION_DATA | Call by reference | Type reference (TYPE) | S_QUANTITY_DIMENSION_DATA | 20090914 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Invalid Input | 20090914 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 703 |