SAP ABAP Class CL_FINAR_HDB_DSO (Class for DSO Analysis HDB Access)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       FBD (Package) Customers
Properties
Class CL_FINAR_HDB_DSO  
Short Description Class for DSO Analysis HDB Access    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package FBD   Customers 
Created 20121108   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 CL_FINAR_HDB_DSO Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 RSDS Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_FINAR_HDB_DSO has no interface implemented.
Friends
Class CL_FINAR_HDB_DSO has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MO_EXVIEW_DESC Instance attribute Private Object reference (TYPE REF TO) CL_ABAP_STRUCTDESCR 20121129
2 MT_COMP_TAB Instance attribute Private Type reference (TYPE) ABAP_COMPONENT_TAB 20121129
3 MT_COMP_TAB_KEY Instance attribute Private Type reference (TYPE) ABAP_COMPONENT_TAB 20121129
4 MT_COMP_TAB_MES Instance attribute Private Type reference (TYPE) ABAP_COMPONENT_TAB 20121129
5 MT_FIELDLIST Instance attribute Private Type reference (TYPE) TT_EDPLINE 20121129
6 MT_GRPBYLIST Instance attribute Private Type reference (TYPE) TT_EDPLINE 20121129
7 MT_GRUPF Instance attribute Private Type reference (TYPE) TT_GRUPF 20121129
8 MV_EXVIEW Instance attribute Private Type reference (TYPE) STRING 20121129
9 MV_WHERECLAUSE Instance attribute Private Type reference (TYPE) STRING 20121108
Methods
# Method Level Visibility Method type Description Created on
1 CALC_SINGLE_PERIOD Instance method Private Method Calculate balance, sales of single period 20121129
2 CHECK_EXVIEW_FIELD Instance method Public Method Check whether the given field is in ex view 20121129
3 CONSTRUCTOR Instance method Public Constructor Constructor 20121108
4 CONVERT_TO_LOCAL_CURRENCY Static method Public Method Convert currency for different kinds of group 20121129
5 GET_BALANCE_SALES Instance method Public Method Get balance, sales according to dso calc type and etc 20121108
6 GET_OUTTAB_DATA Instance method Public Method Get dynamic internal table for all versions 20121129
7 GET_VIEW_FIELD Instance method Public Method Get view field name by group name info 20121129
8 PERIOD_DETERMINATION Instance method Public Method Check whether the keydate is last day of its fiscal period 20121108
9 SET_EVALUATION_PARAMETERS Instance method Public Method Parse all version and get dynamic fields, structure and etc 20121129
10 SPLIT_GROUP_FIELD_INFO Static method Public Method Parse group gield info 20121129
Events
Class CL_FINAR_HDB_DSO has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 FISCAL_VARIANT Public See coding 20121108 BEGIN OF fiscal_variant, bukrs TYPE bukrs, periv TYPE periv, END OF fiscal_variant
2 HT_FISCAL_YEAR Public See coding 20121108 ht_fiscal_year TYPE HASHED TABLE OF t_fiscal_year WITH UNIQUE KEY bukrs
3 HT_T009Y_LC Public See coding 20121115 ht_t009y_lc TYPE HASHED TABLE OF t009y_lc WITH UNIQUE KEY periv gjahr
4 HT_T009_LC Public See coding 20121115 ht_t009_lc TYPE HASHED TABLE OF t009_lc WITH UNIQUE KEY periv
5 S_KNC1_MISC Public See coding 20121108 BEGIN OF s_knc1_misc, kunnr TYPE c LENGTH 10, bukrs TYPE c LENGTH 4, " workaround for name conflict issue between t001 and knkk kkber_knkk TYPE c LENGTH 4, maber TYPE maber, gjahr TYPE c LENGTH 4, umskz TYPE umskz, um01s TYPE umxxs, um01h TYPE umxxh, um01u TYPE umxxu, um02s TYPE umxxs, um02h TYPE umxxh, um02u TYPE umxxu, um03s TYPE umxxs, um03h TYPE umxxh, um03u TYPE umxxu, um04s TYPE umxxs, um04h TYPE umxxh, um04u TYPE umxxu, um05s TYPE umxxs, um05h TYPE umxxh, um05u TYPE umxxu, um06s TYPE umxxs, um06h TYPE umxxh, um06u TYPE umxxu, um07s TYPE umxxs, um07h TYPE umxxh, um07u TYPE umxxu, um08s TYPE umxxs, um08h TYPE umxxh, um08u TYPE umxxu, um09s TYPE umxxs, um09h TYPE umxxh, um09u TYPE umxxu, um10s TYPE umxxs, um10h TYPE umxxh, um10u TYPE umxxu, um11s TYPE umxxs, um11h TYPE umxxh, um11u TYPE umxxu, um12s TYPE umxxs, um12h TYPE umxxh, um12u TYPE umxxu, um13s TYPE umxxs, um13h TYPE umxxh, um13u TYPE umxxu, um14s TYPE umxxs, um14h TYPE umxxh, um14u TYPE umxxu, um15s TYPE umxxs, um15h TYPE umxxh, um15u TYPE umxxu, um16s TYPE umxxs, um16h TYPE umxxh, um16u TYPE umxxu, umsav TYPE umxxs, periv TYPE c LENGTH 2. TYPES: END OF s_knc1_misc
6 T001_LC Public See coding 20121108 BEGIN OF t001_lc, bukrs TYPE bukrs, waers TYPE waers, kkber TYPE kkber, END OF t001_lc
7 T009Y_LC Public See coding 20121115 BEGIN OF t009y_lc, periv TYPE periv, gjahr TYPE gjahr, anzbp TYPE anzbp, END OF t009y_lc
8 T009_LC Public See coding 20121115 BEGIN OF t009_lc, periv TYPE periv, anzbp TYPE anzbp, anzsp TYPE anzsp, END OF t009_lc
9 T014_LC Public See coding 20121108 BEGIN OF t014_lc, kkber TYPE kkber, waers TYPE waers, END OF t014_lc
10 TS_DSO_KEYS Public See coding 20121129 BEGIN OF ts_dso_keys, kunnr TYPE kunnr, bukrs TYPE bukrs, " workaround for name conflict issue between t001 and knkk kkber_knkk TYPE kkber, maber TYPE maber, gjahr TYPE char4, umskz TYPE umskz, END OF ts_dso_keys
11 TS_DSO_MEASURES Public See coding 20121129 BEGIN OF ts_dso_measures, aksal TYPE rr_tosal, tosal TYPE rr_tosal, toums TYPE rr_toums, todso TYPE rr_sudso, END OF ts_dso_measures
12 TS_GRUPF Public See coding 20121129 BEGIN OF ts_grupf. TYPES: grupf TYPE rr_grupf, view_field TYPE string, source_table TYPE string, source_field TYPE string, END OF ts_grupf
13 TS_I060 Public See coding 20121129 BEGIN OF ts_i060. INCLUDE TYPE t060. TYPES: grupf TYPE rr_grupf, top_n TYPE rr_top_n, perin TYPE rr_perin, dsoct TYPE rr_dsoct, levlm TYPE num1, levlk TYPE num1, levlb TYPE num1, END OF ts_i060
14 TT_EDPLINE Public See coding 20121129 tt_edpline TYPE TABLE OF edpline
15 TT_GRUPF Public See coding 20121129 tt_grupf TYPE STANDARD TABLE OF ts_grupf
16 TT_I060 Public See coding 20121129 tt_i060 TYPE STANDARD TABLE OF ts_i060
17 T_FISCAL_YEAR Public See coding 20121108 BEGIN OF t_fiscal_year, bukrs TYPE bukrs, currm TYPE monat, curry TYPE gjahr, prevm TYPE monat, prevy TYPE gjahr, ultimo TYPE abap_bool, END OF t_fiscal_year
18 T_T001_LC Public See coding 20121108 t_t001_lc TYPE HASHED TABLE OF t001_lc WITH UNIQUE KEY bukrs
19 T_T014_LC Public See coding 20121108 t_t014_lc TYPE HASHED TABLE OF t014_lc WITH UNIQUE KEY kkber
Method Signatures

Method CALC_SINGLE_PERIOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_KNC1 Call by reference Type reference (TYPE) S_KNC1_MISC 20121129
2 Exporting EV_TOSAL Call by reference Type reference (TYPE) RR_TOSAL 20121129
3 Exporting EV_TOUMS Call by reference Type reference (TYPE) RR_TOUMS 20121129
4 Importing IS_T009 Call by reference Type reference (TYPE) T009_LC 20121129
5 Importing IV_CURRM Call by reference Type reference (TYPE) MONAT 20121129
6 Importing IV_CURRY Call by reference Type reference (TYPE) GJAHR 20121129
7 Importing IV_PERIOD Call by reference Type reference (TYPE) RR_PERIN 20121129

Method CALC_SINGLE_PERIOD on class CL_FINAR_HDB_DSO has no exception.

Method CHECK_EXVIEW_FIELD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_COLUMN_NAME Call by reference Type reference (TYPE) STRING 20121129
2 Returning RV_RESULT Value transfer Type reference (TYPE) BOOLEAN 20121129

Method CHECK_EXVIEW_FIELD on class CL_FINAR_HDB_DSO has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_EXVIEW Call by reference Type reference (TYPE) STRING 20121129
2 Importing IV_PACKAGE Call by reference Type reference (TYPE) STRING 20121129
# Exception Resumable Description Created on
1 CX_ABAP_NOT_A_TABLE The value is not the name of a DB table 20121108
2 CX_ABAP_NOT_IN_PACKAGE The table is not in the given package 20121108
3 CX_SY_MOVE_CAST_ERROR 20121129

Method CONVERT_TO_LOCAL_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_LOCAL_AMT_SET Call by reference Type reference (TYPE) TS_DSO_MEASURES 20121129
2 Importing FOREIGN_CURRENCY Call by reference Type reference (TYPE) WAERS 20121129
3 Importing IS_FOREIGN_AMT_SET Call by reference Type reference (TYPE) TS_DSO_MEASURES 20121129
4 Importing IV_CALCDATE Call by reference Type reference (TYPE) DATUM 20121129
5 Importing LOCAL_CURRENCY Call by reference Type reference (TYPE) WAERS 20121129

Method CONVERT_TO_LOCAL_CURRENCY on class CL_FINAR_HDB_DSO has no exception.

Method GET_BALANCE_SALES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_AGGR_LINE Call by reference Type reference (TYPE) CL_FINAR_HDB_DSO=>TS_DSO_MEASURES 20121108
2 Changing CS_KNC1 Call by reference Type reference (TYPE) CL_FINAR_HDB_DSO=>S_KNC1_MISC 20121108
3 Importing IS_FISCAL_YEAR Call by reference Type reference (TYPE) CL_FINAR_HDB_DSO=>T_FISCAL_YEAR 20121108
4 Importing IS_T009 Call by reference Type reference (TYPE) T009_LC 20121108
5 Importing IS_T009Y Call by reference Type reference (TYPE) T009Y_LC 20121108
6 Importing IV_DSOCT Call by reference Type reference (TYPE) RR_DSOCT 20121129
7 Importing IV_PERIOD Call by reference Type reference (TYPE) RR_PERIN 20121129

Method GET_BALANCE_SALES on class CL_FINAR_HDB_DSO has no exception.

Method GET_OUTTAB_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_KTO_TAB Call by reference Type reference (TYPE) TABLE 20121129
2 Importing IV_WHERECLAUSE Call by reference Type reference (TYPE) STRING 20121129

Method GET_OUTTAB_DATA on class CL_FINAR_HDB_DSO has no exception.

Method GET_VIEW_FIELD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_GRUPF Call by reference Type reference (TYPE) TS_GRUPF 20121129
2 Importing IV_GROUP_NAME Call by reference Type reference (TYPE) RR_GRUPF 20121129

Method GET_VIEW_FIELD on class CL_FINAR_HDB_DSO has no exception.

Method PERIOD_DETERMINATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20121108
2 Importing IV_CALCDATE Call by reference Type reference (TYPE) DATUM Date 20121108
3 Importing IV_PERIV Call by reference Type reference (TYPE) PERIV Fiscal Year Variant 20121108
4 Returning RV_ULTIMO Value transfer Type reference (TYPE) ABAP_BOOL 20121108

Method PERIOD_DETERMINATION on class CL_FINAR_HDB_DSO has no exception.

Method SET_EVALUATION_PARAMETERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_COMP_TAB Call by reference Type reference (TYPE) ABAP_COMPONENT_TAB 20121129
2 Importing IT_I060 Call by reference Type reference (TYPE) TT_I060 20121129

Method SET_EVALUATION_PARAMETERS on class CL_FINAR_HDB_DSO has no exception.

Method SPLIT_GROUP_FIELD_INFO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_FIELD_NAME Call by reference Type reference (TYPE) STRING 20121129
2 Exporting EV_TABLE_NAME Call by reference Type reference (TYPE) STRING 20121129
3 Importing IV_GROUP_NAME Call by reference Type reference (TYPE) RR_GRUPF 20121129

Method SPLIT_GROUP_FIELD_INFO on class CL_FINAR_HDB_DSO has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 616