SAP ABAP Class CL_SPI_TEST_DATA (Generates runtime data for tests)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SRV-PMI (Application Component) Process Monitoring Infrastructure
⤷
SPI9 (Package) Central: Tests and Test Environment
⤷
⤷
Properties
| Class | CL_SPI_TEST_DATA | |
| Short Description | Generates runtime data for tests | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SPI9 | Central: Tests and Test Environment |
| Created | 20081009 | 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_SPI_TEST_DATA has no interface implemented.
Friends
Class CL_SPI_TEST_DATA has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | I | 1000 | 20091228 | |||
| 2 | Constant | Private | Type reference (TYPE) | I | 1000 | 20091228 | |||
| 3 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_SPI_CU_PROCESS | Process Data from Customizing | 20081029 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | SPIBOOL | SPI_TRUE | Buffer Data | 20100322 | ||
| 5 | Instance attribute | Private | Type reference (TYPE) | SPIPROCTP | SPI: Process Type ID | 20081017 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | SPIRTMODE | SPI: Runtime Mode | 20081029 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | I | Counter for Parallel Executions | 20091221 | |||
| 8 | Static Attribute | Private | Type reference (TYPE) | TT_HASHVAL | 20100621 | ||||
| 9 | Instance attribute | Private | Type reference (TYPE) | TSPICSE1 | Table of One-Step Events | 20081017 | |||
| 10 | Instance attribute | Private | Type reference (TYPE) | TSPICSE2 | Table of Two-Step Events | 20081017 | |||
| 11 | Instance attribute | Private | Type reference (TYPE) | TSPICSPRHD | Table of Process Instances | 20081017 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | TSPICSPRST2 | Table of Process Steps | 20081017 | |||
| 13 | Instance attribute | Private | Type reference (TYPE) | TSPICSTRHD | Table for Tracking Record Header | 20081017 | |||
| 14 | Instance attribute | Private | Type reference (TYPE) | TSPICSTRPL | Table for Tracking Record Payload | 20081017 | |||
| 15 | Instance attribute | Private | Type reference (TYPE) | TSPICSTRPR | Table for Mapping Top Process Step to Subprocess | 20090805 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | 20081017 | ||
| 2 | Instance method | Public | Method | Creates destination NONE for all steps - for STAT test | 20090202 | |
| 3 | Instance method | Public | Method | Creates Process Instances | 20081017 | |
| 4 | Instance method | Public | Method | Generates tracking records | 20081009 | |
| 5 | Instance method | Public | Method | Callback for 'SPI_TEST_DATA_CREATE_TR_ASYNCH' | 20091221 | |
| 6 | Instance method | Public | Method | Deletes all Test Data | 20081017 | |
| 7 | Instance method | Public | Method | Gets 1-Step Metrics Previously Created | 20081111 | |
| 8 | Instance method | Public | Method | Gets 2-Step Metrics Previously Created | 20081111 | |
| 9 | Static method | Public | Method | Generates hash value | 20081009 | |
| 10 | Instance method | Private | Method | Gets Payload Data for Each Step | 20081028 | |
| 11 | Instance method | Public | Method | Gets Payload Data Previously Created | 20081111 | |
| 12 | Instance method | Public | Method | Gets Process Type | 20081029 | |
| 13 | Instance method | Public | Method | Gets Process Instances Previously Created | 20081111 | |
| 14 | Instance method | Private | Method | Gets Table Entries for Individual Steps | 20081027 | |
| 15 | Instance method | Public | Method | Gets Step Instances Previously Created | 20081111 | |
| 16 | Instance method | Public | Method | Gets Tracking Record Header Previously Created | 20081111 | |
| 17 | Static method | Public | Method | Gets TR Header Data | 20081017 | |
| 18 | Instance method | Public | Method | Inserts tracking records and payload in DB | 20091217 |
Events
Class CL_SPI_TEST_DATA has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TS_HASHVAL | Private | See coding | 20100621 | BEGIN OF ts_hashval,
val TYPE string,
hashval TYPE i,
END OF ts_hashval
|
||
| 2 | TT_HASHVAL | Private | See coding | 20100621 | tt_hashval TYPE SORTED TABLE OF ts_hashval WITH UNIQUE KEY val
|
Method Signatures
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IP_BUFFER | Call by reference | Type reference (TYPE) | SPIBOOL | Daten puffern | 20100322 | |||
| 2 | IP_NO_ENQUEUE | Call by reference | Type reference (TYPE) | SPIBOOL | Keine Sperre setzen | 20091214 | |||
| 3 | IP_PROCESS_ID | Call by reference | Type reference (TYPE) | SPIPROCTP | SPI: ID eines Prozesstypen | 20081215 | |||
| 4 | IP_RT_MODE | Call by reference | Type reference (TYPE) | SPIRTMODE | Laufzeitmodus | 20081029 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmeklasse Testdaten anlegen | 20081029 |
Method CREATE_DESTS Signature
Method CREATE_DESTS on class CL_SPI_TEST_DATA has no parameter.
Method CREATE_DESTS on class CL_SPI_TEST_DATA has no exception.
Method CREATE_PROCESS_INSTANCES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_RUNTIME_EB | Call by reference | Type reference (TYPE) | SPIPDURA | 0 | SPI: Prozessdauer | 20081028 | ||
| 2 | I_STATUS_EB | Call by reference | Type reference (TYPE) | SPIERRST | '00' | SPI: Fehlerstatus für Prozess | 20081027 | ||
| 3 | I_STATUS_FIELD_START | Call by reference | Type reference (TYPE) | SPIATTVAL | 'OK' | SPI Global: Wert zu einem Feldnamen | 20081027 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmeklasse Testdaten anlegen | 20081119 |
Method CREATE_TRACKING_RECORDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IP_FINISH | Call by reference | Type reference (TYPE) | SPICMPFIN | SPI: Finished + Complete Status | 20100721 | |||
| 2 | IP_ID_OFFSET | Call by reference | Type reference (TYPE) | I | 0 | Zählerbeginn | 20091216 | ||
| 3 | IP_ID_PREFIX | Call by reference | Type reference (TYPE) | STRING | Gemeinsamer Teil der ID | 20091228 | |||
| 4 | IP_INST_COUNT | Call by reference | Type reference (TYPE) | I | 1 | Anzahl Instanzen | 20091216 | ||
| 5 | IP_STATUS | Call by reference | Type reference (TYPE) | SPIERRST | SPI: Fehlerstatus für Prozess | 20091215 | |||
| 6 | IP_TS_OFFSET | Call by reference | Type reference (TYPE) | I | 0 | Zeitabweichung in Sekunden | 20091216 | ||
| 7 | IT_PAYLOAD | Call by reference | Type reference (TYPE) | TSPIGENNV | Payload-Felder | 20091215 | |||
| 8 | IT_STEP_NAME | Call by reference | Type reference (TYPE) | TSPISSTR | Schrittnamen | 20091216 |
Method CREATE_TRACKING_RECORDS on class CL_SPI_TEST_DATA has no exception.
Method CREATE_TR_ASYNCH_RETURN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_TASK | Call by reference | Type reference (TYPE) | CLIKE | 20091221 |
Method CREATE_TR_ASYNCH_RETURN on class CL_SPI_TEST_DATA has no exception.
Method DELETE Signature
Method DELETE on class CL_SPI_TEST_DATA has no parameter.
Method DELETE on class CL_SPI_TEST_DATA has no exception.
Method GET_1STEP_METRIC_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RT_1STEP_METRICS | Value transfer | Type reference (TYPE) | TSPICSE1 | Tabelle von Ein-Schritt-Ereignissen | 20081111 |
Method GET_1STEP_METRIC_TABLE on class CL_SPI_TEST_DATA has no exception.
Method GET_2STEP_METRIC_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RT_2STEP_METRICS | Value transfer | Type reference (TYPE) | TSPICSE2 | Tabelle von Zwei-Schritt-Ereignissen | 20081111 |
Method GET_2STEP_METRIC_TABLE on class CL_SPI_TEST_DATA has no exception.
Method GET_HASH_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IP_VALUE | Call by reference | Type reference (TYPE) | ANY | Wert | 20081009 | |||
| 2 | RP_VALUE | Value transfer | Type reference (TYPE) | I | Hash-Wert | 20081009 |
Method GET_HASH_VALUE on class CL_SPI_TEST_DATA has no exception.
Method GET_PAYLOAD_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_PROCESS_STEPS | Call by reference | Type reference (TYPE) | TSPICSPRST2 | SPI Global: Header eines Tracking Records | 20081028 | |||
| 2 | I_STATUS_OF_START | Value transfer | Type reference (TYPE) | SPIATTVAL | 'OK' | SPI Global: Wert zu einem Feldnamen | 20081028 | ||
| 3 | RT_TR_PAYLOAD | Value transfer | Type reference (TYPE) | TSPICSTRPL | Tabelle für Tracking Record Payload | 20081028 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmeklasse Testdaten anlegen | 20081119 |
Method GET_PAYLOAD_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RT_TR_PAYLOAD | Value transfer | Type reference (TYPE) | TSPICSTRPL | Tabelle für Tracking Record Payload | 20081111 |
Method GET_PAYLOAD_TABLE on class CL_SPI_TEST_DATA has no exception.
Method GET_PROCESS_ID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RP_PROCESS_ID | Value transfer | Type reference (TYPE) | SPIPROCTP | SPI: ID eines Prozesstypen | 20081029 |
Method GET_PROCESS_ID on class CL_SPI_TEST_DATA has no exception.
Method GET_PROCESS_INST_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RT_PROCESS_STEPS | Value transfer | Type reference (TYPE) | TSPICSPRHD | Tabelle von technischen Prozesschrittinformationen | 20081111 |
Method GET_PROCESS_INST_TABLE on class CL_SPI_TEST_DATA has no exception.
Method GET_PROCESS_STEPS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ERROR_EB | Value transfer | Type reference (TYPE) | SPIERRST | '00' | SPI: Fehlerstatus für Prozess | 20081028 | ||
| 2 | I_RUNTIME_EB | Value transfer | Type reference (TYPE) | NUMERIC | 0 | UTC-Zeitstempel in Langform (JJJJMMTThhmmssmmmuuun) | 20081028 | ||
| 3 | RT_PROCESS_STEPS | Value transfer | Type reference (TYPE) | TSPICSPRST2 | Tabelle von Prozessschritten | 20081027 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmeklasse Testdaten anlegen | 20081119 |
Method GET_STEP_INST_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RT_PROCESS_STEPS | Value transfer | Type reference (TYPE) | TSPICSPRST2 | Tabelle von technischen Prozesschrittinformationen | 20081111 |
Method GET_STEP_INST_TABLE on class CL_SPI_TEST_DATA has no exception.
Method GET_TRACKING_RECORD_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RT_TR_HEADER | Value transfer | Type reference (TYPE) | TSPICSTRHD | Tabelle für Tracking Record Header | 20081111 |
Method GET_TRACKING_RECORD_TABLE on class CL_SPI_TEST_DATA has no exception.
Method GET_TR_HEADER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_TR_HEADER | Call by reference | Type reference (TYPE) | SSPITRHD | SPI Global: Header eines Tracking Records | 20081017 |
Method GET_TR_HEADER on class CL_SPI_TEST_DATA has no exception.
Method INSERT_TRACKING_RECORDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_STEP_NAME | Call by reference | Type reference (TYPE) | TSPISSTR | SPI: Tabelle von Suchstrings | 20091217 |
Method INSERT_TRACKING_RECORDS on class CL_SPI_TEST_DATA has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 720 |