SAP ABAP Class CL_BADI_DEFINITION (Representation of a BAdI Definition)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
⤷
SFW_BADI (Package) New Switchable BAdIs
⤷
⤷
Properties
| Class | CL_BADI_DEFINITION | |
| Short Description | Representation of a BAdI Definition | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SFW_BADI | New Switchable BAdIs |
| Created | 20060801 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 3 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_BADI_DEFINITION has no interface implemented.
Friends
| # | Friend | Modeled only | Created on | Description |
|---|---|---|---|---|
| 1 | CL_BADI_MAIN | 20060801 | Main Class for BAdI Handling |
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Public | Type reference (TYPE) | BADI_CONTEXT_MODE | CONTEXT_MODE | 20060801 | |||
| 2 | Constant | Private | Type reference (TYPE) | STRING | CL_ABAP_CHAR_UTILITIES=>CR_LF | CR_LF | 20060801 | ||
| 3 | Instance attribute | Public | Type reference (TYPE) | CLASSNAME | DEFAULT_CLASS | 20060801 | |||
| 4 | Instance attribute | Public | Type reference (TYPE) | ENHSPOTNAME | ENHS_NAME | 20060801 | |||
| 5 | Instance attribute | Public | Type reference (TYPE) | FILTERS | FILTER_DECLS | 20060801 | |||
| 6 | Instance attribute | Public | Type reference (TYPE) | CLASSNAME | IF_NAME | 20060801 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | SORTED_IMPL_TABLE | Loaded Implementations | 20070109 | |||
| 8 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | Displays if the implementations have already been loaded | 20070109 | |||
| 9 | Instance attribute | Public | Type reference (TYPE) | ABAP_BOOL | IS_SINGLE_USE | 20060801 | |||
| 10 | Instance attribute | Public | Type reference (TYPE) | BADI_NAME | NAME | 20060801 |
Methods
Events
Class CL_BADI_DEFINITION has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | FILTER | Public | See coding | FILTER | 20060801 | begin of filter,
name type badi_filter_name,
ftype type badi_filter_type,
end of filter
|
|
| 2 | FILTERS | Public | See coding | FILTERS | 20060801 | filters type standard table of filter with default key
|
|
| 3 | FILTER_INSTANTIATION | Public | See coding | FILTER_INSTANTIATION | 20060801 | begin of filter_instantiation,
name type badi_filter_name,
fvalue type string,
end of filter_instantiation
|
|
| 4 | FILTER_INSTANTIATIONS | Public | See coding | FILTER_INSTANTIATIONS | 20060801 | filter_instantiations type standard table of filter_instantiation with default key
|
|
| 5 | IMP_TABLE | Public | See coding | IMP_TABLE | 20060801 | imp_table type standard table of ref to cl_badi_implementation with default key
|
|
| 6 | PARAMETER_INSTANTIATION | Public | See coding | PARAMETER_INSTANTIATION | 20060801 | begin of parameter_instantiation,
name type badi_filter_name,
value type string,
kind type abap_parmkind,
end of parameter_instantiation
|
|
| 7 | PARAMETER_INSTANTIATIONS | Public | See coding | PARAMETER_INSTANTIATIONS | 20060801 | parameter_instantiations type standard table of parameter_instantiation with default key
|
|
| 8 | SORTED_IMPL | Public | See coding | 20070320 | begin of SORTED_impl,
imp type ref to cl_badi_implementation,
is_default type abap_bool,
comp_id type i,
depth type i,
name type badi_impl_name,
is_valid type abap_bool, " =' ' if imp is assoc to a conflict switch, which does not resolve a conflict
end of sorted_impl
|
||
| 9 | SORTED_IMPL_TABLE | Public | See coding | 20070320 | sorted_impl_table type standard table of sorted_impl
|
Method Signatures
Method ADD_FILTER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FTYPE | Value transfer | Type reference (TYPE) | BADI_FILTER_TYPE | FTYPE | 20060801 | |||
| 2 | NAME | Value transfer | Type reference (TYPE) | BADI_FILTER_NAME | NAME | 20060801 |
Method ADD_FILTER on class CL_BADI_DEFINITION has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CONTEXT_MODE | Value transfer | Type reference (TYPE) | BADI_CONTEXT_MODE | CONTEXT_MODE | 20060801 | |||
| 2 | DEFAULT_CLASS | Value transfer | Type reference (TYPE) | CLASSNAME | DEFAULT_CLASS | 20060801 | |||
| 3 | ENHS_NAME | Value transfer | Type reference (TYPE) | ENHSPOTNAME | ENHS_NAME | 20060801 | |||
| 4 | IF_NAME | Value transfer | Type reference (TYPE) | CLASSNAME | IF_NAME | 20060801 | |||
| 5 | NAME | Value transfer | Type reference (TYPE) | BADI_NAME | NAME | 20060801 | |||
| 6 | SINGLE_USE | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | SINGLE_USE | 20060801 |
Method CONSTRUCTOR on class CL_BADI_DEFINITION has no exception.
Method EQUALS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | BADI_DEF | Value transfer | Object reference (TYPE REF TO) | CL_BADI_DEFINITION | BADI_DEF | 20060801 | |||
| 2 | DIFF | Value transfer | Type reference (TYPE) | STRING | DIFF | 20060801 |
Method EQUALS on class CL_BADI_DEFINITION has no exception.
Method GET_ALL_IMPLEMENTATIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMPLS | Value transfer | Type reference (TYPE) | CL_BADI_MAIN=>FULL_IMPL_TABLE | 20070109 |
Method GET_ALL_IMPLEMENTATIONS on class CL_BADI_DEFINITION has no exception.
Method GET_BADI_FROM_REGISTRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | BADI | Value transfer | Object reference (TYPE REF TO) | CL_BADI_DEFINITION | BADI | 20060801 | |||
| 2 | BADI_NAME | Value transfer | Type reference (TYPE) | BADI_NAME | BADI_NAME | 20060801 | |||
| 3 | ENHS_NAME | Value transfer | Type reference (TYPE) | ENHSPOTNAME | ENHS_NAME | 20060801 |
Method GET_BADI_FROM_REGISTRY on class CL_BADI_DEFINITION has no exception.
Method GET_SELECTED_IMPLEMENTATIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FILTERS | Call by reference | Type reference (TYPE) | BADI_FILTER_BINDINGS | 20070109 | ||||
| 2 | IMPS | Value transfer | Type reference (TYPE) | CL_BADI_MAIN=>FULL_IMPL_TABLE | 20070109 |
Method GET_SELECTED_IMPLEMENTATIONS on class CL_BADI_DEFINITION has no exception.
Method IS_SUBSET Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_SUBSET | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20070516 | ||||
| 2 | SWITCH_TAB1 | Call by reference | Type reference (TYPE) | CL_SFW_CONFLICT_SWITCH_AUX=>SWITCH_ID_TABLE | 20070516 | ||||
| 3 | SWITCH_TAB2 | Call by reference | Type reference (TYPE) | CL_SFW_CONFLICT_SWITCH_AUX=>SWITCH_ID_TABLE | 20070516 |
Method IS_SUBSET on class CL_BADI_DEFINITION has no exception.
Method LOAD_IMPLEMENTATIONS Signature
Method LOAD_IMPLEMENTATIONS on class CL_BADI_DEFINITION has no parameter.
Method LOAD_IMPLEMENTATIONS on class CL_BADI_DEFINITION has no exception.
Method METHODS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SRC | Value transfer | Type reference (TYPE) | STRING | SRC | 20060801 |
Method METHODS on class CL_BADI_DEFINITION has no exception.
Method PARTIALLY_SELECT_IMPS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FILTERS | Call by reference | Type reference (TYPE) | BADI_FILTER_BINDINGS | FILTER_INSTANTIATIONS | 20070109 | |||
| 2 | IMPL_TABLE | Call by reference | Type reference (TYPE) | SORTED_IMPL_TABLE | 20070109 | ||||
| 3 | IMPS | Value transfer | Type reference (TYPE) | CL_BADI_MAIN=>FULL_IMPL_TABLE | 20070109 | ||||
| 4 | SINGLE_USE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20070320 |
Method PARTIALLY_SELECT_IMPS on class CL_BADI_DEFINITION has no exception.
Method PRINT_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REPR | Value transfer | Type reference (TYPE) | STRING | REPR | 20060801 |
Method PRINT_STRING on class CL_BADI_DEFINITION has no exception.
Method PRIVATE_SECTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SRC | Value transfer | Type reference (TYPE) | STRING | SRC | 20060801 |
Method PRIVATE_SECTION on class CL_BADI_DEFINITION has no exception.
Method PROTECTED_SECTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SRC | Value transfer | Type reference (TYPE) | STRING | SRC | 20060801 |
Method PROTECTED_SECTION on class CL_BADI_DEFINITION has no exception.
Method PUBLIC_SECTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SRC | Value transfer | Type reference (TYPE) | STRING | SRC | 20060801 |
Method PUBLIC_SECTION on class CL_BADI_DEFINITION has no exception.
Method SELECT_IMPLEMENTATIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FILTERS | Value transfer | Type reference (TYPE) | BADI_FILTER_BINDINGS | 20070321 | ||||
| 2 | IMPLS | Value transfer | Type reference (TYPE) | SORTED_IMPL_TABLE | 20070321 | ||||
| 3 | IMPS | Value transfer | Type reference (TYPE) | CL_BADI_MAIN=>FULL_IMPL_TABLE | 20070321 |
Method SELECT_IMPLEMENTATIONS on class CL_BADI_DEFINITION has no exception.
Method SORT_IMPLEMENTATIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMPS | Call by reference | Type reference (TYPE) | CL_BADI_DEFINITION=>SORTED_IMPL_TABLE | 20070320 |
Method SORT_IMPLEMENTATIONS on class CL_BADI_DEFINITION has no exception.
Method TRANSLATE_FTYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | NTYPE | Value transfer | Type reference (TYPE) | STRING | NTYPE | 20060801 | |||
| 2 | TYPE | Value transfer | Type reference (TYPE) | CHAR1 | TYPE | 20060801 |
Method TRANSLATE_FTYPE on class CL_BADI_DEFINITION has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 710 |