SAP ABAP Class CL_CPE_LOG (CPE Log)
Hierarchy
☛
PI_BASIS (Software Component) Basis Plug-In
⤷
CA-GTF-CPE (Application Component) Commodity Pricing Engine
⤷
CPE_FA_FE (Package) Commodity Pricing: Formula Assembly and Evaluation (ABAP)
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_CPE_CONSTANTS | CPE constants and declarations | 20100913 |
Properties
| Class | CL_CPE_LOG | |
| Short Description | CPE Log | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CPE_FA_FE | Commodity Pricing: Formula Assembly and Evaluation (ABAP) |
| Created | 20100910 | SAP |
| Last change | 20130531 | 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_CPE_CONSTANTS | CPE constants and declarations | 20100913 |
Friends
Class CL_CPE_LOG has no friend class.
Attributes
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Add message from sy-fields | 20100913 | |
| 2 | Instance method | Public | Method | Add IF_T100_MESSAGE | 20130109 | |
| 3 | Instance method | Public | Method | Add name/ value pair | 20100913 | |
| 4 | Instance method | Public | Constructor | CONSTRUCTOR | 20100910 | |
| 5 | Static method | Public | Method | Create log replacing current one | 20100915 | |
| 6 | Static method | Public | Method | Create simple filter | 20100915 | |
| 7 | Static method | Public | Method | Delete log | 20100910 | |
| 8 | Static method | Public | Method | Get log with current context | 20100915 | |
| 9 | Instance method | Public | Method | Get filter for current context only | 20110222 | |
| 10 | Instance method | Public | Method | Get filter for current context and above | 20110325 | |
| 11 | Instance method | Public | Method | Get messages from log | 20110322 | |
| 12 | Static method | Private | Method | Get message texts | 20110217 | |
| 13 | Static method | Public | Method | Get max. log priority | 20100913 | |
| 14 | Static method | Public | Method | Read log | 20100913 | |
| 15 | Instance method | Public | Method | Send first error message | 20100916 | |
| 16 | Instance method | Public | Method | Set condition | 20100913 | |
| 17 | Instance method | Public | Method | Set guid | 20100913 | |
| 18 | Instance method | Public | Method | Set module | 20100913 | |
| 19 | Static method | Public | Method | Set max. log priority | 20100913 | |
| 20 | Instance method | Public | Method | Set term | 20100913 | |
| 21 | Instance method | Private | Method | 20130109 |
Events
Class CL_CPE_LOG has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | GTY_CONTEXT_S | Public | See coding | Context for log entries | 20100915 | BEGIN OF gty_context_s,
cpe_module TYPE cpet_module,
submodule TYPE cpet_log_submodule,
doc_guid TYPE cpet_guid,
item_guid TYPE cpet_guid,
cond_type TYPE cpet_cond_type,
step TYPE cpet_log_step,
counter TYPE cpet_log_counter,
termno TYPE cpet_termno,
END OF gty_context_s
|
Method Signatures
Method ADD_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_FUNCTION | Call by reference | Type reference (TYPE) | CPET_LOG_FUNCTION | CPE - Log: Function | 20100913 | |||
| 2 | I_MSGTY | Call by reference | Type reference (TYPE) | SYMSGTY | SY-MSGTY | Message Type | 20110321 | ||
| 3 | I_PROG_CLASS | Call by reference | Type reference (TYPE) | CPET_LOG_PROGRAM | CPE - Log: Program | 20100913 | |||
| 4 | R_MSG | Value transfer | Type reference (TYPE) | CPET_LOG_MSG | 20130410 |
Method ADD_MESSAGE on class CL_CPE_LOG has no exception.
Method ADD_T100 Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_FUNCTION | Call by reference | Type reference (TYPE) | CPET_LOG_FUNCTION | CPE - Log: Function | 20130109 | |||
| 2 | I_PROG_CLASS | Call by reference | Type reference (TYPE) | CPET_LOG_PROGRAM | CPE - Log: Program | 20130109 | |||
| 3 | I_T100 | Call by reference | Object reference (TYPE REF TO) | IF_T100_MESSAGE | Interface for Accessing T100 Texts | 20130109 |
Method ADD_T100 on class CL_CPE_LOG has no exception.
Method ADD_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_NAME | Call by reference | Type reference (TYPE) | CPET_LOG_NAME | 20100916 | ||||
| 2 | I_OUTPUT | Call by reference | Type reference (TYPE) | CPET_LOG_OUT_IN | 20100916 | ||||
| 3 | I_PRIORITY | Call by reference | Type reference (TYPE) | CPET_LOG_PRIORITY | IF_CPE_CONSTANTS=>C_PRIO_ANALYSIS | 20100916 | |||
| 4 | I_VALUE | Call by reference | Type reference (TYPE) | ANY | 20100916 |
Method ADD_VALUE on class CL_CPE_LOG has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | COND_TYPE | Call by reference | Type reference (TYPE) | CPET_COND_TYPE | 20100913 | ||||
| 2 | COUNTER | Call by reference | Type reference (TYPE) | CPET_LOG_COUNTER | 20100913 | ||||
| 3 | DOC_GUID | Call by reference | Type reference (TYPE) | CPET_GUID | CPE - Object GUID | 20110222 | |||
| 4 | ITEM_GUID | Call by reference | Type reference (TYPE) | CPET_GUID | CPE - Object GUID | 20110222 | |||
| 5 | MODULE | Call by reference | Type reference (TYPE) | CPET_MODULE | 20100913 | ||||
| 6 | STEP | Call by reference | Type reference (TYPE) | CPET_LOG_STEP | 20100913 | ||||
| 7 | SUBMODULE | Call by reference | Type reference (TYPE) | CPET_LOG_SUBMODULE | 20100913 | ||||
| 8 | TERMNO | Call by reference | Type reference (TYPE) | CPET_TERMNO | 20100913 |
Method CONSTRUCTOR on class CL_CPE_LOG has no exception.
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_CPE_MODULE | Call by reference | Type reference (TYPE) | CPET_MODULE | Delete entries of this module | 20100916 | |||
| 2 | I_PRIORITY | Call by reference | Type reference (TYPE) | CPET_LOG_PRIORITY | IF_CPE_CONSTANTS=>C_PRIO_ANALYSIS | CPE - Priority of Log Entry | 20100916 | ||
| 3 | RO_LOG | Value transfer | Object reference (TYPE REF TO) | CL_CPE_LOG | CPE Log | 20100915 |
Method CREATE on class CL_CPE_LOG has no exception.
Method CREATE_SIMPLE_FILTER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_COND_TYPE | Call by reference | Type reference (TYPE) | CPET_COND_TYPE | CPE: Condition Type for Commodity Pricing | 20110221 | |||
| 2 | I_CPE_MODULE | Call by reference | Type reference (TYPE) | CPET_MODULE | CPE - Module of the Commodity Pricing Engine | 20100915 | |||
| 3 | I_GUID | Call by reference | Type reference (TYPE) | CPET_GUID | CPE - Object GUID | 20100915 | |||
| 4 | I_GUID_HEADER | Call by reference | Type reference (TYPE) | CPET_GUID | CPE - Object GUID | 20110222 | |||
| 5 | I_NO_VALUES_ALLOWED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 'X': Allow no values as well | 20110221 | ||
| 6 | I_PRIORITY_HIGH | Call by reference | Type reference (TYPE) | CPET_LOG_PRIORITY | CPE - Priority of Log Entry | 20100915 | |||
| 7 | I_PRIORITY_LOW | Call by reference | Type reference (TYPE) | CPET_LOG_PRIORITY | CPE - Priority of Log Entry | 20100915 | |||
| 8 | I_SUBMODULE | Call by reference | Type reference (TYPE) | CPET_LOG_SUBMODULE | CPE Log - Submodule | 20100915 | |||
| 9 | I_TERMNO | Call by reference | Type reference (TYPE) | CPET_TERMNO | CPE Term - Number in Formula | 20130410 | |||
| 10 | R_FILTER | Value transfer | Type reference (TYPE) | CPET_LOG_FILTER | CPE Log - Filter Criteria | 20100915 |
Method CREATE_SIMPLE_FILTER on class CL_CPE_LOG has no exception.
Method DELETE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_FILTER | Call by reference | Type reference (TYPE) | CPET_LOG_FILTER | CPE Log - Filter Criteria | 20100913 |
Method DELETE on class CL_CPE_LOG has no exception.
Method GET Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_LOG | Value transfer | Object reference (TYPE REF TO) | CL_CPE_LOG | CPE Log | 20100915 |
Method GET on class CL_CPE_LOG has no exception.
Method GET_FILTER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ALL_MODULES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20110324 | |||
| 2 | I_ERRORS_ONLY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20110222 | |||
| 3 | I_NO_VALUES_ALLOWED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 'X': initial context values (e.g. GUID) allowed | 20110322 | ||
| 4 | R_FILTER | Value transfer | Type reference (TYPE) | CPET_LOG_FILTER | CPE Log - Filter Criteria | 20110222 |
Method GET_FILTER on class CL_CPE_LOG has no exception.
Method GET_FILTER_FOR_MESSAGES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ERRORS_ONLY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20110325 | |||
| 2 | R_FILTER | Value transfer | Type reference (TYPE) | CPET_LOG_FILTER | CPE Log - Filter Criteria | 20110325 |
Method GET_FILTER_FOR_MESSAGES on class CL_CPE_LOG has no exception.
Method GET_MESSAGES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ERRORS_ONLY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20110322 | |||
| 2 | RT_MESSAGES | Value transfer | Type reference (TYPE) | CPET_LOG_MSG_TAB | CPE - Table for Message Log in Documents | 20110322 |
Method GET_MESSAGES on class CL_CPE_LOG has no exception.
Method GET_MESSAGE_TEXTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_MESSAGES_WITH_TEXTS | Call by reference | Type reference (TYPE) | CPET_LOG_MSG_COM_TAB | CPE - Communication Table for Log Messages in Documents | 20110217 | |||
| 2 | IT_MESSAGES | Call by reference | Type reference (TYPE) | CPET_LOG_MSG_TAB | CPE - Table for Message Log in Documents | 20110217 | |||
| 3 | IV_LANGU | Call by reference | Type reference (TYPE) | SYLANGU | SY-LANGU | Language Key of Current Text Environment | 20110217 |
Method GET_MESSAGE_TEXTS on class CL_CPE_LOG has no exception.
Method GET_PRIORITY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_MAX_PRIORITY | Value transfer | Type reference (TYPE) | CPET_LOG_PRIORITY | Max. allowed priority | 20100913 |
Method GET_PRIORITY on class CL_CPE_LOG has no exception.
Method READ Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_ERRORS | Call by reference | Type reference (TYPE) | CPET_LOG_MSG_TAB | CPE - Table for Message Log in Documents | 20101025 | |||
| 2 | ET_LOG | Call by reference | Type reference (TYPE) | CPET_LOG_TAB | CPE - Table for Log Data in Documents | 20100915 | |||
| 3 | ET_MESSAGES | Call by reference | Type reference (TYPE) | CPET_LOG_MSG_TAB | CPE - Table for Message Log in Documents | 20100915 | |||
| 4 | ET_MESSAGES_WITH_TEXTS | Call by reference | Type reference (TYPE) | CPET_LOG_MSG_COM_TAB | CPE - Communication Table for Log Messages in Documents | 20110217 | |||
| 5 | I_FILTER | Call by reference | Type reference (TYPE) | CPET_LOG_FILTER | CPE Log - Filter Criteria | 20100913 |
Method READ on class CL_CPE_LOG has no exception.
Method SEND_ERROR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DISPLAY_LIKE | Call by reference | Type reference (TYPE) | SYMSGTY | Message Type | 20100916 | |||
| 2 | I_MSGTY | Call by reference | Type reference (TYPE) | SYMSGTY | 'S' | Message Type | 20110322 | ||
| 3 | R_MESSAGE_FOUND | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20110223 |
Method SEND_ERROR on class CL_CPE_LOG has no exception.
Method SET_CONDITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_COND_TYPE | Call by reference | Type reference (TYPE) | CPET_COND_TYPE | CPE: Condition Type for Commodity Pricing | 20100913 | |||
| 2 | I_COUNTER | Call by reference | Type reference (TYPE) | CPET_LOG_COUNTER | CPE Log - Counter | 20100913 | |||
| 3 | I_STEP | Call by reference | Type reference (TYPE) | CPET_LOG_STEP | CPE Log - Step | 20100913 |
Method SET_CONDITION on class CL_CPE_LOG has no exception.
Method SET_GUID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DOC_GUID | Call by reference | Type reference (TYPE) | CPET_GUID | CPE - GUID Type | 20110222 | |||
| 2 | I_ITEM_GUID | Call by reference | Type reference (TYPE) | CPET_GUID | CPE - Object GUID | 20110222 |
Method SET_GUID on class CL_CPE_LOG has no exception.
Method SET_MODULE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_MODULE | Call by reference | Type reference (TYPE) | CPET_MODULE | CPE - Module of the Commodity Pricing Engine | 20100913 | |||
| 2 | I_SUBMODULE | Call by reference | Type reference (TYPE) | CPET_LOG_SUBMODULE | CPE Log - Submodule | 20100913 |
Method SET_MODULE on class CL_CPE_LOG has no exception.
Method SET_PRIORITY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_MAX_PRIORITY | Call by reference | Type reference (TYPE) | CPET_LOG_PRIORITY | CPE - Priority of Log Entry | 20100913 |
Method SET_PRIORITY on class CL_CPE_LOG has no exception.
Method SET_TERM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_TERMNO | Call by reference | Type reference (TYPE) | CPET_TERMNO | CPE Term - Number in Formula | 20100913 |
Method SET_TERM on class CL_CPE_LOG has no exception.
Method _ADD_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_MSG | Call by reference | Type reference (TYPE) | CPET_LOG_MSG | 20130109 | ||||
| 2 | R_MSG | Value transfer | Type reference (TYPE) | CPET_LOG_MSG | 20130410 |
Method _ADD_MESSAGE on class CL_CPE_LOG has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 731 |