SAP ABAP Class CL_RSDRV_SRVS_CURR_CONV (Data Manager: Currency Conversion)
Hierarchy
SAP_BW (Software Component) SAP Business Warehouse
   BW-BEX-OT (Application Component) OLAP Technology
     RSDRV (Package) Data Manager Virtual InfoProvider
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_RSDRV_SRVS_DTA Data-Manager: Abstract service class 20040920
Properties
Class CL_RSDRV_SRVS_CURR_CONV  
Short Description Data Manager: Currency Conversion    
Super Class CL_RSDRV_SRVS_DTA Data-Manager: Abstract service class 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status P  SAP Standard Production Program 
Category 0   
Package RSDRV   Data Manager Virtual InfoProvider 
Created 20040813   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 RS Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 RSD Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 RSDRC Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
4 RSDRS Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_RSDRV_SRVS_CURR_CONV has no interface implemented.
Friends
Class CL_RSDRV_SRVS_CURR_CONV has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 PS_TH_CURRENCY Static Attribute Private Type reference (TYPE) TP_TH_CURRENCY Currency Table containing decimals info 20040813
2 PS_T_TCURX Static Attribute Private Type reference (TYPE) TP_T_TCURX Buffered tcurx table 20040813
3 P_ALL_KYFS Instance attribute Private Type reference (TYPE) RS_BOOL Currency conversion for all kyfs 20061218
4 P_IS_PREPARED Instance attribute Private Type reference (TYPE) RS_BOOL Is conversion prepared? 20040813
5 P_SQL_FIXED_CURR Instance attribute Private Type reference (TYPE) RS_BOOL A fixed currency key figure exists 20081103
6 P_TX_CURRKYF Instance attribute Private Type reference (TYPE) TP_TX_CURRKYF Table with currency conversion metadata 20040813
7 P_TX_SQL_CURRKYF Instance attribute Private Type reference (TYPE) TP_TX_SQL_CURRKYF Metadata to build new sx_query 20081029
8 P_T_FIXEDCURR Instance attribute Private Type reference (TYPE) TP_T_FIXEDCURR Table with fixed currency keyfigure metadata 20040813
Methods
# Method Level Visibility Method type Description Created on
1 BUILD_CHA Instance method Private Method Build surrounding sx_queries cha 20081029
2 BUILD_CONVERSIONS Instance method Private Method Prepare the metadata needed for currency conversion 20081029
3 BUILD_ORDERBY Instance method Private Method Build surrounding sx_queries cha 20081029
4 BUILD_REST_KYF Instance method Private Method Prepare sx_query-t_kyf for fixed and no currency conversion 20081029
5 EXECUTE Instance method Public Method Execute the SID determination 20040813
6 GET_DECIMALS Instance method Private Method retrieve number of decimals for currency 20040813
7 PREPARE Instance method Public Method Prepare the metadata needed for currency conversion 20040813
8 PREPARE_FIXED_CURRENCIES Instance method Private Method Prepare the metadata needed for the SID determination 20040813
9 PREPARE_QUERY_META Instance method Protected Method Prepare the metadata needed for currency conversion 20081029
10 PREPARE_SX_QUERY Instance method Public Method Prepare the metadata needed for currency conversion 20081028
Events
Class CL_RSDRV_SRVS_CURR_CONV has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TP_SX_CURRKYF Private See coding Metadata for one currency entry 20040813 begin of tp_sx_currkyf, curr_comp TYPE i, "position of CURR-CHA in structure is_sid TYPE rs_bool, "a SID column in structure? t_kyf_comp TYPE tp_t_int, "positions of affected key figures end of tp_sx_currkyf
2 TP_SX_SQL_CURRKYF Private See coding 20081028 begin of tp_sx_sql_currkyf, retalias TYPE rsdrs_alias, "retalias of currency cha chanm TYPE rsd_chanm, "chanm of currency cha is_sid TYPE rs_bool, "sid ? (then add join needed...) t_kyf TYPE tp_t_sql_kyf, "retalias of affected key figures end of tp_sx_sql_currkyf
3 TP_S_CURRENCY Private See coding 20040813 begin of tp_s_currency, currkey TYPE sycurr, currsid TYPE rssid, currdec TYPE currdec, end of tp_s_currency
4 TP_S_FIXEDCURR Private See coding Metadata for single kyf with fixed currency 20040813 begin of tp_s_fixedcurr, kyf_comp TYPE i, fixcuky TYPE rsfixcuky, "fixed currency key end of tp_s_fixedcurr
5 TP_S_SQL_KYF Private See coding 20081029 begin of tp_s_sql_kyf, alias type rsdrs_alias, kyfnm type rsdiobjnm, end of tp_s_sql_kyf
6 TP_TH_CURRENCY Private See coding 20040813 tp_th_currency TYPE HASHED TABLE OF tp_s_currency WITH unique KEY currkey currsid INITIAL SIZE 0
7 TP_TX_CURRKYF Private See coding Table with currency entries 20040813 tp_tx_currkyf TYPE STANDARD TABLE OF tp_sx_currkyf WITH KEY curr_comp INITIAL SIZE 0
8 TP_TX_SQL_CURRKYF Private See coding 20081028 tp_tx_sql_currkyf type standard table of tp_sx_sql_currkyf with key retalias initial size 0
9 TP_T_FIXEDCURR Private See coding Table with fixed currency keyfigure entries 20040813 tp_t_fixedcurr TYPE STANDARD TABLE OF tp_s_fixedcurr WITH DEFAULT KEY INITIAL SIZE 0
10 TP_T_INT Private See coding 20040813 TP_T_INT TYPE standard table of i with default key initial size 0
11 TP_T_SQL_KYF Private See coding 20081028 tp_t_sql_kyf type standard table of tp_s_sql_kyf with key table_line initial size 0
12 TP_T_TCURX Private See coding 20040813 tp_t_tcurx TYPE STANDARD TABLE OF tcurx WITH DEFAULT KEY INITIAL SIZE 0
Method Signatures

Method BUILD_CHA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_T_CHA Call by reference Type reference (TYPE) RSDRS_T_CHA 20081029
2 Returning R_T_CHA Value transfer Type reference (TYPE) RSDRS_T_CHA 20081029

Method BUILD_CHA on class CL_RSDRV_SRVS_CURR_CONV has no exception.

Method BUILD_CONVERSIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_SX_QUERY Call by reference Type reference (TYPE) RSDRS_SX_QUERY sx_query for currency conversion 20081029
2 Importing I_SX_QUERY Call by reference Type reference (TYPE) RSDRS_SX_QUERY sx_query for unconverted data... 20081029

Method BUILD_CONVERSIONS on class CL_RSDRV_SRVS_CURR_CONV has no exception.

Method BUILD_ORDERBY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_T_CHA Call by reference Type reference (TYPE) RSDRS_T_CHA 20081029
2 Importing I_T_ORDERBY Value transfer Type reference (TYPE) RSDRS_T_ORDERBY 20081029
3 Returning R_T_ORDERBY Value transfer Type reference (TYPE) RSDRS_T_ORDERBY 20081029

Method BUILD_ORDERBY on class CL_RSDRV_SRVS_CURR_CONV has no exception.

Method BUILD_REST_KYF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_T_KYF Call by reference Type reference (TYPE) RSDRS_T_KYF t_kyf of final query 20081029
2 Exporting E_FIXCUKY_FOUND Call by reference Type reference (TYPE) RS_BOOL Kyf with fix conversion found 20090810
3 Importing I_T_KYF Call by reference Type reference (TYPE) RSDRS_T_KYF t_kyf of original query 20081029

Method BUILD_REST_KYF on class CL_RSDRV_SRVS_CURR_CONV has no exception.

Method EXECUTE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_T_DATA Call by reference Type reference (TYPE) STANDARD TABLE Table to change 20040813
2 Importing I_INT_TO_EXT Value transfer Type reference (TYPE) RS_BOOL RS_C_TRUE Internal to external format ? 20040813
# Exception Resumable Description Created on
1 CX_RS_MSG BW Exception mit generischer Nachricht (keine spez. Attrib.) 20050509
2 CX_RS_STATIC_CHECK Exception mit T100 Fehlermeldung 20040813

Method GET_DECIMALS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_CURRENCY Call by reference Type reference (TYPE) ANY currency 20040813
2 Importing I_IS_SID Call by reference Type reference (TYPE) RS_BOOL is the currency an SID ? 20040813
3 Returning R_DECIMALS Value transfer Type reference (TYPE) I number of decimals of this currency 20040813
# Exception Resumable Description Created on
1 CX_RS_MSG BW Exception mit generischer Nachricht (keine spez. Attrib.) 20050506

Method PREPARE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_EX_IN_CONVERT Call by reference Type reference (TYPE) RS_BOOL Boolean 20130812
2 Importing I_S_DATA Call by reference Type reference (TYPE) ANY Data to convert currency for 20040813
3 Importing I_TH_SFC Call by reference Type reference (TYPE) RSDD_TH_SFC Requested characteristics 20040813
4 Importing I_TH_SFK Call by reference Type reference (TYPE) RSDD_TH_SFK Tabelle der benötigten Basiskennzahlen 20040813

Method PREPARE on class CL_RSDRV_SRVS_CURR_CONV has no exception.

Method PREPARE_FIXED_CURRENCIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_TH_SFK Call by reference Type reference (TYPE) RSDD_TH_SFK Tabelle der benötigten Basiskennzahlen 20040813
2 Importing I_T_COMPONENTS Call by reference Type reference (TYPE) TO_T_COMPONENTS s_data components 20040813

Method PREPARE_FIXED_CURRENCIES on class CL_RSDRV_SRVS_CURR_CONV has no exception.

Method PREPARE_QUERY_META Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_SX_QUERY Call by reference Type reference (TYPE) RSDRS_SX_QUERY sx_query for unconverted data... 20081029
2 Importing I_TH_SFC Call by reference Type reference (TYPE) RSDD_TH_SFC Requested characteristics 20081029
3 Importing I_TH_SFK Call by reference Type reference (TYPE) RSDD_TH_SFK Tabelle der benötigten Basiskennzahlen 20081029

Method PREPARE_QUERY_META on class CL_RSDRV_SRVS_CURR_CONV has no exception.

Method PREPARE_SX_QUERY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_DB_CONVERSION Call by reference Type reference (TYPE) RS_BOOL Conversion done on Database ? 20081107
2 Exporting E_SX_QUERY Call by reference Type reference (TYPE) RSDRS_SX_QUERY sx_query for currency conversion 20081028
3 Importing I_SX_QUERY Call by reference Type reference (TYPE) RSDRS_SX_QUERY sx_query for unconverted data... 20081028
4 Importing I_TH_SFC Call by reference Type reference (TYPE) RSDD_TH_SFC Requested characteristics 20081028
5 Importing I_TH_SFK Call by reference Type reference (TYPE) RSDD_TH_SFK Tabelle der benötigten Basiskennzahlen 20081028
# Exception Resumable Description Created on
1 CX_RSDRS_STMT_TOO_LONG Generated Stmt is too long ... 20081029
2 CX_SY_SQL_ERROR SQL Fehler 20081029
History
Last changed by/on SAP  20140121 
SAP Release Created in 700