SAP ABAP Class CL_CTS_IMPORTHISTORY_ANALYZER (analyzer class of the import history)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-CTS-TMS-CTR (Application Component) Central CTS # Transport Management
⤷
SCTS_DIST_CLIENT (Package) cCTS Client
⤷
⤷
Properties
| Class | CL_CTS_IMPORTHISTORY_ANALYZER | |
| Short Description | analyzer class of the import history | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SCTS_DIST_CLIENT | cCTS Client |
| Created | 20111108 | SAP |
| Last change | 20140121 | 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_CTS_IMPORTHISTORY_ANALYZER has no interface implemented.
Friends
Class CL_CTS_IMPORTHISTORY_ANALYZER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | TBTCJOB-JOBNAME | 'HISTORY_ANALYSIS_JOB' | 20111128 | |||
| 2 | Instance attribute | Private | Type reference (TYPE) | OBJECT_TYPES | 20120530 | ||||
| 3 | Instance attribute | Private | Type reference (TYPE) | OBJECT_INFOS | 20120530 | ||||
| 4 | Constant | Public | Type reference (TYPE) | SY-REPID | 'CTS_RUN_HISTORY_ANALYSIS' | 20111128 | |||
| 5 | Instance attribute | Private | Type reference (TYPE) | IMPORTED_REQUESTS | 20111108 | ||||
| 6 | Instance attribute | Private | See coding | 20120306 | |||||
| 7 | Instance attribute | Private | See coding | 20120306 | |||||
| 8 | Instance attribute | Private | Type reference (TYPE) | CHAR3 | system ID | 20111201 | |||
| 9 | Constant | Public | Type reference (TYPE) | CHAR14 | 'JOB_VARIANT' | 20111129 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | reads available conflicts from the DB | 20120201 | |
| 2 | Static method | Public | Method | executes import history analysis | 20111129 | |
| 3 | Static method | Public | Method | analyses only new imported (after last run) requests | 20111201 | |
| 4 | Instance method | Private | Method | calculates hash string | 20120208 | |
| 5 | Instance method | Private | Method | checks requests for conflicts | 20120201 | |
| 6 | Instance method | Private | Method | checks 2 requests for conflicts | 20120207 | |
| 7 | Instance method | Private | Method | checks 2 requests for conflicts | 20120207 | |
| 8 | Instance method | Public | Method | checks if any objects of specified request are downgraded | 20111108 | |
| 9 | Instance method | Public | Method | checks 2 requests for conflicts | 20111108 | |
| 10 | Instance method | Private | Method | reads available conflicts from the DB | 20120201 | |
| 11 | Instance method | Private | Method | reads available conflicts from the DB | 20120201 | |
| 12 | Static method | Public | Method | creates an instance of the class | 20111108 | |
| 13 | Static method | Public | Method | finds a time interval to handle a (max) no. of reqs | 20111130 | |
| 14 | Static method | Public | Method | returns downgraded objects for the specified request | 20120131 | |
| 15 | Instance method | Private | Method | gets some request information based on CTS_IMPREQ_LAST table | 20120207 | |
| 16 | Instance method | Private | Method | reads available conflicts from the DB | 20120201 | |
| 17 | Instance method | Private | Method | resolves client dependent objects | 20120229 | |
| 18 | Instance method | Private | Method | resolves client dependent objects | 20120229 | |
| 19 | Static method | Public | Method | defines (if not exists) and starts the history analysis job | 20111128 |
Events
Class CL_CTS_IMPORTHISTORY_ANALYZER has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | CLIENT_REQUEST | Public | See coding | 20120112 | begin of client_request,
trcli type char3,
trkorr type trkorr,
end of client_request
|
||
| 2 | CLIENT_REQUESTS | Public | See coding | 20120112 | client_requests type table of client_request
|
||
| 3 | IMPORTED_REQUEST | Public | See coding | 20111108 | begin of imported_request,
id type trkorr,
req type strhi_request_wd,
exp_time type char14,
to_be_calc type char1,
has_nonabap_obj type char1,
nonabap_to_calc type char1,
keys_resoved type char1,
logos_resolved type char1,
end of imported_request
|
||
| 4 | IMPORTED_REQUESTS | Public | See coding | 20111108 | imported_requests type hashed table of imported_request with unique key id
|
||
| 5 | LOG_OBJ_TYPE_INFO | Public | See coding | 20120530 | begin of log_obj_type_info,
obj_type type trobjtype,
state type char1,
end of log_obj_type_info
|
||
| 6 | OBJECT_INFO | Public | See coding | 20120530 | begin of object_info,
pgmid type pgmid,
obj_type type trobjtype,
obj_name type tabname,
client_depend type char1,
end of object_info
|
||
| 7 | OBJECT_INFOS | Public | See coding | 20120530 | object_infos type hashed table of object_info with unique key pgmid obj_type obj_name
|
||
| 8 | OBJECT_TYPES | Public | See coding | 20120530 | object_types type table of log_obj_type_info
|
Method Signatures
Method ADD_CONFLICTS_IF_ANY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REQ_ID1 | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 2 | REQ_ID2 | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 3 | RESULTING_CONFLICTS | Call by reference | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120201 |
Method ADD_CONFLICTS_IF_ANY on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method ANALYSE_IMPORT_HISTORY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ANALYZER | Value transfer | Object reference (TYPE REF TO) | CL_CTS_IMPORTHISTORY_ANALYZER | used reference to analyzer of the import history | 20120202 | |||
| 2 | SID | Call by reference | Type reference (TYPE) | CHAR3 | 3-Byte field | 20111129 | |||
| 3 | STARTING_AT | Call by reference | Type reference (TYPE) | CHAR14 | Text field length 14 | 20111129 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20120109 |
Method ANALYSE_NEW_IMPORTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMPORTED_AFTER | Call by reference | Type reference (TYPE) | CHAR14 | starting point for analysis | 20120113 | |||
| 2 | SEL_REQS | Call by reference | Type reference (TYPE) | CTS_RSTATES | request states for import history analysis | 20120201 | |||
| 3 | SID | Call by reference | Type reference (TYPE) | CHAR3 | system ID | 20111201 | |||
| 4 | STARTING_AT | Call by reference | Type reference (TYPE) | CHAR14 | starting point to find possible repairs | 20120125 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20120109 |
Method CALCULATE_HASH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | APPL_TYPE | Call by reference | Type reference (TYPE) | CHAR120 | char120 | 20120208 | |||
| 2 | HASH | Value transfer | Type reference (TYPE) | HASH160 | Character field of length 40 | 20120208 | |||
| 3 | OBJECT_ID | Call by reference | Type reference (TYPE) | CSEQUENCE | object ID | 20120208 | |||
| 4 | OBJECT_TYPE | Call by reference | Type reference (TYPE) | CHAR120 | char120 | 20120208 |
Method CALCULATE_HASH on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CHECK_AND_LOG_CONFLICTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | NON_ABAP_ONLY | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20120530 |
Method CHECK_AND_LOG_CONFLICTS on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CHECK_FOR_CONFLICTS_ABAP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DWN_OBJECTS | Value transfer | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120207 | |||
| 2 | REQ1_ID | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120306 | |||
| 3 | REQ2_ID | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120306 |
Method CHECK_FOR_CONFLICTS_ABAP on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CHECK_FOR_CONFLICTS_NON_ABAP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DWN_OBJECTS | Value transfer | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120207 | |||
| 2 | REQ1 | Call by reference | Type reference (TYPE) | STRHI_REQUEST_WD | Request/Task | 20120207 | |||
| 3 | REQ2 | Call by reference | Type reference (TYPE) | STRHI_REQUEST_WD | Request/Task | 20120207 |
Method CHECK_FOR_CONFLICTS_NON_ABAP on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CHECK_FOR_DOWNGRADES_FOR_REQS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CLI | Call by reference | Type reference (TYPE) | CHAR3 | client | 20111108 | |||
| 2 | IMPORTED_REQUESTS | Call by reference | Type reference (TYPE) | CTS_IMPORTED_REQS | requests | 20111108 |
Method CHECK_FOR_DOWNGRADES_FOR_REQS on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CHECK_REQS_FOR_CONFLICTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DWN_OBJECTS | Value transfer | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120201 | |||
| 2 | REQ_ID1 | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20111108 | |||
| 3 | REQ_ID2 | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20111108 |
Method CHECK_REQS_FOR_CONFLICTS on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CLEAN_KNOWN_CONFLICTS_IF_ANY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REQ_ID_IMP_AFTER | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 2 | REQ_ID_MAIN | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 3 | RESULTING_CONFLICTS | Call by reference | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120201 |
Method CLEAN_KNOWN_CONFLICTS_IF_ANY on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CLEAN_UNKNOWN_CONFLICTS_IF_ANY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REQ_ID_IMP_AFTER | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 2 | REQ_ID_MAIN | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 3 | RESULTING_CONFLICTS | Call by reference | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120201 |
Method CLEAN_UNKNOWN_CONFLICTS_IF_ANY on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ANALYZER | Value transfer | Object reference (TYPE REF TO) | CL_CTS_IMPORTHISTORY_ANALYZER | analyzer class of import history | 20111108 | |||
| 2 | REQUESTS | Call by reference | Type reference (TYPE) | IMPORTED_REQUESTS | 20111108 | ||||
| 3 | SYS | Call by reference | Type reference (TYPE) | CHAR3 | 3-Byte field | 20111108 |
Method CREATE on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method FIND_TIME_INTERVAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LAST_RUN | Call by reference | Type reference (TYPE) | CHAR14 | timestamp | 20111130 | |||
| 2 | REQS_MAX | Call by reference | Type reference (TYPE) | I | maximum number of requests to handle | 20111130 | |||
| 3 | SID | Call by reference | Type reference (TYPE) | CHAR3 | 3-Byte field | 20111130 | |||
| 4 | START_AT | Value transfer | Type reference (TYPE) | CHAR14 | Text field length 14 | 20111130 | |||
| 5 | STEPDAYS | Call by reference | Type reference (TYPE) | I | number of days for the step | 20111130 |
Method FIND_TIME_INTERVAL on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method GET_DOWNGRADED_OBJS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DOWNGRADED_OBJECTS | Value transfer | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120131 | |||
| 2 | REQUEST | Call by reference | Type reference (TYPE) | CTS_RSTATE | request | 20120131 | |||
| 3 | SID | Call by reference | Type reference (TYPE) | CHAR3 | 3-Byte field | 20120131 |
Method GET_DOWNGRADED_OBJS on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method GET_REQUEST_INFO Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CLI | Call by reference | Type reference (TYPE) | CHAR3 | client | 20120207 | |||
| 2 | INFO | Value transfer | Type reference (TYPE) | CTS_IMPREQ_LAST | already analyzed (for conflicts) the imported requests | 20120207 | |||
| 3 | REQUEST_ID | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120207 | |||
| 4 | SYS | Call by reference | Type reference (TYPE) | CHAR3 | system ID | 20120207 |
Method GET_REQUEST_INFO on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method REMOVE_CONFLICTS_IF_ANY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXISTING | Call by reference | Type reference (TYPE) | CHAR1 | if the second request (potentially) downgrades the first one | 20120201 | |||
| 2 | REQ_ID1 | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 3 | REQ_ID2 | Call by reference | Type reference (TYPE) | TRKORR | Request/Task | 20120201 | |||
| 4 | RESULTING_CONFLICTS | Call by reference | Type reference (TYPE) | CTS_DOWNGRADING_OBJS | downgrading objects | 20120201 |
Method REMOVE_CONFLICTS_IF_ANY on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method RESOLVE_CLI_DEP_OBJECTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CLIENT | Call by reference | Type reference (TYPE) | CHAR3 | Single-Character Flag | 20120306 | |||
| 2 | REQUEST | Call by reference | Type reference (TYPE) | STRHI_REQUEST_WD | request | 20120229 |
Method RESOLVE_CLI_DEP_OBJECTS on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method RESOLVE_TABLE_KEYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | REQUEST | Call by reference | Type reference (TYPE) | STRHI_REQUEST_WD | request | 20120229 | |||
| 2 | USE_KEYS_WITH_CLIENT | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20120229 |
Method RESOLVE_TABLE_KEYS on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
Method START_ANALYSIS_JOB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SYS | Call by reference | Type reference (TYPE) | CHAR3 | 3-Byte field | 20111128 |
Method START_ANALYSIS_JOB on class CL_CTS_IMPORTHISTORY_ANALYZER has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 702 |