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 STRHI 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 JOB_NAME Constant Public Type reference (TYPE) TBTCJOB-JOBNAME 'HISTORY_ANALYSIS_JOB' 20111128
2 LOGICAL_OBJ_TYPES Instance attribute Private Type reference (TYPE) OBJECT_TYPES 20120530
3 OBJ_INFOS Instance attribute Private Type reference (TYPE) OBJECT_INFOS 20120530
4 PROGRAM_NAME Constant Public Type reference (TYPE) SY-REPID 'CTS_RUN_HISTORY_ANALYSIS' 20111128
5 REQUESTS Instance attribute Private Type reference (TYPE) IMPORTED_REQUESTS 20111108
6 RESOLVED_KEYS_REQUESTS Instance attribute Private See coding 20120306
7 RESOLVED_LOGOBJ_REQUESTS Instance attribute Private See coding 20120306
8 SYS Instance attribute Private Type reference (TYPE) CHAR3 system ID 20111201
9 VARIANT_NAME Constant Public Type reference (TYPE) CHAR14 'JOB_VARIANT' 20111129
Methods
# Method Level Visibility Method type Description Created on
1 ADD_CONFLICTS_IF_ANY Instance method Private Method reads available conflicts from the DB 20120201
2 ANALYSE_IMPORT_HISTORY Static method Public Method executes import history analysis 20111129
3 ANALYSE_NEW_IMPORTS Static method Public Method analyses only new imported (after last run) requests 20111201
4 CALCULATE_HASH Instance method Private Method calculates hash string 20120208
5 CHECK_AND_LOG_CONFLICTS Instance method Private Method checks requests for conflicts 20120201
6 CHECK_FOR_CONFLICTS_ABAP Instance method Private Method checks 2 requests for conflicts 20120207
7 CHECK_FOR_CONFLICTS_NON_ABAP Instance method Private Method checks 2 requests for conflicts 20120207
8 CHECK_FOR_DOWNGRADES_FOR_REQS Instance method Public Method checks if any objects of specified request are downgraded 20111108
9 CHECK_REQS_FOR_CONFLICTS Instance method Public Method checks 2 requests for conflicts 20111108
10 CLEAN_KNOWN_CONFLICTS_IF_ANY Instance method Private Method reads available conflicts from the DB 20120201
11 CLEAN_UNKNOWN_CONFLICTS_IF_ANY Instance method Private Method reads available conflicts from the DB 20120201
12 CREATE Static method Public Method creates an instance of the class 20111108
13 FIND_TIME_INTERVAL Static method Public Method finds a time interval to handle a (max) no. of reqs 20111130
14 GET_DOWNGRADED_OBJS Static method Public Method returns downgraded objects for the specified request 20120131
15 GET_REQUEST_INFO Instance method Private Method gets some request information based on CTS_IMPREQ_LAST table 20120207
16 REMOVE_CONFLICTS_IF_ANY Instance method Private Method reads available conflicts from the DB 20120201
17 RESOLVE_CLI_DEP_OBJECTS Instance method Private Method resolves client dependent objects 20120229
18 RESOLVE_TABLE_KEYS Instance method Private Method resolves client dependent objects 20120229
19 START_ANALYSIS_JOB 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 Importing REQ_ID1 Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
2 Importing REQ_ID2 Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
3 Changing 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 Returning ANALYZER Value transfer Object reference (TYPE REF TO) CL_CTS_IMPORTHISTORY_ANALYZER used reference to analyzer of the import history 20120202
2 Importing SID Call by reference Type reference (TYPE) CHAR3 3-Byte field 20111129
3 Importing STARTING_AT Call by reference Type reference (TYPE) CHAR14 Text field length 14 20111129
# Exception Resumable Description Created on
1 CX_CTS_EXCEPTION 20120109

Method ANALYSE_NEW_IMPORTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IMPORTED_AFTER Call by reference Type reference (TYPE) CHAR14 starting point for analysis 20120113
2 Importing SEL_REQS Call by reference Type reference (TYPE) CTS_RSTATES request states for import history analysis 20120201
3 Importing SID Call by reference Type reference (TYPE) CHAR3 system ID 20111201
4 Importing STARTING_AT Call by reference Type reference (TYPE) CHAR14 starting point to find possible repairs 20120125
# Exception Resumable Description Created on
1 CX_CTS_EXCEPTION 20120109

Method CALCULATE_HASH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing APPL_TYPE Call by reference Type reference (TYPE) CHAR120 char120 20120208
2 Returning HASH Value transfer Type reference (TYPE) HASH160 Character field of length 40 20120208
3 Importing OBJECT_ID Call by reference Type reference (TYPE) CSEQUENCE object ID 20120208
4 Importing 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 Importing 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 Returning DWN_OBJECTS Value transfer Type reference (TYPE) CTS_DOWNGRADING_OBJS downgrading objects 20120207
2 Importing REQ1_ID Call by reference Type reference (TYPE) TRKORR Request/Task 20120306
3 Importing 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 Returning DWN_OBJECTS Value transfer Type reference (TYPE) CTS_DOWNGRADING_OBJS downgrading objects 20120207
2 Importing REQ1 Call by reference Type reference (TYPE) STRHI_REQUEST_WD Request/Task 20120207
3 Importing 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 Importing CLI Call by reference Type reference (TYPE) CHAR3 client 20111108
2 Importing 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 Returning DWN_OBJECTS Value transfer Type reference (TYPE) CTS_DOWNGRADING_OBJS downgrading objects 20120201
2 Importing REQ_ID1 Call by reference Type reference (TYPE) TRKORR Request/Task 20111108
3 Importing 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 Importing REQ_ID_IMP_AFTER Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
2 Importing REQ_ID_MAIN Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
3 Changing 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 Importing REQ_ID_IMP_AFTER Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
2 Importing REQ_ID_MAIN Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
3 Changing 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 Returning ANALYZER Value transfer Object reference (TYPE REF TO) CL_CTS_IMPORTHISTORY_ANALYZER analyzer class of import history 20111108
2 Importing REQUESTS Call by reference Type reference (TYPE) IMPORTED_REQUESTS 20111108
3 Importing 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 Importing LAST_RUN Call by reference Type reference (TYPE) CHAR14 timestamp 20111130
2 Importing REQS_MAX Call by reference Type reference (TYPE) I maximum number of requests to handle 20111130
3 Importing SID Call by reference Type reference (TYPE) CHAR3 3-Byte field 20111130
4 Returning START_AT Value transfer Type reference (TYPE) CHAR14 Text field length 14 20111130
5 Importing 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 Returning DOWNGRADED_OBJECTS Value transfer Type reference (TYPE) CTS_DOWNGRADING_OBJS downgrading objects 20120131
2 Importing REQUEST Call by reference Type reference (TYPE) CTS_RSTATE request 20120131
3 Importing 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 Importing CLI Call by reference Type reference (TYPE) CHAR3 client 20120207
2 Returning INFO Value transfer Type reference (TYPE) CTS_IMPREQ_LAST already analyzed (for conflicts) the imported requests 20120207
3 Importing REQUEST_ID Call by reference Type reference (TYPE) TRKORR Request/Task 20120207
4 Importing 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 Importing EXISTING Call by reference Type reference (TYPE) CHAR1 if the second request (potentially) downgrades the first one 20120201
2 Importing REQ_ID1 Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
3 Importing REQ_ID2 Call by reference Type reference (TYPE) TRKORR Request/Task 20120201
4 Changing 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 Importing CLIENT Call by reference Type reference (TYPE) CHAR3 Single-Character Flag 20120306
2 Changing 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 Changing REQUEST Call by reference Type reference (TYPE) STRHI_REQUEST_WD request 20120229
2 Importing 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 Importing 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