SAP ABAP Class CL_TESTING_SRV (Service class for testing apps)
Hierarchy
☛
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
⤷
PM-WOC (Application Component) Maintenance Processing
⤷
EAMS_BO_TEST (Package) Package for Test Coding, for internal purposes only!
⤷
⤷
Properties
| Class | CL_TESTING_SRV | |
| Short Description | Service class for testing apps | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | T | Test Program |
| Category | 0 | |
| Package | EAMS_BO_TEST | Package for Test Coding, for internal purposes only! |
| Created | 20100413 | 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) |
Interfaces
Class CL_TESTING_SRV has no interface implemented.
Friends
Class CL_TESTING_SRV has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Protected | Type reference (TYPE) | SY-MSGID | 'MPLAN' | Message Class for "freestyle" msg | 20100413 | ||
| 2 | Constant | Protected | Type reference (TYPE) | SY-MSGNO | 414 | Message Number for "freestyle" msg | 20100413 | ||
| 3 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_TESTING_SRV | Service class for testing apps | 20100413 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 'X' | true = check type of current system | 20100414 | ||
| 5 | Instance attribute | Protected | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20100413 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | abort via exception if running in a productive system | 20100414 | |
| 2 | Instance method | Public | Method | displays the current log | 20100413 | |
| 3 | Instance method | Public | Method | return abap_true if given BAPI msg table contains abort msg | 20100413 | |
| 4 | Instance method | Public | Method | return abap_true if given SPI msg table contains abort msg | 20100413 | |
| 5 | Instance method | Public | Method | initialize message log | 20100413 | |
| 6 | Instance method | Public | Method | write msgs to log and return whether to continue processing | 20100413 | |
| 7 | Instance method | Public | Method | write msgs to log and return whether to continue processing | 20100413 | |
| 8 | Instance method | Public | Method | Export current message as BAPI msg table | 20100419 | |
| 9 | Static method | Public | Method | Singleton instance getter | 20100413 | |
| 10 | Instance method | Public | Method | write a BAPI message table to the log | 20100413 | |
| 11 | Instance method | Public | Method | write current message from sy-msg* fields to log | 20100413 | |
| 12 | Instance method | Public | Method | write an SPI message table to the log | 20100413 | |
| 13 | Instance method | Public | Method | write a given text to the log using a freestyle message | 20100413 |
Events
Class CL_TESTING_SRV has no event.
Types
Class CL_TESTING_SRV has no local type.
Method Signatures
Method ABORT_ON_PRODUCTIVE_SYSTEM Signature
Method ABORT_ON_PRODUCTIVE_SYSTEM on class CL_TESTING_SRV has no parameter.
Method ABORT_ON_PRODUCTIVE_SYSTEM on class CL_TESTING_SRV has no exception.
Method DISPLAY_LOG Signature
Method DISPLAY_LOG on class CL_TESTING_SRV has no parameter.
Method DISPLAY_LOG on class CL_TESTING_SRV has no exception.
Method HAS_ABORT_BAPI_MSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_BAPI_MSG | Call by reference | Type reference (TYPE) | BAPIRETTAB | bapi msg table | 20100413 | |||
| 2 | RV_HAS_ABORT_MSG | Value transfer | Type reference (TYPE) | ABAP_BOOL | true if A, E, or X msg is contained | 20100413 |
Method HAS_ABORT_BAPI_MSG on class CL_TESTING_SRV has no exception.
Method HAS_ABORT_SPI_MSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_SPI_MSG | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | SPI msg table | 20100413 | |||
| 2 | RV_HAS_ABORT_MSG | Value transfer | Type reference (TYPE) | ABAP_BOOL | true if A, E, or X msg is contained | 20100413 |
Method HAS_ABORT_SPI_MSG on class CL_TESTING_SRV has no exception.
Method INIT_LOG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_LOG_NAME | Call by reference | Type reference (TYPE) | STRING | 'Testing Log' | Name of log to be created | 20100413 | ||
| 2 | IV_LOG_USER | Call by reference | Type reference (TYPE) | BALCHUSER | Application Log: User that changed the log | 20100413 |
Method INIT_LOG on class CL_TESTING_SRV has no exception.
Method LOG_AND_CHECK_BAPI_MSGS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_BAPIRET | Call by reference | Type reference (TYPE) | BAPIRETTAB | BAPI message | 20100413 | |||
| 2 | IV_LEVEL | Call by reference | Type reference (TYPE) | I | 3 | Log level | 20100413 | ||
| 3 | RV_CONTINUE | Value transfer | Type reference (TYPE) | ABAP_BOOL | true = no abort message is contained | 20100413 |
Method LOG_AND_CHECK_BAPI_MSGS on class CL_TESTING_SRV has no exception.
Method LOG_AND_CHECK_SPI_MSGS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | SPI Message | 20100413 | |||
| 2 | IV_LEVEL | Call by reference | Type reference (TYPE) | I | 3 | log level | 20100413 | ||
| 3 | RV_CONTINUE | Value transfer | Type reference (TYPE) | ABAP_BOOL | true = no abort message is contained | 20100413 |
Method LOG_AND_CHECK_SPI_MSGS on class CL_TESTING_SRV has no exception.
Method SET_BAPI_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_BAPIRET | Call by reference | Type reference (TYPE) | BAPIRETTAB | Table with BAPI Return Information | 20100419 |
Method SET_BAPI_MESSAGE on class CL_TESTING_SRV has no exception.
Method S_GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_INSTANCE | Value transfer | Object reference (TYPE REF TO) | CL_TESTING_SRV | Singleton instance | 20100413 |
Method S_GET_INSTANCE on class CL_TESTING_SRV has no exception.
Method WRITE_BAPIRET_TO_LOG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_BAPIRET | Call by reference | Type reference (TYPE) | BAPIRETTAB | table with BAPI Return Information | 20100413 | |||
| 2 | IV_LEVEL | Call by reference | Type reference (TYPE) | I | 3 | log level | 20100413 |
Method WRITE_BAPIRET_TO_LOG on class CL_TESTING_SRV has no exception.
Method WRITE_CURRENT_MSG_TO_LOG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_LEVEL | Call by reference | Type reference (TYPE) | I | 1 | log level | 20100413 |
Method WRITE_CURRENT_MSG_TO_LOG on class CL_TESTING_SRV has no exception.
Method WRITE_SPIMSGS_TO_LOG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | table with SPI messages | 20100413 | |||
| 2 | IV_LEVEL | Call by reference | Type reference (TYPE) | I | 3 | log level | 20100413 |
Method WRITE_SPIMSGS_TO_LOG on class CL_TESTING_SRV has no exception.
Method WRITE_TEXT_TO_LOG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_MSG_LEVEL | Call by reference | Type reference (TYPE) | I | 1 | message level | 20100413 | ||
| 2 | IV_MSG_TYPE | Call by reference | Type reference (TYPE) | SY-MSGTY | 'I' | message type | 20100413 | ||
| 3 | IV_TEXT | Call by reference | Type reference (TYPE) | ANY | 1st msg var | 20100413 | |||
| 4 | IV_TXT2 | Call by reference | Type reference (TYPE) | ANY | 2nd msg var | 20100413 | |||
| 5 | IV_TXT3 | Call by reference | Type reference (TYPE) | ANY | 3rd msg var | 20100413 | |||
| 6 | IV_TXT4 | Call by reference | Type reference (TYPE) | ANY | 4th msg var | 20100413 |
Method WRITE_TEXT_TO_LOG on class CL_TESTING_SRV has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 606 |