SAP ABAP Class CL_ESH_DBT_RUNTIME (Database Trigger Runtime)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
     S_ESH_ENG_DB_TRIGGER_HANDLER (Package) Database Trigger Handler
Properties
Class CL_ESH_DBT_RUNTIME  
Short Description Database Trigger Runtime    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_ESH_ENG_DB_TRIGGER_HANDLER   Database Trigger Handler 
Created 20121122   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)
Interfaces
Class CL_ESH_DBT_RUNTIME has no interface implemented.
Friends
Class CL_ESH_DBT_RUNTIME has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MR_APPLICATION_LOG Instance attribute Private Object reference (TYPE REF TO) IF_ESH_OM_APPLOG Application Log 20121210
2 MT_TAB_KEYS_BUFFER Instance attribute Private Type reference (TYPE) LTY_T_TAB_KEYS_BUFFER Table Key Attributes Buffer 20121123
3 MV_HUB_DESTINATION Instance attribute Private Type reference (TYPE) RFCDEST ESH Hub Destination 20121122
4 MV_JOBNAME Instance attribute Private Type reference (TYPE) TBTCJOB-JOBNAME Background job name 20121122
5 MV_PACKAGE_COUNTER Instance attribute Private Type reference (TYPE) INT4 Package Counter 20121122
6 SR_DBT_RUNTIME Static Attribute Private Object reference (TYPE REF TO) CL_ESH_DBT_RUNTIME Database Trigger Runtime 20121122
Methods
# Method Level Visibility Method type Description Created on
1 APPTAB_GET_KEY_ATTRIBUTES Instance method Private Method Application Table: Get Key Attributes 20121123
2 CHECK_FOR_ACTIONS Instance method Private Method Check for Actions 20121123
3 CHECK_FOR_RESET Instance method Private Method Check for Reset 20121129
4 DISPATCH_PROCESSING Instance method Public Method Dispatch Processing 20121122
5 GET_INSTANCE Static method Public Method Get Instance 20121122
6 GET_NEXT_TRIGGER_PACKAGE Instance method Private Method Get Next Trigger Package 20121123
7 LOG_MESSAGES Instance method Private Method Log Errors 20121211
8 PACKAGE_CONFIRM Instance method Private Method Confirm package -> set status 'C' 20121130
9 PACKAGE_ROLLBACK_WITH_ERRORS Instance method Private Method Rollback package with errors -> set status 'E' 20121130
10 PROCESS_TRIGGER Instance method Private Method Process Trigger 20121123
11 RESET_ALL_TRIGGERS Instance method Public Method Reset all triggers 20121127
12 RESET_TRIGGER Instance method Private Method Reset Trigger (status 'P'/'E' -> unprocessed) 20121129
13 TRIGGER_INSTANTIATE_CONSUMER Instance method Private Method Instantiate Consumer for Trigger 20121211
Events
Class CL_ESH_DBT_RUNTIME has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 LTY_E_TRIGGER_TIMESTAMP_CHAR Private See coding Trigger Timestamp (Database Dependent Format) 20121123 LTY_E_TRIGGER_TIMESTAMP_CHAR(26) type c
2 LTY_S_KEY_VALUES Private See coding Key Name and Value 20121123 begin of LTY_S_KEY_VALUES , key TYPE fieldname , value TYPE REF TO data , end of LTY_S_KEY_VALUES
3 LTY_S_TAB_KEYS_BUFFER Private See coding Table Key Attributes Buffer 20121123 begin of LTY_S_TAB_KEYS_BUFFER , application_table TYPE tabname , without_client TYPE char01 , key_attributes TYPE if_esh_dbt_consumer=>tt_key_attributes , end of LTY_S_TAB_KEYS_BUFFER
4 LTY_T_KEY_VALUES Private See coding Key Names and Values 20121123 LTY_T_KEY_VALUES type standard table of LTY_S_KEY_VALUES with key key
5 LTY_T_TAB_KEYS_BUFFER Private See coding Table Key Attributes Buffer 20121123 lty_t_tab_keys_buffer type sorted table of lty_s_tab_keys_buffer with unique key application_table without_client
Method Signatures

Method APPTAB_GET_KEY_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_KEY_ATTRIBUTES Call by reference Type reference (TYPE) IF_ESH_DBT_CONSUMER=>TT_KEY_ATTRIBUTES Key Attributes 20121123
2 Importing IV_APPLICATION_TABLE Call by reference Type reference (TYPE) TABNAME Application Table 20121123
3 Importing IV_WITHOUT_CLIENT Call by reference Type reference (TYPE) CHAR01 Without Client 20121123
# Exception Resumable Description Created on
1 CX_ESH_DBT_RUNTIME Database Trigger Runtime Exception 20121123

Method CHECK_FOR_ACTIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Trigger 20121123
2 Returning RV_HAS_ENTRIES Value transfer Type reference (TYPE) CHAR01 Trigger has Entries to Process 20121123

Method CHECK_FOR_ACTIONS on class CL_ESH_DBT_RUNTIME has no exception.

Method CHECK_FOR_RESET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Trigger 20121129
2 Returning RV_REQUIRES_RESET Value transfer Type reference (TYPE) CHAR01 Trigger has Entries to Reset 20121129

Method CHECK_FOR_RESET on class CL_ESH_DBT_RUNTIME has no exception.

Method DISPATCH_PROCESSING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DEMON Call by reference Object reference (TYPE REF TO) CL_ESH_DBT_DEMON Database Trigger Demon 20121127

Method DISPATCH_PROCESSING on class CL_ESH_DBT_RUNTIME has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_APPLICATION_LOG Call by reference Object reference (TYPE REF TO) IF_ESH_OM_APPLOG Application Log 20121210
2 Importing IV_JOBNAME Call by reference Type reference (TYPE) TBTCJOB-JOBNAME Jobname: To be set when called via background job 20121122
3 Returning RR_INSTANCE Value transfer Object reference (TYPE REF TO) CL_ESH_DBT_RUNTIME Database Trigger Runtime 20121122

Method GET_INSTANCE on class CL_ESH_DBT_RUNTIME has no exception.

Method GET_NEXT_TRIGGER_PACKAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ER_APPTAB_DELETIONS Call by reference Object reference (TYPE REF TO) DATA Application Table Deletions 20121129
2 Exporting ER_APPTAB_INSERTS Call by reference Object reference (TYPE REF TO) DATA Application Table Inserts 20121129
3 Exporting ER_TRIGGERS_DELETE Call by reference Object reference (TYPE REF TO) DATA Trigger Table Deletion Records 20121129
4 Exporting ER_TRIGGERS_INSERT Call by reference Object reference (TYPE REF TO) DATA Trigger Table Insertion Records 20121129
5 Exporting EV_NO_MORE_DATA Call by reference Type reference (TYPE) CHAR01 Character Field Length 1 20121123
6 Exporting EV_TIMESTAMP_MAX Call by reference Type reference (TYPE) LTY_E_TRIGGER_TIMESTAMP_CHAR Greatest Trigger Timestamp in Package 20121123
7 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Trigger 20121123
8 Importing IT_KEYS Call by reference Type reference (TYPE) IF_ESH_DBT_CONSUMER=>TT_KEY_ATTRIBUTES Key Attributes 20121123
9 Importing IV_BLOCKSIZE Call by reference Type reference (TYPE) INT4 Blocksize 20121123
10 Importing IV_DB_COMMIT Call by reference Type reference (TYPE) CHAR01 ABAP_TRUE DB Commit 20121123
11 Importing IV_SET_STATUS_PROCESSING Call by reference Type reference (TYPE) CHAR01 ABAP_TRUE Set Status 'Processing' 20121123
# Exception Resumable Description Created on
1 CX_ESH_DBT_RUNTIME Database Trigger Runtime Exception 20121126

Method LOG_MESSAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_APPLICATION_LOG Call by reference Object reference (TYPE REF TO) IF_ESH_OM_APPLOG Application Log 20121211

Method LOG_MESSAGES on class CL_ESH_DBT_RUNTIME has no exception.

Method PACKAGE_CONFIRM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_T_TRIGGERS Call by reference Object reference (TYPE REF TO) DATA Trigger Package 20121130
2 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Triggers 20121130
3 Importing IV_TIMESTAMP_MAX Call by reference Type reference (TYPE) LTY_E_TRIGGER_TIMESTAMP_CHAR Maximum Timestamp in Trigger Package 20121130

Method PACKAGE_CONFIRM on class CL_ESH_DBT_RUNTIME has no exception.

Method PACKAGE_ROLLBACK_WITH_ERRORS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_T_TRIGGERS Call by reference Object reference (TYPE REF TO) DATA Trigger Package 20121130
2 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Triggers 20121130
3 Importing IV_TIMESTAMP_MAX Call by reference Type reference (TYPE) LTY_E_TRIGGER_TIMESTAMP_CHAR Maximum Timestamp in Trigger Package 20121130

Method PACKAGE_ROLLBACK_WITH_ERRORS on class CL_ESH_DBT_RUNTIME has no exception.

Method PROCESS_TRIGGER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DEMON Call by reference Object reference (TYPE REF TO) CL_ESH_DBT_DEMON Database Trigger Demon 20121128
2 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Trigger 20121123
3 Importing IT_CONSUMERS Call by reference Type reference (TYPE) ESH_T_DBT_CONN Database Trigger Consumers 20121123
4 Importing IV_BLOCKSIZE Call by reference Type reference (TYPE) INT4 Processing Blocksize 20121123
5 Importing IV_MAX_N_OF_PACKAGES Call by reference Type reference (TYPE) INT4 Maximum Number of Packages 20121211

Method PROCESS_TRIGGER on class CL_ESH_DBT_RUNTIME has no exception.

Method RESET_ALL_TRIGGERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DEMON Call by reference Object reference (TYPE REF TO) CL_ESH_DBT_DEMON Database Trigger Demon 20121129

Method RESET_ALL_TRIGGERS on class CL_ESH_DBT_RUNTIME has no exception.

Method RESET_TRIGGER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DEMON Call by reference Object reference (TYPE REF TO) CL_ESH_DBT_DEMON Database Trigger Demon 20121129
2 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Trigger 20121129
3 Importing IV_BLOCKSIZE Call by reference Type reference (TYPE) INT4 Processing Blocksize 20121129
# Exception Resumable Description Created on
1 CX_ESH_DBT_RUNTIME Database Trigger Runtime Exception 20121129

Method TRIGGER_INSTANTIATE_CONSUMER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_APPLICATION_LOG Call by reference Object reference (TYPE REF TO) IF_ESH_OM_APPLOG Application Log 20130828
2 Importing IR_MODEL_METADATA Call by reference Object reference (TYPE REF TO) CL_ESH_TREX_MODEL_METADATA Model Metadata 20121211
3 Importing IR_SCENARIO_ANALYZER Call by reference Object reference (TYPE REF TO) CL_ESH_HANA_SCENARIO_ANALYZER Scenario Analyzer 20130828
4 Importing IS_TRIGGER Call by reference Type reference (TYPE) ESH_S_DBT_TR Database Trigger 20121211
5 Importing IS_TRIGGER_CONN Call by reference Type reference (TYPE) ESH_S_DBT_CONN Database Trigger Consumer 20121211
6 Importing IV_CONNECTION_GUID Call by reference Type reference (TYPE) ESH_E_ADM_CONNECTION_GUID Connection Guid 20130828
7 Returning RR_IF_DBT_CONSUMER Value transfer Object reference (TYPE REF TO) IF_ESH_DBT_CONSUMER Database Trigger Consumer Instance 20121211

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