SAP ABAP Class CL_ESH_CO_LOGGING (Logging)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
⤷
S_ESH_ENG_COMMON (Package) Common
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_ESH_OM_APPLOG | Application Log | 20070322 |
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_ESH_TST_HIL_LOG_HIERARCHY | Hierarchical Logging | 20100218 |
Properties
| Class | CL_ESH_CO_LOGGING | |
| Short Description | Logging | |
| Super Class | ||
| Instantiability of a Class | 1 | Protected |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | S_ESH_ENG_COMMON | Common |
| Created | 20070322 | SAP |
| Last change | 20140121 | 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 interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_ESH_OM_APPLOG | Application Log | 20070322 |
Friends
Class CL_ESH_CO_LOGGING has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Type reference (TYPE) | ESH_S_CO_APPLICATION_LOG_SORT | Application log | 20070323 | |||
| 2 | Instance attribute | Protected | Type reference (TYPE) | BAL_S_LOG | Application log: Log header data | 20070323 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | LTT_SAVE_POINTER | Pointer to last log entries saved | 20070323 | |||
| 4 | Instance attribute | Protected | Type reference (TYPE) | BALLOGHNDL | Application log: Log handle | 20070323 | |||
| 5 | Instance attribute | Protected | Type reference (TYPE) | ABAP_BOOL | abap_true | Differentiators active | 20130704 | ||
| 6 | Constant | Protected | Type reference (TYPE) | SYST-MSGID | 'ESH_CO_COMMON' | ABAP System Field: Message ID | 20130704 | ||
| 7 | Constant | Public | Type reference (TYPE) | I | 10 | Maximum number of attempts to get a log enqueue | 20070326 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Add sy-messages to BAPIRETTAB messages | 20100810 | |
| 2 | Static method | Public | Method | Add headline per message type block | 20130628 | |
| 3 | Instance method | Public | Constructor | Constructor | 20070323 | |
| 4 | Static method | Public | Method | Fill message texts in BAPIRET table | 20090224 | |
| 5 | Instance method | Protected | Method | Provide reference to corresponding application log line | 20070323 | |
| 6 | Instance method | Protected | Method | Add a new message to the message log | 20070328 | |
| 7 | Instance method | Protected | Method | Get hash code for differentiator | 20070412 | |
| 8 | Static method | Public | Method | Provide an instance for application logging | 20070323 | |
| 9 | Static method | Public | Method | Is topic entry (message block header) | 20130704 | |
| 10 | Static method | Public | Method | Is type entry (message block header) | 20130701 | |
| 11 | Instance method | Protected | Method | Normalize message type | 20070327 | |
| 12 | Instance method | Protected | Method | Provide reference to corresponding application log line | 20070323 | |
| 13 | Instance method | Protected | Method | Normalize message type | 20070323 | |
| 14 | Static method | Public | Method | Get details of type entry | 20130701 | |
| 15 | Instance method | Protected | Method | Increment message counter | 20070323 | |
| 16 | Static method | Public | Method | Message prefix by message type | 20090305 | |
| 17 | Static method | Protected | Method | Resolve message variables with exception attributes | 20090925 | |
| 18 | Instance method | Protected | Method | Save log messages and update save pointer | 20070326 | |
| 19 | Static method | Public | Method | Convert a text message (string) to sy-message | 20080606 |
Events
Class CL_ESH_CO_LOGGING has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | LST_SAVE_POINTER | Private | See coding | 20070323 | BEGIN OF lst_save_pointer,
differentiator TYPE char40,
last_saved TYPE i,
END OF lst_save_pointer
|
||
| 2 | LTT_SAVE_POINTER | Private | See coding | 20070323 | ltt_save_pointer TYPE SORTED TABLE OF lst_save_pointer
WITH UNIQUE KEY differentiator
|
Method Signatures
Method ADD_SY_MSG_TO_BAPIRETTAB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | BAPIRETTAB | Table with BAPI Return Information | 20100810 | |||
| 2 | IS_MESSAGE | Value transfer | Type reference (TYPE) | BAPIRET2 | Return Parameter | 20100810 |
Method ADD_SY_MSG_TO_BAPIRETTAB on class CL_ESH_CO_LOGGING has no exception.
Method ADD_TYPE_ENTRIES_TO_MSG_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | DATA | 20130628 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Common ESH Engine Exception | 20130628 | ||
| 2 | Invalid Parameter | 20130628 |
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_APPLICATION_LOG_HANDLE | Call by reference | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20070626 | |||
| 2 | IV_APPLICATION_LOG_OBJECT | Call by reference | Type reference (TYPE) | BALOBJ_D | Application log: Object name (Application code) | 20070323 | |||
| 3 | IV_APPLICATION_LOG_SUBOBJECT | Call by reference | Type reference (TYPE) | BALSUBOBJ | Application Log: Subobject | 20070323 |
Method CONSTRUCTOR on class CL_ESH_CO_LOGGING has no exception.
Method FILL_BAPIRET_MESSAGE_TEXTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_BAPIRETTAB | Call by reference | Type reference (TYPE) | BAPIRETTAB | Table with BAPI Return Information | 20090224 | |||
| 2 | IV_OVERWRITE_EXISTING_TEXT | Call by reference | Type reference (TYPE) | ABAP_BOOL | Overwrite existing message texts | 20090224 |
Method FILL_BAPIRET_MESSAGE_TEXTS on class CL_ESH_CO_LOGGING has no exception.
Method GET_APPLICATION_LOG_HANDLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_APPLICATION_LOG_SUBOBJECT | Call by reference | Type reference (TYPE) | BALSUBOBJ | Application log | 20070323 | |||
| 2 | RV_APPLICATION_LOG_HANDLE | Value transfer | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20070323 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Invalid paramter | 20070323 |
Method GET_CONTEXT_AND_PARAMETERS Signature
Method GET_CONTEXT_AND_PARAMETERS on class CL_ESH_CO_LOGGING has no exception.
Method GET_DIFFERENTIATOR_HASH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DIFFERENTIATOR | Call by reference | Type reference (TYPE) | ANY | 20070412 | ||||
| 2 | RV_DIFFERENTIATOR_HASH | Value transfer | Type reference (TYPE) | CHAR40 | Character field of length 40 | 20070412 |
Method GET_DIFFERENTIATOR_HASH on class CL_ESH_CO_LOGGING has no exception.
Method GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_APPLICATION_LOG_HANDLE | Call by reference | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20070626 | |||
| 2 | IV_APPLICATION_LOG_SUBOBJECT | Call by reference | Type reference (TYPE) | BALSUBOBJ | Application Log: Subobject | 20070323 | |||
| 3 | RR_APPLICATION_LOG | Value transfer | Object reference (TYPE REF TO) | IF_ESH_OM_APPLOG | Application Log | 20070323 |
Method GET_INSTANCE on class CL_ESH_CO_LOGGING has no exception.
Method GET_IS_TOPIC_ENTRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_ENTRY_MSGID | Call by reference | Type reference (TYPE) | SYST-MSGID | ABAP System Field: Message ID | 20130704 | |||
| 2 | IV_ENTRY_MSGNO | Call by reference | Type reference (TYPE) | SYST-MSGNO | ABAP System Field: Message Number | 20130704 | |||
| 3 | IV_ENTRY_MSGTY | Call by reference | Type reference (TYPE) | SYST-MSGTY | ABAP System Field: Message Type | 20130704 | |||
| 4 | RV_IS_TOPIC_ENTRY | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20130704 |
Method GET_IS_TOPIC_ENTRY on class CL_ESH_CO_LOGGING has no exception.
Method GET_IS_TYPE_ENTRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_ENTRY_MSGID | Call by reference | Type reference (TYPE) | SYST-MSGID | ABAP System Field: Message ID | 20130701 | |||
| 2 | IV_ENTRY_MSGNO | Call by reference | Type reference (TYPE) | SYST-MSGNO | ABAP System Field: Message Number | 20130701 | |||
| 3 | IV_ENTRY_MSGTY | Call by reference | Type reference (TYPE) | SYST-MSGTY | ABAP System Field: Message Type | 20130701 | |||
| 4 | RV_IS_TYPE_ENTRY | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20130701 |
Method GET_IS_TYPE_ENTRY on class CL_ESH_CO_LOGGING has no exception.
Method GET_NORMALIZED_MESSAGE_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_MESSAGE_TYPE | Call by reference | Type reference (TYPE) | SYMSGTY | Message Type | 20070327 |
Method GET_NORMALIZED_MESSAGE_TYPE on class CL_ESH_CO_LOGGING has no exception.
Method GET_REF_TO_APP_LOG_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DIFFERENTIATOR | Call by reference | Type reference (TYPE) | ANY | 20070323 | ||||
| 2 | IV_DIFFERENTIATOR_HASH | Call by reference | Type reference (TYPE) | CHAR40 | 20110120 | ||||
| 3 | RR_LOG_MESSAGES | Value transfer | Object reference (TYPE REF TO) | ESH_S_CO_LOG_MESSAGES | Log messages | 20070323 |
Method GET_REF_TO_APP_LOG_LINE on class CL_ESH_CO_LOGGING has no exception.
Method GET_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_TIMESTAMP | Value transfer | Type reference (TYPE) | BALTIMSTMP | 20070323 |
Method GET_TIMESTAMP on class CL_ESH_CO_LOGGING has no exception.
Method GET_TYPE_ENTRY_DETAILS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_BLOCK_MSGTY | Call by reference | Type reference (TYPE) | SYST-MSGTY | ABAP System Field: Message Type | 20130701 | |||
| 2 | EV_IS_TYPE_ENTRY | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130701 | ||||
| 3 | IV_ENTRY_MSGID | Call by reference | Type reference (TYPE) | SYST-MSGID | ABAP System Field: Message ID | 20130701 | |||
| 4 | IV_ENTRY_MSGNO | Call by reference | Type reference (TYPE) | SYST-MSGNO | ABAP System Field: Message Number | 20130701 | |||
| 5 | IV_ENTRY_MSGTY | Call by reference | Type reference (TYPE) | SYST-MSGTY | ABAP System Field: Message Type | 20130701 |
Method GET_TYPE_ENTRY_DETAILS on class CL_ESH_CO_LOGGING has no exception.
Method INCREMENT_MESSAGE_COUNT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CS_MESSAGE_COUNT | Call by reference | Type reference (TYPE) | ESH_S_CO_MESSAGE_TYPE_COUNTERS | Message type counters | 20070323 | |||
| 2 | IV_MESSAGE_TYPE | Call by reference | Type reference (TYPE) | SYMSGTY | Message Type | 20070323 |
Method INCREMENT_MESSAGE_COUNT on class CL_ESH_CO_LOGGING has no exception.
Method MESSAGE_PREFIX_BY_MESSAGE_TYPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_MESSAGE_TYPE | Call by reference | Type reference (TYPE) | BAL_S_MSG-MSGTY | Message Type | 20090305 | |||
| 2 | RV_MESSAGE_PREFIX | Value transfer | Type reference (TYPE) | CHAR80 | Char 80 | 20090305 |
Method MESSAGE_PREFIX_BY_MESSAGE_TYPE on class CL_ESH_CO_LOGGING has no exception.
Method RESOLVE_EXCEPTION_MESSAGE_ATTR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_MESSAGE_VARIABLE | Call by reference | Type reference (TYPE) | SYMSGV | Message Variable | 20090925 | |||
| 2 | IV_T100KEY_ATTRIBUTE | Call by reference | Type reference (TYPE) | SCX_ATTRNAME | Attribute Name | 20090925 | |||
| 3 | IX_EXCEPTION | Call by reference | Object reference (TYPE REF TO) | CX_ROOT | Abstract Superclass for All Global Exceptions | 20090925 |
Method RESOLVE_EXCEPTION_MESSAGE_ATTR on class CL_ESH_CO_LOGGING has no exception.
Method SAVE_LOG_MESSAGES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_LOG | Call by reference | Type reference (TYPE) | ESH_S_CO_LOG_MESSAGES | Log messages | 20070326 | |||
| 2 | IV_CLEAR_PARAMS | Call by reference | Type reference (TYPE) | BOOLEAN | SPACE | Boolean Variable (X=True, -=False, Space=Unknown) | 20090119 | ||
| 3 | IV_LOG_HANDLE | Call by reference | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20070326 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Common ESH Engine Exception | 20070326 |
Method TEXT_MESSAGE_CONVERT_TO_SYMSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_MESSAGE_ID | Call by reference | Type reference (TYPE) | SYMSGID | Message ID | 20080606 | |||
| 2 | IV_MESSAGE_NO | Call by reference | Type reference (TYPE) | SYMSGNO | Message No (has to contain &1&2&3&4) | 20080606 | |||
| 3 | IV_MESSAGE_TYPE | Call by reference | Type reference (TYPE) | SYMSGTY | Message Type A, E, W, I, S | 20080606 | |||
| 4 | IV_TEXT | Call by reference | Type reference (TYPE) | STRING | Message Text | 20080606 |
Method TEXT_MESSAGE_CONVERT_TO_SYMSG on class CL_ESH_CO_LOGGING has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 100 |