SAP ABAP Class CL_KE_HDB_UTILS (CO-PA Accelerator: Utilities)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       KE (Package) Profitability Analysis
Properties
Class CL_KE_HDB_UTILS  
Short Description CO-PA Accelerator: Utilities    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package KE   Profitability Analysis 
Created 20110610   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)
Interfaces
Class CL_KE_HDB_UTILS has no interface implemented.
Friends
Class CL_KE_HDB_UTILS has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C1 Static Attribute Public Type reference (TYPE) CURSOR 20110610
2 C2 Static Attribute Public Type reference (TYPE) CURSOR 20110610
3 C4 Static Attribute Public Type reference (TYPE) CURSOR 20110610
4 GC_APPL_LOG Constant Public Type reference (TYPE) BALOBJ_D 'CO-PA' Application Log: Object Name (Application Code) 20110610
5 GC_APPL_SUBLOG Constant Public Type reference (TYPE) BALOBJ_D 'APPLOG' Application Log: Object Name (Application Code) 20110610
6 GS_TKEHACC Static Attribute Private Type reference (TYPE) TKEHACC CO-PA Accelerator: Customizing 20110616
7 GT_PAOBJNR Static Attribute Public Type reference (TYPE) TT_PAOBJNR 20110610
8 GV_CE1_FINISHED Static Attribute Public Type reference (TYPE) ABAP_BOOL 20110714
9 GV_CE2_FINISHED Static Attribute Public Type reference (TYPE) ABAP_BOOL 20110714
10 G_CHECK Static Attribute Public Type reference (TYPE) ABAP_BOOL Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ') 20110610
11 G_COUNT Static Attribute Public Type reference (TYPE) I 20110610
12 G_COUNTER Static Attribute Public Type reference (TYPE) I 20110610
13 G_LOG_HANDLE Static Attribute Public Type reference (TYPE) BALLOGHNDL Application Log: Log Handle 20110610
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_AUTHORITY Static method Public Method Authorization Check 20110610
2 CHECK_CUSTOMIZING Static method Public Method Checks Whether Customizing Settings Are Made 20110610
3 CHECK_REGISTRATION_VALID Static method Public Method Checks Validity of Registration 20110804
4 CLOSE_CURSOR Static method Public Method Close Cursor 20110610
5 CONVERT_TIMESTAMP_INPUT Static method Public Method Converts Date and Time in RKE_HZSTMP 20110630
6 DISPLAY_LOG Static method Public Method Open an Application Log 20110610
7 DOUBLE_COMMIT_NATIVE Static method Public Method Commit to HANA + ERP DB in Native SQL 20110706
8 FINALIZE Static method Public Method Finalizes Framework for Write Program / Realignment 20110629
9 GET_DATA Static method Public Method Read Data via Fetch 20110715
10 GET_DB_CONNECTION Static method Public Method Read Database Connection 20110610
11 GET_TABLE_SIZE Static method Public Method Reads Size of CE* Tables 20110707
12 GET_TIMEFRAME Static method Public Method Determines Start Time and End Time of Current Run 20110628
13 HANDLE_SUCCESS Static method Public Method Stores Errors and Log and Displays Log 20110616
14 LOCK_REPORT Static method Public Method Locks Program at Operating Concern Level 20110610
15 MESSAGE Static method Public Method Fill Application Log 20110610
16 MODIFY_DATA_2_HANA Static method Public Method Writes Data to HANA Database 20110708
17 OPEN_CURSOR_CE1_CE2 Static method Public Method Prepares SELECT 20110627
18 OPEN_CURSOR_CE4 Static method Public Method Prepares Selection of Realignment Data 20110708
19 OPEN_LOG Static method Public Method Open an Application Log 20110610
20 PREPARATION Static method Public Method Initializes Framework for Write Program / Realignment 20110629
21 SAVE_LOG Static method Public Method Open an Application Log 20110610
22 SELECT_ALL Static method Public Method Prepares SELECT 20110615
23 SET_CHECK Static method Public Method Only Temporary: When X Is Set, Dumps Are Triggered 20110610
24 TEXT_TO_LOG Static method Public Method Insertion of a Text in Application Log 20110701
25 WRITE_DATA_2_HANA Static method Public Method Saves Data in HANA 20110610
Events
Class CL_KE_HDB_UTILS has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 S_RKENCCRUN Public See coding 20110908 begin of s_rkenccrun, chgrun TYPE rkenccrun, end of s_rkenccrun
2 TT_PAOBJNR Public See coding 20110610 tt_paobjnr TYPE SORTED TABLE OF t_paobjnr WITH UNIQUE KEY table_line
3 T_PAOBJNR Public See coding 20110610 BEGIN OF t_paobjnr , paobjnr TYPE rkeobjnr, pasubnr TYPE rkesubnr, END OF t_paobjnr
4 T_RKENCCRUN Public See coding 20110908 t_rkenccrun TYPE STANDARD TABLE OF s_rkenccrun
Method Signatures

Method CHECK_AUTHORITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CE1_NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110729
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110614

Method CHECK_CUSTOMIZING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110610
2 Importing I_RECONCILIATION Call by reference Type reference (TYPE) C 20110805
3 Returning R_DBCON Value transfer Type reference (TYPE) DBCON_NAME Logischer Name einer Datenbankverbindung 20110610
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110614

Method CHECK_REGISTRATION_VALID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_REGISTRATION_VALID Call by reference Type reference (TYPE) ANY 20110804
2 Importing I_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110804
3 Importing I_PATYPE Call by reference Type reference (TYPE) RKE_PATYPE Form der Ergebnisrechnung 20110804

Method CHECK_REGISTRATION_VALID on class CL_KE_HDB_UTILS has no exception.

Method CLOSE_CURSOR Signature

Method CLOSE_CURSOR on class CL_KE_HDB_UTILS has no parameter.
Method CLOSE_CURSOR on class CL_KE_HDB_UTILS has no exception.

Method CONVERT_TIMESTAMP_INPUT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20110630
2 Importing IV_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110630
3 Importing IV_TIME Call by reference Type reference (TYPE) TIMS '000000' Feld vom Typ TIMS 20110630
4 Returning RV_TIMESTAMP Value transfer Type reference (TYPE) RKE_HZSTMP Zeitpunkt in Greenwich Meantime 20110704
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110630

Method DISPLAY_LOG Signature

Method DISPLAY_LOG on class CL_KE_HDB_UTILS has no parameter.
Method DISPLAY_LOG on class CL_KE_HDB_UTILS has no exception.

Method DOUBLE_COMMIT_NATIVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CONN Call by reference Type reference (TYPE) DBCON_NAME Logischer Name einer Datenbankverbindung 20110706

Method DOUBLE_COMMIT_NATIVE on class CL_KE_HDB_UTILS has no exception.

Method FINALIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110705
2 Importing IV_ERROR Call by reference Type reference (TYPE) BOOLE_D Fehler beim Datentransfer? 20110629
3 Importing IV_LOG_DISPL Call by reference Type reference (TYPE) XFLAG neue Eingabewerte 20110713
4 Importing IV_REALIGN_FLAG Call by reference Type reference (TYPE) BOOLE_D ABAP_FALSE Realignment-Prozess? 20110701
5 Importing IV_START_ACT Call by reference Type reference (TYPE) RKE_HZSTMP Zeitpunkt in Greenwich Meantime 20110728
6 Importing IV_START_PLA Call by reference Type reference (TYPE) RKE_HZSTMP Zeitpunkt in Greenwich Meantime 20110728
7 Importing IV_TIMESTMP_READ Call by reference Type reference (TYPE) RKE_HZSTMP Zeitpunkt in Greenwich Meantime 20110728

Method FINALIZE on class CL_KE_HDB_UTILS has no exception.

Method GET_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CE1_KEYS Call by reference Type reference (TYPE) RKE_T_HDB_CE1_KEYS Tabellentyp Schlüssel für CE1 20110715
2 Exporting ET_CE2_KEYS Call by reference Type reference (TYPE) RKE_T_HDB_CE2_KEYS Tabellentyp Schlüssel für CE2 20110715
3 Exporting ET_CE4_KEYS Call by reference Type reference (TYPE) RKE_T_HDB_CE4_KEYS Tabellentyp Schlüssel für CE4 20110715
4 Exporting EV_TSTMP_ACT Call by reference Type reference (TYPE) RKE_HZSTMP Hinzufügezeitpunkt in Greenwich Meantime 20110715
5 Exporting EV_TSTMP_PLA Call by reference Type reference (TYPE) RKE_HZSTMP Hinzufügezeitpunkt in Greenwich Meantime 20110715
6 Importing I_CE1NAME Call by reference Type reference (TYPE) CHAR30 20110715
7 Importing I_CE2NAME Call by reference Type reference (TYPE) CHAR30 20110715
8 Importing I_CE4NAME Call by reference Type reference (TYPE) CHAR30 20110715
9 Importing I_PACKAGE Call by reference Type reference (TYPE) KE_HDB_PACKSIZE Paketgröße zur Datenselektion 20110715

Method GET_DATA on class CL_KE_HDB_UTILS has no exception.

Method GET_DB_CONNECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_CONNECTION Call by reference Type reference (TYPE) DBCON_NAME Logischer Name einer Datenbankverbindung 20110610
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110714

Method GET_TABLE_SIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_ROWS Call by reference Type reference (TYPE) NUMC_50 20110707
2 Exporting EX_SIZE Call by reference Type reference (TYPE) NUMC_50 20110707
3 Importing IM_DBCON Call by reference Type reference (TYPE) DBCON_NAME Logischer Name einer Datenbankverbindung 20110707
4 Importing IM_TABLE_NAME Call by reference Type reference (TYPE) DDOBJNAME Name eines ABAP Dictionary-Objekts 20110707

Method GET_TABLE_SIZE on class CL_KE_HDB_UTILS has no exception.

Method GET_TIMEFRAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_END Call by reference Type reference (TYPE) CEST1-TIMESTMP Endzeitpunkt in Greenwich Meantime 20110628
2 Exporting EV_START_ACT Call by reference Type reference (TYPE) CEST1-TIMESTMP Startzeitpunkt in Greenwich Meantime 20110628
3 Exporting EV_START_PLA Call by reference Type reference (TYPE) CEST1-TIMESTMP Startzeitpunkt in Greenwich Meantime 20110628
4 Importing IV_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110628
5 Importing IV_FORCE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Initialübertragung in die HANA-Datenbank erzwungen 20110715
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110704

Method HANDLE_SUCCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110705
2 Importing IV_REALIGN_FLAG Call by reference Type reference (TYPE) BOOLE_D Datenelement zur Domäne BOOLE: TRUE (='X') und FALSE (=' ') 20110705
3 Importing IV_TIMESTAMP_READ Call by reference Type reference (TYPE) RKE_HZSTMP Zeitpunkt in Greenwich Meantime 20110728

Method HANDLE_SUCCESS on class CL_KE_HDB_UTILS has no exception.

Method LOCK_REPORT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110610
2 Importing I_FLG_REALIGN Call by reference Type reference (TYPE) XFLAG Zuordnungsänderunslauf 20110720
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110708

Method MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_DETLEVEL Call by reference Type reference (TYPE) BALLEVEL Anwendungs-Log: Detaillierungsgrad 20110713
2 Importing I_MSGID Call by reference Type reference (TYPE) SYMSGID Nachrichtenklasse 20110610
3 Importing I_MSGNO Call by reference Type reference (TYPE) SYMSGNO Nachrichtennummer 20110610
4 Importing I_MSGTY Call by reference Type reference (TYPE) SYMSGTY Nachrichtentyp 20110610
5 Importing I_MSGV1 Call by reference Type reference (TYPE) SYMSGV Nachrichtenvariable 20110610
6 Importing I_MSGV2 Call by reference Type reference (TYPE) SYMSGV Nachrichtenvariable 20110610
7 Importing I_MSGV3 Call by reference Type reference (TYPE) SYMSGV Nachrichtenvariable 20110610
8 Importing I_MSGV4 Call by reference Type reference (TYPE) SYMSGV Nachrichtenvariable 20110610

Method MESSAGE on class CL_KE_HDB_UTILS has no exception.

Method MODIFY_DATA_2_HANA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LINES_CE4 Call by reference Type reference (TYPE) I No of modified lines in table CE4* 20110708
2 Importing IT_CE4 Call by reference Type reference (TYPE) ANY TABLE 20110708
3 Importing IV_DBCON Call by reference Type reference (TYPE) DBCON_NAME Logischer Name einer Datenbankverbindung 20110708
4 Importing I_CE4 Call by reference Type reference (TYPE) TABNAME Tabellenname 20110708
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110721

Method OPEN_CURSOR_CE1_CE2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_CE1NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110627
2 Importing I_CE2NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110627
3 Importing I_TIMESTAMP_C1_FROM Call by reference Type reference (TYPE) RKE_HZSTMP Startdatum Ist 20110627
4 Importing I_TIMESTAMP_C2_FROM Call by reference Type reference (TYPE) RKE_HZSTMP Startdatum Plan 20110627
5 Importing I_TIMESTAMP_TO Call by reference Type reference (TYPE) RKE_HZSTMP Enddatum 20110627

Method OPEN_CURSOR_CE1_CE2 on class CL_KE_HDB_UTILS has no exception.

Method OPEN_CURSOR_CE4 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CHGRUNS Call by reference Type reference (TYPE) T_RKENCCRUN 20110908
2 Importing IV_CE4_NAME Call by reference Type reference (TYPE) TABNAME Name der CE4*-Tabelle 20110729
3 Importing IV_ERKRS Call by reference Type reference (TYPE) ERKRS Operating Concern 20110708
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110722

Method OPEN_LOG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_REPID Call by reference Type reference (TYPE) SYREPID ABAP-Programm, aktuelles Rahmenprogramm 20110610

Method OPEN_LOG on class CL_KE_HDB_UTILS has no exception.

Method PREPARATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CE1NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110629
2 Exporting EV_CE2NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110629
3 Exporting EV_CE4NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110629
4 Exporting EV_CONN Call by reference Type reference (TYPE) DBCON_NAME Logischer Name einer Datenbankverbindung 20110629
5 Exporting EV_END Call by reference Type reference (TYPE) CEST1-TIMESTMP Zeitpunkt in Greenwich Meantime 20110726
6 Exporting EV_START_ACT Call by reference Type reference (TYPE) CEST1-TIMESTMP Zeitpunkt in Greenwich Meantime 20110726
7 Exporting EV_START_PLA Call by reference Type reference (TYPE) CEST1-TIMESTMP Zeitpunkt in Greenwich Meantime 20110726
8 Importing IV_ERKRS Call by reference Type reference (TYPE) ERKRS Ergebnisbereich 20110629
9 Importing IV_FORCE Call by reference Type reference (TYPE) BOOLE_D ABAP_FALSE Force initial load 20110629
10 Importing IV_REALIGN Call by reference Type reference (TYPE) BOOLE_D ABAP_FALSE called by realignment run 20110706
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110704

Method SAVE_LOG Signature

Method SAVE_LOG on class CL_KE_HDB_UTILS has no parameter.
Method SAVE_LOG on class CL_KE_HDB_UTILS has no exception.

Method SELECT_ALL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CE1 Call by reference Type reference (TYPE) ANY TABLE 20110615
2 Exporting ET_CE2 Call by reference Type reference (TYPE) ANY TABLE 20110615
3 Exporting ET_CE4 Call by reference Type reference (TYPE) ANY TABLE 20110615
4 Importing IT_CE1 Call by reference Type reference (TYPE) RKE_T_HDB_CE1_KEYS Tabellentyp Schlüssel für CE1 20110615
5 Importing IT_CE2 Call by reference Type reference (TYPE) RKE_T_HDB_CE2_KEYS Tabellentyp Schlüssel für CE2 20110615
6 Importing IT_CE4 Call by reference Type reference (TYPE) RKE_T_HDB_CE4_KEYS Tabellentyp Schlüssel für CE4 20110714
7 Importing IV_CE1_NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110729
8 Importing IV_CE2_NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110729
9 Importing IV_CE4_NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110729

Method SELECT_ALL on class CL_KE_HDB_UTILS has no exception.

Method SET_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_CHECK Call by reference Type reference (TYPE) BOOLE_D Einstelliges Kennzeichen 20110610

Method SET_CHECK on class CL_KE_HDB_UTILS has no exception.

Method TEXT_TO_LOG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_MSGTY Call by reference Type reference (TYPE) MSGTY Messageart 20110701
2 Importing I_TEXT Call by reference Type reference (TYPE) C Textfeld Laenge 200 20110701
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110701

Method WRITE_DATA_2_HANA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LINES_CE1 Call by reference Type reference (TYPE) I No of lines written to table CE1* 20110707
2 Exporting EV_LINES_CE2 Call by reference Type reference (TYPE) I No of lines written to table CE2* 20110707
3 Exporting EV_LINES_CE4 Call by reference Type reference (TYPE) I No of lines written to table CE4* 20110707
4 Importing IT_CE1 Call by reference Type reference (TYPE) ANY TABLE 20110610
5 Importing IT_CE2 Call by reference Type reference (TYPE) ANY TABLE 20110610
6 Importing IT_CE4 Call by reference Type reference (TYPE) ANY TABLE 20110610
7 Importing IV_CE1_NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110729
8 Importing IV_CE2_NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110729
9 Importing IV_CE4_NAME Call by reference Type reference (TYPE) TABNAME Tabellenname 20110729
10 Importing IV_DBCON Call by reference Type reference (TYPE) DBCON_NAME Logischer Name einer Datenbankverbindung 20110729
# Exception Resumable Description Created on
1 CX_KE_HANA_EXCEPTION HANA Exceptions 20110721
History
Last changed by/on SAP  20130531 
SAP Release Created in 605