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!
⤷ 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 | ABAP | 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 | GC_FREESTYLE_MSG_ID | Constant | Protected | Type reference (TYPE) | SY-MSGID | 'MPLAN' | Message Class for "freestyle" msg | 20100413 | |
2 | GC_FREESTYLE_MSG_NO | Constant | Protected | Type reference (TYPE) | SY-MSGNO | 414 | Message Number for "freestyle" msg | 20100413 | |
3 | GO_INSTANCE | Static Attribute | Private | Object reference (TYPE REF TO) | CL_TESTING_SRV | Service class for testing apps | 20100413 | ||
4 | MV_CHECK_SYS_TYPE | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 'X' | true = check type of current system | 20100414 | |
5 | MV_LOG_HANDLE | Instance attribute | Protected | Type reference (TYPE) | BALLOGHNDL | Application Log: Log Handle | 20100413 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ABORT_ON_PRODUCTIVE_SYSTEM | Instance method | Public | Method | abort via exception if running in a productive system | 20100414 |
2 | DISPLAY_LOG | Instance method | Public | Method | displays the current log | 20100413 |
3 | HAS_ABORT_BAPI_MSG | Instance method | Public | Method | return abap_true if given BAPI msg table contains abort msg | 20100413 |
4 | HAS_ABORT_SPI_MSG | Instance method | Public | Method | return abap_true if given SPI msg table contains abort msg | 20100413 |
5 | INIT_LOG | Instance method | Public | Method | initialize message log | 20100413 |
6 | LOG_AND_CHECK_BAPI_MSGS | Instance method | Public | Method | write msgs to log and return whether to continue processing | 20100413 |
7 | LOG_AND_CHECK_SPI_MSGS | Instance method | Public | Method | write msgs to log and return whether to continue processing | 20100413 |
8 | SET_BAPI_MESSAGE | Instance method | Public | Method | Export current message as BAPI msg table | 20100419 |
9 | S_GET_INSTANCE | Static method | Public | Method | Singleton instance getter | 20100413 |
10 | WRITE_BAPIRET_TO_LOG | Instance method | Public | Method | write a BAPI message table to the log | 20100413 |
11 | WRITE_CURRENT_MSG_TO_LOG | Instance method | Public | Method | write current message from sy-msg* fields to log | 20100413 |
12 | WRITE_SPIMSGS_TO_LOG | Instance method | Public | Method | write an SPI message table to the log | 20100413 |
13 | WRITE_TEXT_TO_LOG | 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 | Importing | IT_BAPI_MSG | Call by reference | Type reference (TYPE) | BAPIRETTAB | bapi msg table | 20100413 | ||
2 | Returning | 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 | Importing | IT_SPI_MSG | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | SPI msg table | 20100413 | ||
2 | Returning | 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 | Importing | IV_LOG_NAME | Call by reference | Type reference (TYPE) | STRING | 'Testing Log' | Name of log to be created | 20100413 | |
2 | Importing | 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 | Importing | IT_BAPIRET | Call by reference | Type reference (TYPE) | BAPIRETTAB | BAPI message | 20100413 | ||
2 | Importing | IV_LEVEL | Call by reference | Type reference (TYPE) | I | 3 | Log level | 20100413 | |
3 | Returning | 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 | Importing | IT_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | SPI Message | 20100413 | ||
2 | Importing | IV_LEVEL | Call by reference | Type reference (TYPE) | I | 3 | log level | 20100413 | |
3 | Returning | 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 | Exporting | 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 | Returning | 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 | Importing | IT_BAPIRET | Call by reference | Type reference (TYPE) | BAPIRETTAB | table with BAPI Return Information | 20100413 | ||
2 | Importing | 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 | Importing | 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 | Importing | IT_MESSAGE | Call by reference | Type reference (TYPE) | /PLMB/T_SPI_MSG | table with SPI messages | 20100413 | ||
2 | Importing | 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 | Importing | IV_MSG_LEVEL | Call by reference | Type reference (TYPE) | I | 1 | message level | 20100413 | |
2 | Importing | IV_MSG_TYPE | Call by reference | Type reference (TYPE) | SY-MSGTY | 'I' | message type | 20100413 | |
3 | Importing | IV_TEXT | Call by reference | Type reference (TYPE) | ANY | 1st msg var | 20100413 | ||
4 | Importing | IV_TXT2 | Call by reference | Type reference (TYPE) | ANY | 2nd msg var | 20100413 | ||
5 | Importing | IV_TXT3 | Call by reference | Type reference (TYPE) | ANY | 3rd msg var | 20100413 | ||
6 | Importing | 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 |