SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software SAP ABAP Programming and HANA Database Tutorials
Development resources, articles, tutorials, code samples and tools and downloads for ASP.Net, SQL Server, R Script, Windows, Windows Phone, AWS, SAP HANA and ABAP, like SAP UI5, Screen Personas, etc.

Install SAP Free

ABAP Code Inspector Check Variants for HANA Migration Optimization

SAP developers use ABAP Code Inspector for HANA migration to optimize ABAP codes to prevent and correct performance problems. Before migrating your SAP system to a SAP HANA platform, ABAP developers can follow best practises for code optimization published by SAP. ABAP Code Inspector will help a lot to detect the code statements in custom ABAP codes that might cause performance problems after HANA migration.

In this ABAP tutorial, I want to show ABAP developers how ABAP Code Inspector can be used by creating a sample check variant, how to transport check variants to other systems and SAP reference documents and SAP OSS note which provides predefined check variant for detecting problematic code statements.

Developers can execute SAP transaction SCI to run ABAP Code Inspector report.

Call SAP SCI tcode, initial screen will be displayed.

ABAP Code Inspector SCI SAP transaction

Provide a Check Variant which controls and lists issues related with SAP HANA migration

ABAP HANA migration check variant for Code Inspector

Here is a list of selection items for the SAP HANA Migration critical check variant are as follows.
Performance Checks:
Analysis of WHERE Condition for SELECT
Analysis of WHERE Condition in UPDATE and DELETE
SELECT Statements That Bypass the Table Buffer
Search problematic SELECT * statements
Low Performance Operations on Internal Tables
Low-Perform. Parameter Transfers
Table Attributes Check
Instance Creation of BAdIs
Security Checks
Critical Statements
Use of ADBC Interface
Syntax Check/Generation
Extended Program Check (SLIN)
Robust Programming
Search DB Operations in Pool/Cluster Tables
Search problematic statements for result of SELECT/OPEN CURSOR without ORDER BY
Unsecure use of FOR ALL ENTRIES
User Interfaces
GUI Usability Check
Web Dynpro Component - Standard Check
Web Dynpro Programming Conventions
Screen Check for Usability und Accessibility
Analyse 'SAP Script' documents
Search Functs.
Search ABAP Statement Patterns
Intern. Tests
Depooling/Declustering: Search SELECT for Pool/Cluster-Tables w/o ORDER BY

SAP OSS Note 1935918 provides the Code Inspector check variants for HANA Migration named FUNCTIONAL_DB and FUNCTIONAL_DB_ADDITION. So before migrating to SAP HANA, you can optimize your custom code for HANA in order to get a better performance using these two check variants prepared by SAP for customers.
When ABAP developers select these check variants on SCI transaction and execute Code Inspector, it will display a list of results which developers should take care before migrating to SAP HANA.
If the code inspection was not carried out before first create a new inspection and execute it for the results.

ABAP Code Inspector check for SAP Hana readiness

The return list displays the object name, object type (CLAS, PROG, FUGR), package, check description, message text and line of the code filtered by the code instector SCI. Also responsible person column helps developers to define the related developer for correction.

If you double click on an item in the result, the ABAP developer will be redirected to the place in code where the correction should be done in ABAP Editor.

Most common problems to be corrected for SAP HANA readyness are as follows:
Search problematic SELECT * statements
Depooling/Declustering: Search SELECT for Pool/Cluster-Table
Search problematic statements for result of SELECT/OPEN CURS

Check Description: Search problematic SELECT * statements
Message Text can vary:
Existence check. No fields used
Select-Statement can be transformed. 4.9% of fields used
Incomplete evaluation. 2.0% of fields used

Please read article Select-Statement can be Transformed for optimizing select statement field list for post HANA migration performance.

Check Description: Depooling/Declustering: Search SELECT for Pool/Cluster-Table
Message Text can vary:
SELECT ... FOR cluster table KONV without ORDER BY found

Please read article Select For Cluster Table Without Order By for correcting this kind of problematic Select statement usage for HANA migration optimization.

Check Description: Search problematic statements for result of SELECT/OPEN CURS
Message Text can vary:
LOOP AT itab. EXIT/RETURN/LEAVE ... for result of statement at Include LSVIMFXL line 1461

For optimizing your custom ABAP code in your SAP systems before migrating to SAP HANA, please check following resources and guides:
Best Practices for Transitioning Custom ABAP Code to SAP HANA Tune Your Custom ABAP Code
ABAP on HANA - from analysis to optimization

How to Create Code Inspector Check Variant and Transport in a Workbench Request

In order to create a check variant to transport to other SAP systems, the ABAP developer should create the check variant as Global instead of Local, and mark it as Transportable on SCI Code Inspector transaction screen.
Execute SCI tcode
Type the Check Variant name
Make sure you selected Global icon marked with red rectangle
Press Create icon to continue.

create global and transportable check variant for ABAP Code Inspector

When you passed the initial code inspector screen and reach to second one, mark the Transportable checkbox.
Then select the items listed below that you want the Code Inspector to analyze and perform inspection

create Code Inspector check variant for transport to other SAP systems

On above a global transportable code inspector check variant can be seen. It is Global and Transportable checkbox is selected.
When the check variant is saved, an ABAP Object Directory entry will be created. Select a suitable package for the ABAP program which starts with the check variant name and end with "======VC"
Then you will be prompted to select a transportable Workbench request or will be able to create a new one for the code inspector check variant distribution.

SAP Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table

Meetup Sunumu 1 meetup

Related Articles and Tutorials(http://www.kodyaz.com/sap-abap/create-check-variant-code-inspector-for-hana-migration.aspx)
Complete List of SAP Modules
Create Business Object in SAP
Delete All Data from SAP Database Table
How to Upload Data to SAP from Excel File using alsm_excel_to_internal_table Function Module
Upload Data from Excel File in ABAP using TEXT_CONVERT_XLS_TO_SAP
Email Spool Request using SAPOffice - Spool to PDF
How to Create SAPScript Text using SO10 Transaction Code
How to Display SAP Graphics using SE78 Transaction Code
SAP Tutorial - Convert Spool Request to PDF File using RSTXPDFT4 ABAP Report
ABAP Debugging using Log Point and Break Point
ABAP Runtime Error ST22 Transaction using Short Dump Analysis
ABAP Shared Memory Objects Tutorial with Sample ABAP Code
ABAP Try Catch for exception is neither caught Code Inspector Error
Add Web Dynpro Applications to SAP Favorites Menu
Free Adobe LiveCycle Designer Download
ABAP Authority-Check Object For User Other Than Current
SAP Code Inspector for ABAP Break-Point Statement
Call Function Module using RFC Destination in ABAP
Change Fields for Selection in SE11 ABAP Data Browser
Compare Code in ABAP using SE39 SplitScreen Editor
Connect SAP from Eclipse using ABAP Project
Convert Smartform to PDF in Print Preview Mode
Convert the table using the Database Utility (SE14)
Convert Sales Unit into Text using Function Module in Target Language
ABAP Code Inspector Check Variants for HANA Migration Optimization
Create SAP Dynamic Variant using Date Calculation
Create Scheduled Job using SAP SM36 Transaction
Create Search Help in ABAP for Web Dynpro Component
Create Transaction Code for Web Dynpro Application
Create SAP Transaction to Maintain ABAP Table using SM30
Create Transport Request for Text Translations using RS_LXE_RECORD_TORDER
Database Hint Pseudo-Comment for SAP Code Inspector
List Locks in SAP system using SM12 Transaction Code
Prevent DYNPRO_SEND_IN_BACKGROUND Error in Background Process
Enable Remote Debugging in ABAP using RSRDEBUG
How to Execute SAP Program in Background Task
Export Graphics from SE78 SAP Form Graphics Administration using ABAP program
How to Export IDOC as Excel and Save as Local File from WE02 Transaction
Export SAP Spool Requests as PDF using SP01 Transaction
How to Find SAP Role Users Assigned for Transaction Code
Export SAP Data to Fixed Length Text File
How to Delete Standard Text using SO10 SAP Transaction
How to Find User Exits in ABAP Codes of SAP Transaction
How to Transport SAP Graphics using SE78 Transaction
Import and Export SO10 Standard Text using RSTXSCRP ABAP Program
Main program for include RV61Bxxx not found
Business Document Service Error: Error when accessing graphic (BDS), RC = 5
Get SAP Document Flow using SD_DOCUMENT_FLOW_GET ABAP Function Module
SAP Purchase Order Tables, Transaction Codes and Output
Graphics White Background Displayed Grey on SAP Smartform Output
Export Table Contents into Text File and Download File
SE63 Smartform Translation and Export using SLXT Program
Search and Find SAP Transaction Code using SE93 or SEARCH_SAP_MENU
SAP Code Inspector Error: Select For Cluster Table Without Order By
SAP Code Inspector: Select-Statement can be Transformed
How to Set Start Transaction in SAP GUI
Unicode Character Problem in IFS File Interface
Web Dynpro Text Translation using Assistance Class
Transport Variants of an ABAP Program into Workbench Request
TVAP Item Category and SAP Table TVAPT for Text Translations
Unlock Objects Locked in Request or Task using Transport Organizer Tools
Code Inspector: Unsecure use of FOR ALL ENTRIES
Update Database Table Data using ABAP SE16N_INTERFACE
VF31 SAP Transaction to Reprocess Billing Output Messages
Function module is not released for the Internet

Copyright © 2004 - 2020 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems