SAP ABAP Class CL_ESH_TST_HIL_LOG_HIERARCHY (Hierarchical Logging)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
⤷
S_ESH_TST_HIERARCHY_LOG (Package) Hierarchy log
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_ESH_CO_LOGGING | Logging | 20100218 |
Properties
| Class | CL_ESH_TST_HIL_LOG_HIERARCHY | |
| Short Description | Hierarchical Logging | |
| Super Class | CL_ESH_CO_LOGGING | Logging |
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | S_ESH_TST_HIERARCHY_LOG | Hierarchy log |
| Created | 20100218 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_ESH_TST_HIL_LOG_HIERARCHY has no forward declaration.
Interfaces
Class CL_ESH_TST_HIL_LOG_HIERARCHY has no interface implemented.
Friends
Class CL_ESH_TST_HIL_LOG_HIERARCHY has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | MSGNR | '012' | Message add SAP Note | 20100420 | ||
| 2 | Constant | Public | Type reference (TYPE) | MSGNR | '015' | Message enter simple task | 20100527 | ||
| 3 | Constant | Public | Type reference (TYPE) | MSGNR | '002' | Message enter task | 20100218 | ||
| 4 | Constant | Public | Type reference (TYPE) | MSGNR | '004' | Message enter template task | 20100218 | ||
| 5 | Constant | Public | Type reference (TYPE) | MSGID | 'ESH_TST_HIL_LOG_MSG' | Application area | 20100218 | ||
| 6 | Constant | Public | Type reference (TYPE) | MSGNR | '016' | Message leave simple task | 20100527 | ||
| 7 | Constant | Public | Type reference (TYPE) | MSGNR | '003' | Message leave task | 20100218 | ||
| 8 | Constant | Public | Type reference (TYPE) | MSGNR | '005' | Message leave template task | 20100218 | ||
| 9 | Constant | Public | Type reference (TYPE) | MSGNR | '042' | Message end multiline string | 20100420 | ||
| 10 | Constant | Public | Type reference (TYPE) | MSGNR | '041' | Message multiline line | 20100420 | ||
| 11 | Constant | Public | Type reference (TYPE) | MSGNR | '040' | Message start multiline string | 20100420 | ||
| 12 | Constant | Public | Type reference (TYPE) | MSGNR | '008' | Message for logging a parameter | 20100219 | ||
| 13 | Constant | Public | Type reference (TYPE) | MSGNR | '007' | Message set severity | 20100218 | ||
| 14 | Constant | Public | Type reference (TYPE) | MSGNR | '006' | Message set task name | 20100218 | ||
| 15 | Constant | Public | Type reference (TYPE) | MSGNR | '009' | Message set severity explicitely | 20100420 | ||
| 16 | Constant | Public | Type reference (TYPE) | STRING | 'TASKNAME' | Parameter task name | 20100420 | ||
| 17 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_KEY | 'PARSE_ROOT' | Key of artificial root object | 20100218 | ||
| 18 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_SEVERITY | 'E' | Severity error | 20100218 | ||
| 19 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_SEVERITY | 'I' | Severity init | 20100505 | ||
| 20 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_SEVERITY | 'K' | Severity skipped | 20100505 | ||
| 21 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_SEVERITY | 'S' | Severity success/info | 20100218 | ||
| 22 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_SEVERITY | 'W' | Severity warning | 20100218 | ||
| 23 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_STATUS | 'A' | Status aborted | 20100219 | ||
| 24 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_STATUS | 'F' | Status finished | 20100218 | ||
| 25 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_STATUS | 'X' | Status not started | 20100218 | ||
| 26 | Constant | Public | Type reference (TYPE) | ESH_E_TST_FWK_STATUS | 'R' | Status running | 20100218 | ||
| 27 | Static Attribute | Protected | Type reference (TYPE) | TT_LOG_DATA | Table log data | 20100218 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Add SAP Note | 20100420 | |
| 2 | Instance method | Public | Method | Add string to log (string is split into multiple lines) | 20100420 | |
| 3 | Instance method | Public | Method | Enter simple task | 20100527 | |
| 4 | Instance method | Public | Method | Enter task | 20100218 | |
| 5 | Instance method | Public | Method | Enter template task | 20100218 | |
| 6 | Static method | Public | Method | Get instance | 20100218 | |
| 7 | Static method | Public | Method | Get log data | 20100218 | |
| 8 | Static method | Protected | Method | Get log data from DB | 20100218 | |
| 9 | Instance method | Public | Method | Leave task | 20100527 | |
| 10 | Instance method | Public | Method | Leave task | 20100218 | |
| 11 | Instance method | Public | Method | Leave template task | 20100218 | |
| 12 | Static method | Protected | Method | Read multiline string | 20100420 | |
| 13 | Instance method | Public | Method | Save the application log with no parameter in messages | 20100709 | |
| 14 | Instance method | Public | Method | Set parameter (parameter is persisted in log) | 20100219 | |
| 15 | Instance method | Protected | Method | Write single line of multiline string to log | 20100420 | |
| 16 | Instance method | Protected | Method | Write multiline string to log | 20100420 |
Events
Class CL_ESH_TST_HIL_LOG_HIERARCHY has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TS_LOG_DATA | Public | See coding | Log data | 20100218 | BEGIN OF ts_log_data,
log_handle TYPE balloghndl,
log_header type BAL_S_LOG,
root_log_entry TYPE REF TO CL_ESH_TST_HIL_LOG_ENTRY_TASK,
tasks TYPE tt_task_data,
END OF ts_log_data
|
|
| 2 | TS_TASK_DATA | Public | See coding | Task data | 20100218 | BEGIN OF ts_task_data,
task_key TYPE ESH_E_TST_FWK_KEY,
task_log_entry TYPE REF TO CL_ESH_TST_HIL_LOG_ENTRY_TASK,
END OF ts_task_data
|
|
| 3 | TT_LOG_DATA | Public | See coding | Table log data | 20100218 | tt_log_data TYPE SORTED TABLE OF ts_log_data WITH UNIQUE KEY log_handle
|
|
| 4 | TT_TASK_DATA | Public | See coding | Table task data | 20100218 | tt_task_data TYPE SORTED TABLE OF ts_task_data WITH UNIQUE KEY task_key
|
Method Signatures
Method ADD_SAP_NOTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_NOTE_NUMBER | Call by reference | Type reference (TYPE) | I | Note number | 20100420 |
Method ADD_SAP_NOTE on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method ADD_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_MSGTY | Call by reference | Type reference (TYPE) | SYMSGTY | Message Type | 20100420 | |||
| 2 | IV_STRING | Call by reference | Type reference (TYPE) | STRING | String | 20100420 |
Method ADD_STRING on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method ENTER_SIMPLE_TASK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SEVERITY_SET_EXPLICITELY | Call by reference | Type reference (TYPE) | FLAG | Severity has to be set explicitely when leaving task | 20100527 | |||
| 2 | IV_TASK_KEY | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_KEY | Task key | 20100527 | |||
| 3 | IV_TASK_NAME | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_NAME | Task name | 20100527 |
Method ENTER_SIMPLE_TASK on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method ENTER_TASK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SEVERITY_SET_EXPLICITELY | Call by reference | Type reference (TYPE) | FLAG | Severity has to be set explicitely when leaving task | 20100420 | |||
| 2 | IV_TASK_KEY | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_KEY | Task key | 20100218 | |||
| 3 | IV_TASK_NAME | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_NAME | Task name | 20100218 |
Method ENTER_TASK on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method ENTER_TEMPLATE_TASK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TASK_KEY | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_KEY | Task key | 20100218 | |||
| 2 | IV_TASK_NAME | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_NAME | Task name | 20100218 |
Method ENTER_TEMPLATE_TASK on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method GET_HIERARCHY_LOG 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 | 20100218 | |||
| 2 | IV_APPLICATION_LOG_SUBOBJECT | Call by reference | Type reference (TYPE) | BALSUBOBJ | Application Log: Subobject | 20100218 | |||
| 3 | IV_EXTNUMBER | Call by reference | Type reference (TYPE) | BALNREXT | Application Log: External ID | 20100218 | |||
| 4 | RR_LOG | Value transfer | Object reference (TYPE REF TO) | CL_ESH_TST_HIL_LOG_HIERARCHY | Hierarchical logging | 20100218 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Invalid Parameter | 20100218 |
Method GET_LOG_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ER_LOG_DATA | Call by reference | Object reference (TYPE REF TO) | TS_LOG_DATA | Log data | 20100218 | |||
| 2 | IV_FLG_FORCE_DB_READ | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_FORCE_DB_READ | Force read from DB | 20100218 | |||
| 3 | IV_LOG_HANDLE | Call by reference | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20100218 |
Method GET_LOG_DATA on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method GET_LOG_DATA_FROM_DB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_LOG_DATA | Call by reference | Object reference (TYPE REF TO) | TS_LOG_DATA | Log data | 20100218 | |||
| 2 | IV_LOG_HANDLE | Call by reference | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20100218 |
Method GET_LOG_DATA_FROM_DB on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method LEAVE_SIMPLE_TASK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SEVERITY | Call by reference | Type reference (TYPE) | CHAR1 | Severity | 20100527 | |||
| 2 | IV_TASK_KEY | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_KEY | Task key | 20100527 |
Method LEAVE_SIMPLE_TASK on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method LEAVE_TASK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SEVERITY | Call by reference | Type reference (TYPE) | CHAR1 | Severity | 20100218 | |||
| 2 | IV_TASK_KEY | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_KEY | Task key | 20100218 |
Method LEAVE_TASK on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method LEAVE_TEMPLATE_TASK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TASK_KEY | Call by reference | Type reference (TYPE) | ESH_E_TST_FWK_KEY | Task key | 20100218 |
Method LEAVE_TEMPLATE_TASK on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method READ_MULTILINE_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_STRING | Call by reference | Type reference (TYPE) | STRING | Multiline string | 20100420 | |||
| 2 | EV_STRING_NAME | Call by reference | Type reference (TYPE) | STRING | Name of multiline string | 20100420 | |||
| 3 | IT_MSG_HANDLES | Call by reference | Type reference (TYPE) | BAL_T_MSGH | Application Log: Message Handle Table | 20100420 | |||
| 4 | IV_LOG_HANDLE | Call by reference | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20100420 |
Method READ_MULTILINE_STRING on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method SAVE_HIL_APPLICATION_LOG Signature
Method SAVE_HIL_APPLICATION_LOG on class CL_ESH_TST_HIL_LOG_HIERARCHY has no parameter.
Method SAVE_HIL_APPLICATION_LOG on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method SET_PARAMETER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_PARAMETER | Call by reference | Type reference (TYPE) | ESH_S_TST_FWK_PARAMETER | Parameter | 20100219 |
Method SET_PARAMETER on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method WRITE_MULTILINE_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_LINE | Call by reference | Type reference (TYPE) | STRING | Line of multiline string | 20100420 |
Method WRITE_MULTILINE_LINE on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
Method WRITE_MULTILINE_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_STRING | Call by reference | Type reference (TYPE) | STRING | String | 20100420 | |||
| 2 | IV_STRING_NAME | Call by reference | Type reference (TYPE) | STRING | Name of string | 20100420 |
Method WRITE_MULTILINE_STRING on class CL_ESH_TST_HIL_LOG_HIERARCHY has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 730 |