SAP ABAP Class CL_RSDHAR_UNIT_CONVERSION (Runtime: Unit Conversion)
Hierarchy
SAP_BW (Software Component) SAP Business Warehouse
   BW-WHM-DST-HAP (Application Component) HANA Analysis Process
     RSDHA (Package) SAP HANA Analysis in BW
Properties
Class CL_RSDHAR_UNIT_CONVERSION  
Short Description Runtime: Unit Conversion    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package RSDHA   SAP HANA Analysis in BW 
Created 20120823   SAP 
Last change 20140121   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 CL_RSDHAM_FIELD_DESCR Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 CL_RSDHAR_SRC_INFOPROV Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
4 CL_RSDHAR_UNIT_CONVERSION Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
5 IF_RSDHAM_FIELD_DESCR Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
6 IF_RSDHAM_SRC_INFOPROV Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
7 IF_RSDHA_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_RSDHAR_UNIT_CONVERSION has no interface implemented.
Friends
Class CL_RSDHAR_UNIT_CONVERSION has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 N_T_MAPPING Instance attribute Public Type reference (TYPE) IF_RSDHA_TYPES=>TN_T_FIELD_MAPPING Field mapping (table) 20120823
2 P_C_OUTPUT_UNIT_SUFFIX Constant Private Type reference (TYPE) STRING '.OUTPUT' Suffix for Output Unit 20130527
3 P_C_VIEWNAME Constant Private See coding 20120827
4 P_C_VIEWNAME_PREFIX Constant Private See coding 20120827
5 P_C_VIEWNAME_SUFFIX Constant Private See coding 20120827
6 P_KEYDATE Instance attribute Private Type reference (TYPE) D Key Date 20121006
7 P_R_CALCSCENARIO Instance attribute Private Object reference (TYPE REF TO) CL_RSDD_CS_CALCSCENARIO CalculationScenario 20120823
8 P_R_SOURCE_VIEW Instance attribute Private Object reference (TYPE REF TO) CL_RSDD_CS_CALCVIEW View for source data 20120823
9 P_TH_FIELD_CURR_TRAN Instance attribute Private Type reference (TYPE) CL_RSDHAR_UNIT_CONVERSION=>TN_TH_FIELD_CURR_TRAN Field property: Currency translation (table) 20120823
10 P_TH_FIELD_QUAN_CONV Instance attribute Private Type reference (TYPE) CL_RSDHAR_UNIT_CONVERSION=>TN_TH_FIELD_QUAN_CONV Field property: Quantity conversion (table) 20120823
11 P_T_FIELD Instance attribute Private Type reference (TYPE) IF_RSDHAM_FIELD_DESCR=>TN_T_FIELD Fields 20120824
12 P_VIEW_PREFIX Instance attribute Private Type reference (TYPE) STRING Prefix for view names 20120824
Methods
# Method Level Visibility Method type Description Created on
1 ADD_AGGREGATION Instance method Private Method Add Remaining Source fields to Vertical Union 20120824
2 ADD_FIELDS_TO_VERTICAL_UNION Instance method Private Method Add Aggregation 20120824
3 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20120823
4 CREATE_CALCVIEWS Instance method Public Method Create CalcViews 20120823
5 P_ADD_CURRENCY_TRANSLATIONS Instance method Private Method Add Currency Translation Views to Calculation Scenario 20120823
6 P_ADD_QUANTITY_CONVERSIONS Instance method Private Method Add Quantity Conversion Views to Calculation Scenario 20120823
7 P_SET_REFERENCE_DATE Instance method Private Method Set Constant Reference Date 20120914
8 P_SET_SOURCE_CURRENCY Instance method Private Method Set Source Currency 20120914
9 P_SET_SOURCE_UOM Instance method Private Method Set Source Unit of Measure 20120918
10 P_SET_TARGET_CURRENCY Instance method Private Method Set Target Currency 20120914
11 P_SET_TARGET_UOM Instance method Private Method Set Target Unit of Measure 20120918
Events
Class CL_RSDHAR_UNIT_CONVERSION has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TN_S_FIELD_CURR_TRAN Public See coding Currency Translation 20120914 BEGIN OF tn_s_field_curr_tran, name TYPE if_rsdham_field_descr=>tn_name, cttnm TYPE rscurtrt-cttnm, object TYPE REF TO cl_rsdha_currency_translation, END OF tn_s_field_curr_tran
2 TN_S_FIELD_QUAN_CONV Public See coding Quantity Conversion 20120918 BEGIN OF tn_s_field_quan_conv, name TYPE if_rsdham_field_descr=>tn_name, uomnm TYPE rsuomtrt-uomnm, object TYPE REF TO cl_rsdha_quantity_conversion, END OF tn_s_field_quan_conv
3 TN_TH_FIELD_CURR_TRAN Public See coding Currency Translation (Table Type) 20120914 tn_th_field_curr_tran TYPE HASHED TABLE OF tn_s_field_curr_tran WITH UNIQUE KEY name
4 TN_TH_FIELD_QUAN_CONV Public See coding Quantity Conversion (Table Type) 20120918 tn_th_field_quan_conv TYPE HASHED TABLE OF tn_s_field_quan_conv WITH UNIQUE KEY name
Method Signatures

Method ADD_AGGREGATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_VERTICAL_UNION Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNION Projection View in Calculation Scenario 20120824
2 Importing I_T_FIELD Call by reference Type reference (TYPE) IF_RSDHAM_FIELD_DESCR=>TN_T_FIELD Output fields of source infoprovider 20120824
3 Returning R_R_AGGREGATION Value transfer Object reference (TYPE REF TO) CL_RSDD_CS_AGGREGATION Calculation View vom Typ UNION 20120824

Method ADD_AGGREGATION on class CL_RSDHAR_UNIT_CONVERSION has no exception.

Method ADD_FIELDS_TO_VERTICAL_UNION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_R_VERTICAL_UNION Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNION Calculation View vom Typ UNION 20120824
2 Importing I_R_SOURCE_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_CALCVIEW Projection View in Calculation Scenario 20120824
3 Importing I_T_FIELD Call by reference Type reference (TYPE) IF_RSDHAM_FIELD_DESCR=>TN_T_FIELD Output fields of source infoprovider 20120824

Method ADD_FIELDS_TO_VERTICAL_UNION on class CL_RSDHAR_UNIT_CONVERSION has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_KEYDATE Call by reference Type reference (TYPE) D Key Date 20121006
2 Importing I_TH_FIELD_CURR_TRAN Call by reference Type reference (TYPE) CL_RSDHAR_UNIT_CONVERSION=>TN_TH_FIELD_CURR_TRAN Field property: Currency translation (table) 20120823
3 Importing I_TH_FIELD_QUAN_CONV Call by reference Type reference (TYPE) CL_RSDHAR_UNIT_CONVERSION=>TN_TH_FIELD_QUAN_CONV Field property: Quantity conversion (table) 20120823
4 Importing I_T_FIELD Call by reference Type reference (TYPE) IF_RSDHAM_FIELD_DESCR=>TN_T_FIELD Fields 20120824

Method CONSTRUCTOR on class CL_RSDHAR_UNIT_CONVERSION has no exception.

Method CREATE_CALCVIEWS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_CALCSCENARIO Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_CALCSCENARIO Calculation Scenario 20120823
2 Importing I_R_SOURCE_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_CALCVIEW View for source data 20120823
3 Importing I_VIEW_PREFIX Call by reference Type reference (TYPE) STRING Prefix for view names 20120824
4 Returning R_R_OUTPUT_VIEW Value transfer Object reference (TYPE REF TO) CL_RSDD_CS_CALCVIEW Output View 20120824
# Exception Resumable Description Created on
1 CX_RSDHA_MSG Exception with generic message 20130925

Method P_ADD_CURRENCY_TRANSLATIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_R_VERTICAL_UNION Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNION Calculation View vom Typ UNION 20120824
2 Changing C_T_FIELD Call by reference Type reference (TYPE) IF_RSDHAM_FIELD_DESCR=>TN_T_FIELD Output fields of source infoprovider 20120824
3 Importing I_R_SOURCE_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_CALCVIEW Projection View in Calculation Scenario 20120823
4 Importing I_TH_FIELD_CURR_TRAN Call by reference Type reference (TYPE) CL_RSDHAR_UNIT_CONVERSION=>TN_TH_FIELD_CURR_TRAN Field property: Currency translation (table) 20120823
# Exception Resumable Description Created on
1 CX_RSDHA_MSG Exception with generic message 20130925

Method P_ADD_QUANTITY_CONVERSIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_R_VERTICAL_UNION Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNION Calculation View vom Typ UNION 20120824
2 Changing C_T_FIELD Call by reference Type reference (TYPE) IF_RSDHAM_FIELD_DESCR=>TN_T_FIELD Output fields of source infoprovider 20120824
3 Importing I_R_SOURCE_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_CALCVIEW Projection View in Calculation Scenario 20120823
4 Importing I_TH_FIELD_QUAN_CONV Call by reference Type reference (TYPE) CL_RSDHAR_UNIT_CONVERSION=>TN_TH_FIELD_QUAN_CONV Field property: Quantity Conversion (table) 20120823
# Exception Resumable Description Created on
1 CX_RSDHA_MSG Exception with generic message 20130925

Method P_SET_REFERENCE_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_CURRENCY_TRANSLATION Call by reference Object reference (TYPE REF TO) CL_RSDHA_CURRENCY_TRANSLATION Currency Translation 20120914
2 Importing I_R_UNIT_CONV_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNIT_CONV_VIEW Calculation View for Unit Conversion 20120914

Method P_SET_REFERENCE_DATE on class CL_RSDHAR_UNIT_CONVERSION has no exception.

Method P_SET_SOURCE_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_CURRENCY_TRANSLATION Call by reference Object reference (TYPE REF TO) CL_RSDHA_CURRENCY_TRANSLATION Currency Translation 20120914
2 Importing I_R_UNIT_CONV_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNIT_CONV_VIEW Calculation View for Unit Conversion 20120914

Method P_SET_SOURCE_CURRENCY on class CL_RSDHAR_UNIT_CONVERSION has no exception.

Method P_SET_SOURCE_UOM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_QUANTITY_CONVERSION Call by reference Object reference (TYPE REF TO) CL_RSDHA_QUANTITY_CONVERSION Quantity Conversion 20120918
2 Importing I_R_UNIT_CONV_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNIT_CONV_VIEW Calculation View for Unit Conversion 20120918

Method P_SET_SOURCE_UOM on class CL_RSDHAR_UNIT_CONVERSION has no exception.

Method P_SET_TARGET_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_CURRENCY_TRANSLATION Call by reference Object reference (TYPE REF TO) CL_RSDHA_CURRENCY_TRANSLATION Currency Translation 20120914
2 Importing I_R_UNIT_CONV_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNIT_CONV_VIEW Calculation View for Unit Conversion 20120914

Method P_SET_TARGET_CURRENCY on class CL_RSDHAR_UNIT_CONVERSION has no exception.

Method P_SET_TARGET_UOM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_R_QUANTITY_CONVERSION Call by reference Object reference (TYPE REF TO) CL_RSDHA_QUANTITY_CONVERSION Quantity Conversion 20120918
2 Importing I_R_UNIT_CONV_VIEW Call by reference Object reference (TYPE REF TO) CL_RSDD_CS_UNIT_CONV_VIEW Calculation View for Unit Conversion 20120918

Method P_SET_TARGET_UOM on class CL_RSDHAR_UNIT_CONVERSION has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 740