SAP ABAP Class CL_ENH_TOOL_HOOK_IMPL (Enhancement Tool Redefinition BADI)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DWB-TOO-ENH (Application Component) Enhancement Tools
     SEEF_REDEFINITION_HOOK (Package) Switch Framework Hook Enhancement
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_ABSTRACT_ENH_TOOL_REDEF Abstract Enhancement Tool Redefinition 20040312
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_ENH_INACTIVE_SUBOBJECTS Determine Inactive Subobjects 20041220
3 Interface implementation (CLASS c. INTERFACES i_ref)  IF_ENH_PLUGIN_CALLBACK Callback for Plug-In 20040521
4 Interface implementation (CLASS c. INTERFACES i_ref)  IF_ENH_PROGRAMS_TO_CHECK Determines Appended Programs at End of Check 20050113
Properties
Class CL_ENH_TOOL_HOOK_IMPL  
Short Description Enhancement Tool Redefinition BADI    
Super Class CL_ABSTRACT_ENH_TOOL_REDEF Abstract Enhancement Tool Redefinition 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SEEF_REDEFINITION_HOOK   Switch Framework Hook Enhancement 
Created 20040312   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 CL_ENH_TOOL_HOOK_DEF Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
# Interface Abstract Final Description Created on
1 IF_ENH_INACTIVE_SUBOBJECTS Determine Inactive Subobjects 20041220
2 IF_ENH_PLUGIN_CALLBACK Callback for Plug-In 20040521
3 IF_ENH_PROGRAMS_TO_CHECK Determines Appended Programs at End of Check 20050113
Friends
Class CL_ENH_TOOL_HOOK_IMPL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_ENHCLOSING_ENH Constant Public Type reference (TYPE) STRING CL_ENH_TOOL_HOOK_DEF=>C_ENHCLOSING_ENH 20090129
2 DATA_ACTIVE Instance attribute Private Type reference (TYPE) ENH_HOOK_ADMIN BAdI Main Data in Enhancement 20040312
3 DATA_CHANGED Instance attribute Private Type reference (TYPE) ENHBOOLEAN Enhancement Boolean 20040312
4 DATA_INACTIVE Instance attribute Private Type reference (TYPE) ENH_HOOK_ADMIN BAdI Main Data in Enhancement 20040312
5 ENHS_ACTIVE Instance attribute Private Type reference (TYPE) ENHINCINX_IT Internal Table with ENHD010EXT 20040420
6 ENHS_CHANGED Instance attribute Private Type reference (TYPE) ENHBOOLEAN Enhancement Boolean 20040420
7 ENHS_INACTIVE Instance attribute Private Type reference (TYPE) ENHINCINX_IT Internal Table with ENHD010EXT 20040420
8 ENHS_WA Instance attribute Private Type reference (TYPE) ENH_HOOK_IMPL_WA_IT Internal Table for ENH_HOOK_IMPL 20040428
9 IMPL_OBJ_TYPE Constant Private Type reference (TYPE) TROBJTYPE 'REPS' Object Type 20040312
10 INCLUDE_EXTENSION Constant Private Type reference (TYPE) ENHINCLUDEEXTENSION 'E' 20040421
11 IS_ENHANCEABLE Instance attribute Private Type reference (TYPE) ENHBOOLEAN 'U' Enhancement Boolean 20041111
12 L_ENH_HOOK_ADMIN_NEW Instance attribute Private Type reference (TYPE) ENH_HOOK_ADMIN Return Structure Enhancement Implementations 20070320
13 L_ENH_HOOK_ADMIN_OLD Instance attribute Private Type reference (TYPE) ENH_HOOK_ADMIN Return Structure Enhancement Implementations 20070320
14 NOT_ENHANCEABLE_EXCEPTION Instance attribute Private Object reference (TYPE REF TO) CX_ENH_IS_NOT_ENHANCEABLE Enhancement Boolean 20041111
15 OLD_INACTIVE Instance attribute Private Type reference (TYPE) ENH_HOOK_ADMIN Hook Main Data in Enhancement 20040428
16 PERSIST_ADDON Instance attribute Private Object reference (TYPE REF TO) IF_ENH_PERSIST_ADDON_HOOK Hook Add-On Persistence 20041201
17 PLUGIN Instance attribute Private Object reference (TYPE REF TO) CL_ENH_HOOK_UI_PLUGIN Enhancement Tool BADI UI Plug-In 20040316
18 PLUGIN_LOG Instance attribute Private Object reference (TYPE REF TO) CL_ENH_HOOK_UI_PLUGIN Enhancement Tool BADI UI Plug-In 20040908
19 REF_TO_CONTRACT Instance attribute Private Object reference (TYPE REF TO) CL_ENH_CONTRACT_PROG Contract Processing of Enhancements 20070320
20 SCWB_DELTA Instance attribute Private Type reference (TYPE) ENH_CWB_DELTA_ENHO_SOURCE Delta Table for SNOTE for ENHS Objects of Type SOURCE Code 20070319
21 SCWB_DELTA_TAB Instance attribute Public Type reference (TYPE) ENH_CWB_DELTA_ENHO_SOURCE_TAB Table of Type ENH_CWB_DELTA_ENHO_SOURCE 20070319
22 TOOLTYPE Constant Public Type reference (TYPE) ENHTOOLTYPE 'HOOK_IMPL' Enhancement Tool 20060803
Methods
# Method Level Visibility Method type Description Created on
1 ADD_HOOK_IMPL Instance method Public Method Create Enhancement Implementation Element 20040505
2 ADJUST_ADMIN_FOR_NOTES Instance method Private Method Adjust ADMIN and ENHINCINX Data for SNOTE 20081114
3 CHECK_IS_ENHANCEABLE Instance method Private Method Check whether object can be enhanced 20041111
4 DELETE_HOOK_IMPL Instance method Public Method Delete Enhancement ImplementationElement 20040505
5 GET_ENHINCINX_ID Instance method Public Method Determine Stored ID from Logical ID 20040721
6 GET_ENH_POS Instance method Public Method Determine Line in Enhancement Element 20040805
7 GET_ENH_POS_INTERNAL_STATE Instance method Public Method Determine Line in Enh.Elem. Acc. to Current (Memory) Content 20080821
8 GET_ENH_POS_IN_INCLUDE Instance method Private Method Determine Line from E-Include Relative to Enh. Element 20080821
9 GET_FULL_NAME_FROM_INCLUDE_POS Instance method Public Method Determine FULLNAME 20040802
10 GET_HOOK_IMPLS Instance method Public Method Read Enhancement Implementation Elements 20040422
11 GET_HOOK_IMPLS_INCLUDE Instance method Public Method Read Complete E-Include 20040422
12 GET_INCLUDE_BOUND Instance method Public Method Is enhancement include-bound in mode? 20040422
13 GET_INCLUDE_POS Instance method Public Method Determine Line in Include 20040730
14 GET_ORIGINAL_OBJECT Instance method Public Method Read Enhanced Object 20040420
15 MODIFY_HOOK_IMPL Instance method Public Method Change Enhancement Implementation Element 20040505
16 REPAIR_ENHOBJ_FOR_INCLUDES Instance method Private Method 20120413
17 SET_INCLUDE_BOUND Instance method Public Method Set Enhancement to Include-Bound Mode 20040422
18 SET_ORIGINAL_OBJECT Instance method Public Method Set Enhanced Object 20040420
19 UPDATE_ENHS_WA Instance method Private Method Update of Internal Storage Structure 20040428
Events
# Event Type Visibility Description Created on
1 ENHANCEMENT_MODIFIED Instance Event
(0)
Public
(2)
Enhancement Modified 20050121
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_HOOK_SOURCE Public See coding 20081114 BEGIN OF ty_hook_source, hook_source TYPE enh_hook_source, full_name TYPE string, END OF ty_hook_source
Method Signatures

Method ADD_HOOK_IMPL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ENHMODE Call by reference Type reference (TYPE) ENHMODE Modus eine Programmerweiterung 20040505
2 Returning EXTID Value transfer Type reference (TYPE) INT4 Natürliche Zahl 20040505
3 Importing FULL_NAME Call by reference Type reference (TYPE) STRING 20040505
4 Importing METHOD Call by reference Type reference (TYPE) ENHBOOLEAN Enhancment Boolean 20040505
5 Importing OVERWRITE Call by reference Type reference (TYPE) ENHBOOLEAN Enhancment Boolean 20040505
6 Importing PARENT_FULL_NAME Call by reference Type reference (TYPE) STRING Parent Fullname (bei geschachtelten Erweiterungen) 20070611
7 Importing SOURCE Call by reference Type reference (TYPE) RSWSOURCET ABAP-Source 20040505
8 Importing SPOT Call by reference Type reference (TYPE) ENHSPOTNAME Name (ID) eines Enhancement Spots 20040512
# Exception Resumable Description Created on
1 CX_ENH_CANCELED Enhancement Persistenz über normale Tabellen 20070522
2 CX_ENH_CREATE_ERROR Enhancement Wurzel-Ausnahmeklasse 20040505
3 CX_ENH_INTERNAL_ERROR Enhancement Persistenz über normale Tabellen 20060830
4 CX_ENH_IO_ERROR Enhancement Wurzel-Ausnahmeklasse 20070522
5 CX_ENH_IS_NOT_ENHANCEABLE Enhancement Wurzel-Ausnahmeklasse 20041111
6 CX_ENH_MOD_NOT_ALLOWED Enhancement Wurzel-Ausnahmeklasse 20040505
7 CX_ENH_PERMISSION_DENIED Enhancement Wurzel-Ausnahmeklasse 20070522
8 CX_ENH_SPOT_IS_INTERNAL Erweiterungs-Spot ist SAP internal 20070522

Method ADJUST_ADMIN_FOR_NOTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_HOOK_ADMIN Call by reference Type reference (TYPE) ENH_HOOK_ADMIN Hook Hauptdaten im Enhancement 20081114
2 Importing IS_CWB_DATA Call by reference Type reference (TYPE) ENH_CWB_INTF Enhancement CWB-Interface Struktur 20081114

Method ADJUST_ADMIN_FOR_NOTES on class CL_ENH_TOOL_HOOK_IMPL has no exception.

Method CHECK_IS_ENHANCEABLE Signature

Method CHECK_IS_ENHANCEABLE on class CL_ENH_TOOL_HOOK_IMPL has no parameter.
# Exception Resumable Description Created on
1 CX_ENH_IS_NOT_ENHANCEABLE Enhancement Wurzel-Ausnahmeklasse 20041111

Method DELETE_HOOK_IMPL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EXTID Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040505
# Exception Resumable Description Created on
1 CX_ENH_IS_NOT_ENHANCEABLE Enhancement Wurzel-Ausnahmeklasse 20041111
2 CX_ENH_MOD_NOT_ALLOWED Enhancement Wurzel-Ausnahmeklasse 20040505
3 CX_ENH_NOT_FOUND Enhancement Wurzel-Ausnahmeklasse 20040505

Method GET_ENHINCINX_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EXTID Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040721
2 Returning ID Value transfer Type reference (TYPE) INT4 Natürliche Zahl 20040721
# Exception Resumable Description Created on
1 CX_ENH_NOT_FOUND Enhancement Wurzel-Ausnahmeklasse 20040721

Method GET_ENH_POS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting FULL_NAME Call by reference Type reference (TYPE) STRING Natürliche Zahl 20040805
2 Importing LINE Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040805
3 Exporting LINE_IN_ENHANCEMENT Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040805
4 Importing VERSION Call by reference Type reference (TYPE) R3STATE ABAP: Programmstatus (aktiv, gesichert, transportiert...) 20040805
# Exception Resumable Description Created on
1 CX_ENH_NOT_FOUND Enhancement Wurzel-Ausnahmeklasse 20040805

Method GET_ENH_POS_INTERNAL_STATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing E_INCLUDE_SOURCE Call by reference Type reference (TYPE) RSWSOURCET E-Include, das vom Aufrufer generiert worden ist 20080821
2 Exporting FULL_NAME Call by reference Type reference (TYPE) STRING Natürliche Zahl 20080821
3 Importing LINE Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20080821
4 Exporting LINE_IN_ENHANCEMENT Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20080821
# Exception Resumable Description Created on
1 CX_ENH_NOT_FOUND Enhancement Root Exception Class 20080821

Method GET_ENH_POS_IN_INCLUDE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ENH_ELEM_ID Call by reference Type reference (TYPE) I Id des Enh. Elementes, in dem die Zeile sich befindet 20080821
2 Importing E_INCLUDE_SOURCE Call by reference Type reference (TYPE) RSWSOURCET Source des E-Includes 20080821
3 Importing LINE Call by reference Type reference (TYPE) I Zeilenindex im Include 20080821
4 Exporting LINE_IN_ENH_ELEM Call by reference Type reference (TYPE) I Zeilenindex im Enh. Element 20080821
# Exception Resumable Description Created on
1 CX_ENH_NOT_FOUND 20080821

Method GET_FULL_NAME_FROM_INCLUDE_POS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting FULL_NAME Call by reference Type reference (TYPE) STRING Natürliche Zahl 20040802
2 Exporting LINE_IN_ENHANCEMENT Call by reference Type reference (TYPE) INT4 ABAP-Programmname 20040802
3 Importing LINE_IN_ENHANCEMENT_INCLUDE Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040802
4 Importing VERSION Call by reference Type reference (TYPE) R3STATE 'A' ABAP: Programmstatus (aktiv, gesichert, transportiert...) 20040802
# Exception Resumable Description Created on
1 CX_ENH_NOT_FOUND Enhancement Wurzel-Ausnahmeklasse 20040802

Method GET_HOOK_IMPLS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ENHANCEMENTS Value transfer Type reference (TYPE) ENH_HOOK_IMPL_IT Interne Tabelle über ENHINCINX 20040422
2 Importing VERSION Call by reference Type reference (TYPE) R3STATE 'A' ABAP: Programmstatus (aktiv, gesichert, transportiert...) 20040422

Method GET_HOOK_IMPLS on class CL_ENH_TOOL_HOOK_IMPL has no exception.

Method GET_HOOK_IMPLS_INCLUDE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EXTENSION Call by reference Type reference (TYPE) ENHINCLUDEEXTENSION Komponente der Versionsnummer 20040422
2 Exporting INCLUDE Call by reference Type reference (TYPE) PROGNAME ABAP-Programmname 20040422

Method GET_HOOK_IMPLS_INCLUDE on class CL_ENH_TOOL_HOOK_IMPL has no exception.

Method GET_INCLUDE_BOUND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning INCLUDE_BOUND Value transfer Type reference (TYPE) ENHBOOLEAN Enhancment Boolean 20040422
2 Importing VERSION Call by reference Type reference (TYPE) R3STATE 'A' ABAP: Programmstatus (aktiv, gesichert, transportiert...) 20040422

Method GET_INCLUDE_BOUND on class CL_ENH_TOOL_HOOK_IMPL has no exception.

Method GET_INCLUDE_POS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EXTID Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040730
2 Exporting INCLUDE Call by reference Type reference (TYPE) PROGNAME ABAP-Programmname 20040730
3 Exporting LINE Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040730
4 Importing LINE_IN_ENHANCEMENT Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040730
5 Importing VERSION Call by reference Type reference (TYPE) R3STATE 'A' ABAP: Programmstatus (aktiv, gesichert, transportiert...) 20040730
# Exception Resumable Description Created on
1 CX_ENH_NOT_FOUND Enhancement Wurzel-Ausnahmeklasse 20040730

Method GET_ORIGINAL_OBJECT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting MAIN_NAME Call by reference Type reference (TYPE) EU_ANAME Entwicklungsumgebung: Tadirname 20040420
2 Exporting MAIN_TYPE Call by reference Type reference (TYPE) TROBJTYPE Objekttyp 20040420
3 Exporting OBJ_NAME Call by reference Type reference (TYPE) TROBJ_NAME Objektname in der Objektliste 20040420
4 Exporting OBJ_TYPE Call by reference Type reference (TYPE) TROBJTYPE Objekttyp 20040420
5 Exporting PGMID Call by reference Type reference (TYPE) PGMID Programm-ID in Aufträgen und Aufgaben 20040422
6 Exporting PROGRAM Call by reference Type reference (TYPE) PROGNAME ABAP-Programmname 20040422
7 Importing VERSION Call by reference Type reference (TYPE) R3STATE 'A' ABAP: Programmstatus (aktiv, gesichert, transportiert...) 20040420

Method GET_ORIGINAL_OBJECT on class CL_ENH_TOOL_HOOK_IMPL has no exception.

Method MODIFY_HOOK_IMPL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ENHMODE Call by reference Type reference (TYPE) ENHMODE Modus eine Programmerweiterung 20040505
2 Importing EXTID Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20040505
3 Importing FULL_NAME Call by reference Type reference (TYPE) STRING 20040505
4 Importing METHOD Call by reference Type reference (TYPE) ENHBOOLEAN Enhancment Boolean 20040505
5 Importing OVERWRITE Call by reference Type reference (TYPE) ENHBOOLEAN Enhancment Boolean 20040505
6 Importing PARENT_FULL_NAME Call by reference Type reference (TYPE) STRING Parent Fullname (bei geschachtelten Erweiterungen) 20070612
7 Importing SOURCE Call by reference Type reference (TYPE) RSWSOURCET ABAP-Source 20040505
8 Importing SPOT Call by reference Type reference (TYPE) ENHSPOTNAME Name (ID) eines Enhancement Spots 20040512
# Exception Resumable Description Created on
1 CX_ENH_CREATE_ERROR Enhancement Wurzel-Ausnahmeklasse 20040505
2 CX_ENH_IS_NOT_ENHANCEABLE Enhancement Wurzel-Ausnahmeklasse 20041111
3 CX_ENH_MOD_NOT_ALLOWED Enhancement Wurzel-Ausnahmeklasse 20040505
4 CX_ENH_NOT_FOUND 20040505

Method REPAIR_ENHOBJ_FOR_INCLUDES Signature

Method REPAIR_ENHOBJ_FOR_INCLUDES on class CL_ENH_TOOL_HOOK_IMPL has no parameter.
# Exception Resumable Description Created on
1 CX_ENH_INTERNAL_ERROR Enhancement Persistence for Standard Tables 20120413
2 CX_ENH_MOD_NOT_ALLOWED Enhancement Root Exception Class 20120413

Method SET_INCLUDE_BOUND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INCLUDE_BOUND Call by reference Type reference (TYPE) ENHBOOLEAN Enhancment Boolean 20040422
# Exception Resumable Description Created on
1 CX_ENH_MOD_NOT_ALLOWED Enhancement Wurzel-Ausnahmeklasse 20040422

Method SET_ORIGINAL_OBJECT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MAIN_NAME Value transfer Type reference (TYPE) EU_ANAME Entwicklungsumgebung: Tadirname 20040420
2 Importing MAIN_TYPE Value transfer Type reference (TYPE) TROBJTYPE Objekttyp 20040420
3 Importing OBJ_NAME Call by reference Type reference (TYPE) TROBJ_NAME Objektname in der Objektliste 20040420
4 Importing OBJ_TYPE Call by reference Type reference (TYPE) TROBJTYPE Objekttyp 20040420
5 Importing PGMID Call by reference Type reference (TYPE) PGMID Programm-ID in Aufträgen und Aufgaben 20040422
6 Importing PROGRAM Call by reference Type reference (TYPE) PROGNAME ABAP-Programmname 20040422
# Exception Resumable Description Created on
1 CX_ENH_IS_NOT_ENHANCEABLE Enhancement Wurzel-Ausnahmeklasse 20041111
2 CX_ENH_MOD_NOT_ALLOWED Enhancement Wurzel-Ausnahmeklasse 20040420

Method UPDATE_ENHS_WA Signature

Method UPDATE_ENHS_WA on class CL_ENH_TOOL_HOOK_IMPL has no parameter.
Method UPDATE_ENHS_WA on class CL_ENH_TOOL_HOOK_IMPL has no exception.
Event Signatures

Event ENHANCEMENT_MODIFIED Signature
# Parameter Type Pass Value Optional Typing Method Associated Type Default value Description Created on
1 EVENT_STRU_IT Exporting Value transfer Type reference (TYPE) ENH_EVENT_STRU_IT Table of ENH_EVENT_STRU 20050121
History
Last changed by/on SAP  20130531 
SAP Release Created in 700