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 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 IF_FDT_TYPES 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 GTS_DIMENSION_UNIT Static Attribute Private Type reference (TYPE) TS_DIMENSION_UNIT Dimension to unit table 20100115
Methods
# Method Level Visibility Method type Description Created on
1 ADD Static method Public Method sum two quantities 20090914
2 CHECK_ADDITION_SUBTRACTION Static method Public Method check consistency of an addition or a subtraction 20090914
3 CHECK_DIMENSION Static method Public Method Check whether the Quantity Dimension exsits 20090914
4 CHECK_DIVISION Static method Public Method check consistency of a division 20090914
5 CHECK_DIVISION_WITH_DIM Static method Public Method check consistency of a division with dimension info 20110930
6 CHECK_MULTIPLICATION Static method Public Method check consistency of a multiplication 20090914
7 CHECK_MULTIPLICATION_WITH_DIM Static method Public Method check consistency of a multiplication with dimension info. 20110930
8 CHECK_UNIT_DIMENSION Static method Public Method check consistency of a unit-quantity category pair 20090914
9 DIVIDE Static method Public Method divide two quantities 20090914
10 GET_DIMENSIONS Static method Public Method 20100121
11 GET_DIMENSION_FROM_UNIT Static method Public Method get quantity category from unit 20090914
12 GET_DIMENSION_TEXT Static method Public Method Get text for dimension 20100121
13 GET_SI_UNIT_FOR_DIMENSION Static method Public Method get SI unit for a given dimension 20090914
14 GET_UNITS_FROM_DIMENSION Static method Public Method 20100115
15 MULTIPLY Static method Public Method multiply two quantities 20090914
16 SUBTRACT Static method Public Method subtract one quantity from another 20090914
17 _GET_QCAT_DATA_FROM_UNIT Static method Private Method get quantity category data from unit 20090914
18 _GET_QCAT_FROM_DIM 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 Importing IS_SUMMAND1 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
2 Importing IS_SUMMAND2 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
3 Importing IV_SUM_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
4 Returning RS_SUM Value transfer Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090914
2 CX_FDT_PROCESSING FDT: Processing Error 20090914

Method CHECK_ADDITION_SUBTRACTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_RESULT_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
2 Exporting EV_RESULT_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
3 Exporting EV_TERM1_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
4 Exporting EV_TERM2_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
5 Importing IS_TERM1 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
6 Importing IS_TERM2 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
7 Importing 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 CX_FDT_INPUT FDT: Invalid Input 20090914

Method CHECK_DIMENSION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_EXISTS Value transfer Type reference (TYPE) ABAP_BOOL 20090914
2 Importing 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 Exporting EV_DIVIDEND_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
2 Exporting EV_DIVISOR_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
3 Exporting EV_QUOTIENT_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
4 Exporting EV_QUOTIENT_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
5 Importing IS_DIVIDEND Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
6 Importing IS_DIVISOR Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
7 Importing 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 CX_FDT_INPUT 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 Exporting EV_QUOTIENT_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key ( Quotient ) 20110930
2 Exporting EV_QUOTIENT_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Quotient SI unit 20110930
3 Importing IV_DIVIDEND_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key ( dividend ) 20110930
4 Importing IV_DIVISOR_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key ( divisor ) 20110930
5 Importing IV_QUOTIENT_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key ( Quotient ) 20110930
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110930

Method CHECK_MULTIPLICATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_FACTOR1_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
2 Exporting EV_FACTOR2_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
3 Exporting EV_PRODUCT_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Quantity 20090914
4 Exporting EV_PRODUCT_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
5 Importing IS_FACTOR1 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
6 Importing IS_FACTOR2 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
7 Importing 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 CX_FDT_INPUT 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 Exporting EV_PRODUCT_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key( final product ) 20110930
2 Exporting EV_PRODUCT_SI_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Product SI unit 20110930
3 Importing IV_DIMENSION_1 Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key( factor 1 ) 20110930
4 Importing IV_DIMENSION_2 Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key( factor 2 ) 20110930
5 Importing 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 CX_FDT_INPUT FDT: Invalid Input 20110930

Method CHECK_UNIT_DIMENSION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key 20100121
2 Importing 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 CX_FDT_INPUT FDT: Invalid Input 20090914

Method DIVIDE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_DIVIDEND Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
2 Importing IS_DIVISOR Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
3 Importing IV_QUOTIENT_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
4 Returning RS_QUOTIENT Value transfer Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090914
2 CX_FDT_PROCESSING FDT: Processing Error 20090914

Method GET_DIMENSIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ETS_DIMENSION Call by reference Type reference (TYPE) TS_QUANTITY_DIMENSION 20100121
2 Exporting ET_VALUE_TEXT Call by reference Type reference (TYPE) FDTT_VALUE_TEXT FDT: Value with text 20100121
3 Importing 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 Importing IV_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
2 Returning RV_DIMENSION Value transfer Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Quantity category 20100121
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090914

Method GET_DIMENSION_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key 20100121
2 Importing IV_LANGU Call by reference Type reference (TYPE) SY-LANGU SY-LANGU Language Key of Current Text Environment 20100121
3 Returning 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 Importing IV_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key 20100121
2 Returning 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 CX_FDT_INPUT 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 Exporting ETS_UNIT Call by reference Type reference (TYPE) TS_ELEMENT_UNIT 20100115
2 Importing IV_DIMENSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key 20100121
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20100115

Method MULTIPLY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_FACTOR1 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
2 Importing IS_FACTOR2 Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
3 Importing IV_PRODUCT_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
4 Returning RS_PRODUCT Value transfer Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090914
2 CX_FDT_PROCESSING FDT: Processing Error 20090914

Method SUBTRACT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_MINUEND Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
2 Importing IS_SUBTRAHEND Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
3 Importing IV_DIFFERENCE_UNIT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_UNIT Elementary Data Type Unit of Measurement 20090914
4 Returning RS_DIFFERENCE Value transfer Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_QUANTITY Elementary Data Type Quantity 20090914
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090914
2 CX_FDT_PROCESSING 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 Exporting ES_QUANTITY_DIMENSION_DATA Call by reference Type reference (TYPE) S_QUANTITY_DIMENSION_DATA 20090914
2 Importing IV_DIMENSION_KEY Call by reference Type reference (TYPE) IF_FDT_TYPES=>QUANTITY_DIMENSION Dimension key 20110930
3 Importing 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 CX_FDT_INPUT 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 Changing CS_QUANTITY_DIMENSION_DATA Call by reference Type reference (TYPE) S_QUANTITY_DIMENSION_DATA 20090914
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090914
History
Last changed by/on SAP  20130531 
SAP Release Created in 703