SAP ABAP Class CL_CDC_TRIGGER (Database Trigger for change data capture)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
     S_ESH_DB_TRIGGER (Package) Recorder-APi for DB-Trigger
Properties
Class CL_CDC_TRIGGER  
Short Description Database Trigger for change data capture    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_ESH_DB_TRIGGER   Recorder-APi for DB-Trigger 
Created 20121214   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_CDC_TRIGGER has no forward declaration.
Interfaces
Class CL_CDC_TRIGGER has no interface implemented.
Friends
Class CL_CDC_TRIGGER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_STATUS_CREATED Constant Public Type reference (TYPE) CDC_TRIGGER_STATUS '1' Trigger created 20121214
2 GC_STATUS_FAILED Constant Public Type reference (TYPE) CDC_TRIGGER_STATUS '3' Trigger Creation failed 20121214
3 GC_STATUS_INITIAL Constant Public Type reference (TYPE) CDC_TRIGGER_STATUS '0' Initial (never created) 20121214
4 GC_STATUS_REMOVED Constant Public Type reference (TYPE) CDC_TRIGGER_STATUS '2' Trigger deleted 20121214
5 GC_TYPE_COMBINED Constant Public Type reference (TYPE) CDC_TRIGGER_TYPE 'C' Type of a DB trigger 20121219
6 GC_TYPE_DELETE Constant Public Type reference (TYPE) CDC_TRIGGER_TYPE 'D' Delete Trigger 20121214
7 GC_TYPE_INSERT Constant Public Type reference (TYPE) CDC_TRIGGER_TYPE 'I' Insert Trigger 20121214
8 GC_TYPE_UPDATE Constant Public Type reference (TYPE) CDC_TRIGGER_TYPE 'U' Update Trigger 20121214
9 GC_TYPE_UPDATE2 Constant Public Type reference (TYPE) CDC_TRIGGER_TYPE '2' second update trigger 20121219
10 MO_TRIGGER_LIST Instance attribute Private Object reference (TYPE REF TO) CL_CDC_TRIGGER_LIST list of DB triggers for a certain table 20121219
11 MT_ORIGTAB_FIELDS Instance attribute Private Type reference (TYPE) DD03PTAB DD: Table Fields 20121219
12 MV_LOGTAB_NAME Instance attribute Private Type reference (TYPE) TABNAME Table Name 20121219
13 MV_TABNAME Instance attribute Private Type reference (TYPE) TABNAME Table Name 20121219
14 MV_TRIGGER_NAME Instance attribute Private Type reference (TYPE) CDC_TRIGGER_NAME Name of a DB trigger 20121219
15 MV_TRIGGER_STATUS Instance attribute Public Type reference (TYPE) CDC_TRIGGER_STATUS Status of a DB Trigger 20121219
16 MV_TRIGGER_TYPE Instance attribute Private Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20121219
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20121219
2 CREATE_DB_TRIGGER Instance method Public Method create the trigger in the database 20121219
3 DROP_DB_TRIGGER Instance method Public Method drop DB trigger 20121219
4 GEN_DDL_PRIMKEY_LAST_DB2 Instance method Private Method 20130102
5 GEN_DDL_PRIMKEY_LAST_DB4 Instance method Private Method 20130124
6 GEN_DDL_PRIMKEY_LAST_DB6 Instance method Private Method 20121228
7 GEN_DDL_PRIMKEY_LAST_HDB Instance method Private Method 20121220
8 GEN_DDL_PRIMKEY_LAST_MAXDB Instance method Private Method 20121219
9 GEN_DDL_PRIMKEY_LAST_MSS Instance method Private Method 20121228
10 GEN_DDL_PRIMKEY_LAST_ORA Instance method Private Method 20121228
11 GEN_DDL_PRIMKEY_LAST_SYB Instance method Private Method 20130124
12 GET_DB2_CLIENT_CHECK Instance method Private Method get trigger coding to check client assignment 20130102
13 GET_DB2_KEYUPD_COND Instance method Private Method 20130102
14 GET_DB6_CLIENT_CHECK Instance method Private Method get trigger coding to check client assignment 20121228
15 GET_HDB_CLIENT_CHECK Instance method Private Method get trigger coding to check client assignment 20121228
16 GET_MAXDB_CLIENT_CHECK Instance method Private Method get trigger coding to check client assignment 20121219
17 GET_MSS_CLIENT_CHECK Instance method Private Method get trigger coding to check client assignment 20121228
18 GET_ORACLE_CLIENT_CHECK Instance method Private Method get trigger coding to check client assignment 20121228
19 GET_SYB_CLIENT_CHECK Instance method Private Method get trigger coding to check client assignment 20130124
20 SAVE Instance method Public Method save trigger data on DB 20121219
21 SET_TRIGGER_STATE Instance method Private Method set trigger state 20121228
Events
Class CL_CDC_TRIGGER has no event.
Types
Class CL_CDC_TRIGGER has no local type.
Method Signatures

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_TRIGGER_LIST Call by reference Object reference (TYPE REF TO) CL_CDC_TRIGGER_LIST handle logging table for CDC 20121219
2 Importing IV_TRIGGER_NAME Call by reference Type reference (TYPE) CDC_TRIGGER_NAME Name of a DB trigger 20121219
3 Importing IV_TRIGGER_STATUS Call by reference Type reference (TYPE) CDC_TRIGGER_STATUS Status of a DB Trigger 20121219
4 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20121219

Method CONSTRUCTOR on class CL_CDC_TRIGGER has no exception.

Method CREATE_DB_TRIGGER Signature

Method CREATE_DB_TRIGGER on class CL_CDC_TRIGGER has no parameter.
# Exception Resumable Description Created on
1 CX_CDC_RECORDER exception handling of CDC 20130118

Method DROP_DB_TRIGGER Signature

Method DROP_DB_TRIGGER on class CL_CDC_TRIGGER has no parameter.
Method DROP_DB_TRIGGER on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_DB2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20130102

Method GEN_DDL_PRIMKEY_LAST_DB2 on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_DB4 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20130124

Method GEN_DDL_PRIMKEY_LAST_DB4 on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_DB6 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121228

Method GEN_DDL_PRIMKEY_LAST_DB6 on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_HDB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121220

Method GEN_DDL_PRIMKEY_LAST_HDB on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_MAXDB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121219

Method GEN_DDL_PRIMKEY_LAST_MAXDB on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_MSS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121228

Method GEN_DDL_PRIMKEY_LAST_MSS on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_ORA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121228

Method GEN_DDL_PRIMKEY_LAST_ORA on class CL_CDC_TRIGGER has no exception.

Method GEN_DDL_PRIMKEY_LAST_SYB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20130124

Method GEN_DDL_PRIMKEY_LAST_SYB on class CL_CDC_TRIGGER has no exception.

Method GET_DB2_CLIENT_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20130102
2 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20130102

Method GET_DB2_CLIENT_CHECK on class CL_CDC_TRIGGER has no exception.

Method GET_DB2_KEYUPD_COND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20130102

Method GET_DB2_KEYUPD_COND on class CL_CDC_TRIGGER has no exception.

Method GET_DB6_CLIENT_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20121228
2 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121228

Method GET_DB6_CLIENT_CHECK on class CL_CDC_TRIGGER has no exception.

Method GET_HDB_CLIENT_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20121228
2 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121228

Method GET_HDB_CLIENT_CHECK on class CL_CDC_TRIGGER has no exception.

Method GET_MAXDB_CLIENT_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20121220
2 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121219

Method GET_MAXDB_CLIENT_CHECK on class CL_CDC_TRIGGER has no exception.

Method GET_MSS_CLIENT_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20121228
2 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121228

Method GET_MSS_CLIENT_CHECK on class CL_CDC_TRIGGER has no exception.

Method GET_ORACLE_CLIENT_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20121228
2 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20121228

Method GET_ORACLE_CLIENT_CHECK on class CL_CDC_TRIGGER has no exception.

Method GET_SYB_CLIENT_CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_TYPE Call by reference Type reference (TYPE) CDC_TRIGGER_TYPE Type of a DB trigger 20130124
2 Returning RV_DDLSTRING Value transfer Type reference (TYPE) STRING 20130124

Method GET_SYB_CLIENT_CHECK on class CL_CDC_TRIGGER has no exception.

Method SAVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FROM_DB Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20121219

Method SAVE on class CL_CDC_TRIGGER has no exception.

Method SET_TRIGGER_STATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TRIGGER_STATUS Call by reference Type reference (TYPE) CDC_TRIGGER_STATUS Status of a DB Trigger 20121228

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