Table of Contents

Open all
Close all
Acknowledgments
13
Introduction
15
1 Custom Code Management and Methodology
19
1.1 Defining Good Code
20
1.1.1 Accuracy
20
1.1.2 Readability
20
1.1.3 Testability
22
1.1.4 Software Architecture
22
1.2 Types of Custom Code
23
1.2.1 Enhancement
23
1.2.2 Modification
23
1.2.3 Clone
24
1.2.4 Customer Development
24
1.3 Why Custom Code Management Is Important
24
1.3.1 Reduction of Support Costs
25
1.3.2 Ability to Identify Valuable Custom Code
25
1.3.3 Avoid Opportunity Costs of Missed Innovation
25
1.3.4 Avoid Increased Risk and Testing Overhead during Upgrades
25
1.4 SAP Solution Manager Methodology: The Four Phases
26
1.4.1 Custom Code Transparency
27
1.4.2 Custom Code Control
27
1.4.3 Custom Code Optimization
27
1.4.4 Custom Code Reporting
28
1.5 Creating an SAP Solution Manager Business Blueprint
28
1.5.1 Creating the SAP Solution Manager Business Blueprint Structure
28
1.5.2 Selecting an SAP Solution Manager Project Accelerator
31
1.5.3 Selecting the Process Steps from the Business Process Repository
32
1.5.4 Using the Business Blueprint
35
1.5.5 Using the Roadmap and Accelerator
37
1.5.6 Extracting the Custom Code Project into Other Formats
38
1.6 Summary
42
2 Custom Code Transparency
43
2.1 Reverse Business Process Documentation
44
2.1.1 Uploading the RBPD Content
44
2.1.2 Performing an Analysis Run in the Solution Documentation Assistant
48
2.1.3 Checking the Run
53
2.1.4 Checking the Results of the Analysis Run in SAP Solution Manager
55
2.1.5 Creating the SAP Solution Manager Business Blueprint for the Analysis
57
2.1.6 Attaching Custom Code from the Analysis Run to the SAP Solution Manager Business Blueprint
60
2.1.7 Enriching the SAP Solution Manager Business Blueprint with Additional Custom Code Details
63
2.1.8 Enhanced Business Process Modeling
64
2.1.9 Configuring and Printing Custom Code Documentation
66
2.2 Custom Code Lifecycle Management (CCLM)
69
2.2.1 CCLM Prerequisites
69
2.2.2 Uploading the CCLM Content
70
2.2.3 Activating the CCLM Collection Jobs
74
2.2.4 Using the CCLM Object List
78
2.2.5 The Overview List
80
2.3 SAP Guided Self-Services
81
2.3.1 Transport Execution Analysis (TEA)
82
2.3.2 TEA Prerequisites
82
2.3.3 Uploading the TEA Content
83
2.3.4 Checking for Missing Notes and Solution Tools Updates
84
2.3.5 Data Collection and Process Flow—Preparing the Session
84
2.3.6 Data Collection and Process Flow—Performing the Session
89
2.3.7 Data Collection and Process Flow—Preparing the TEA Report
93
2.4 Service Summary—Results of Running a TEA Report
100
2.4.1 Action Plan
101
2.4.2 Custom Code Maintainability
106
2.4.3 Usage Statistics
110
2.4.4 SAP Software Maintenance
112
2.4.5 Import History
113
2.4.6 System Landscape and TMS Settings
117
2.4.7 Transports
125
2.4.8 Testing and Runtime Errors
133
2.4.9 Transport Landscape Consistency
137
2.5 Summary
143
3 Custom Code Control
145
3.1 Testing and Monitoring Overview
146
3.2 SAP Coverage Analyzer (SCOV)
147
3.2.1 SCOV Activation
148
3.2.2 Confirmation That SCOV Is Running
150
3.2.3 Using SCOV to Determine Test Coverage
152
3.2.4 Global View for Aggregated Data
155
3.2.5 Global View for Detailed Data
156
3.3 SAP Coverage Analyzer Lite (SCOV Lite)
158
3.3.1 Prerequisites
159
3.3.2 Extractor Framework Activation
159
3.3.3 SAP Solution Manager BI Content Activation
160
3.3.4 Confirmation That SCOV Lite Is Running
162
3.3.5 Using SCOV Lite to Determine Object Usage
163
3.4 Other Technologies to Track Custom Code Usage
164
3.4.1 SAP Solution Manager IT Performance Reporting
165
3.4.2 SAP Solution Manager EarlyWatch Alert Reports
167
3.4.3 SAP Global Workload Monitor
168
3.5 SAP Continuous Quality Checks
169
3.5.1 SAP Custom Code Maintainability Check (CCMC)
170
3.5.2 SAP Modification Justification Check (MJC)
171
3.6 SAP Enterprise Support Advisory
172
3.7 Service Summary—Custom Code Results of Running an ESR Report
173
3.7.1 What This Section Does
174
3.7.2 Protection of Investment and Accelerated Innovation
176
3.7.3 Business Continuity
182
3.7.4 Business Process Improvement
183
3.7.5 Total Cost of Operations
187
3.8 Summary
191
4 Custom Code Optimization
193
4.1 SAP Custom Code Analysis
194
4.1.1 Running CCA
195
4.1.2 SAP Clone Finder
196
4.1.3 SAP Interface Analysis
204
4.1.4 SAP Reference Analysis
207
4.1.5 SAP Modification Overview
208
4.1.6 Custom Code Remote Compare
211
4.1.7 Top20 Customer Object Analysis
213
4.1.8 T-Code Similarity
214
4.2 Custom Development Management Cockpit
216
4.3 The CDMC Process
217
4.3.1 The CDMC Clearing Analysis (CA)
218
4.3.2 Upgrade Change Impact Analysis (UCIA)
223
4.3.3 Change and Transport Analysis (CTA)
227
4.4 Business Process Change Analyzer
230
4.4.1 Custom Code Defined in the SAP Solution Manager Business Blueprint
231
4.4.2 Creation of Technical Bill of Materials
232
4.4.3 Perform the BPCA
233
4.4.4 Check the BPCA Results
235
4.4.5 Test Scope Optimization
236
4.5 Code Inspector
237
4.5.1 The Check Variant
238
4.5.2 The Object Set
240
4.5.3 Creating and Running an Inspection
241
4.5.4 Using and Analyzing the Results
243
4.5.5 Creating Your Own Checks in the Code Inspector
244
4.6 Summary
251
5 Custom Code Reporting
253
5.1 Initial Steps
254
5.2 Accessing the SAP Delivered Custom Code Dashboards
254
5.2.1 Usage of Custom Code Objects
257
5.2.2 Severity of Custom Code Objects
258
5.2.3 Quantity of Custom Code Objects
259
5.2.4 Quality of Custom Code Objects
260
5.2.5 Criticality of Custom Code Objects
261
5.3 The Continuous Improvement Dashboard
262
5.3.1 Using the Graphs
270
5.3.2 Creating a Composite Dashboard
273
5.4 Creating Your Own Custom Code Dashboards
274
5.4.1 Using a BAdI as a Data Source for an Existing SAP Business­Objects Application
275
5.4.2 Provide Data with GET_CONTENT
278
5.5 Proofing Your Dashboards for Future Use
279
5.6 CCLM Reports
280
5.6.1 CCLM SAP Solution Manager BW Reports
281
5.6.2 CCLM Ad Hoc Reports
283
5.7 Summary
286
Appendices
289
A Further Resources
291
A.1 SAP Solution Manager Pulse Check
291
A.2 SAP Expert Guided Implementation
293
A.3 SAP Meet the Expert Sessions
295
A.4 SAP Best Practice Documents
296
A.5 Other Helpful Links
297
A.6 Transaction Codes
299
A.7 Dashboards
300
A.8 ABAP Reports
302
A.9 SAP Services
302
B SAP Solution Manager Navigation Principles
303
B.1 SAP Solution Manager Work Centers
303
C Upcoming Functionality and Enhancements to Help Manage Custom Code
307
C.1 ABAP Test Cockpit (ATC)
307
C.2 SAP Solution Manager Dashboards: Upcoming Enhancements
309
C.3 Further CCLM Integration
311
C.4 Custom Code Testing Improvements
312
D Calculating Cohesion
313
D.1 Example Calculation
313
D.2 Source Code Listing
315
E A Discussion on Writing Custom Code
321
E.1 Writing Accurate Code
321
E.2 Writing Readable Code
323
E.3 Writing Testable Code
329
E.4 Software Architecture
335
E.5 Final Word
342
F The Authors
343
Index
345