Taking ABAP to HANA Flashcards
A HANA database can be connected as a secondary database as a business accelerator using what t-code
DBACOCKPIT
How is a secondary Database accessed using Open SQL?
With the keyword CONNECTION. The table/view being referenced must exist in the ABAP dictionary of the main DB.
What should be done with existing native SQL statements? (EXEC SQL)
See if the can be replaced with open sql. If not, they will need to be replaced with sap hana native sql
What should be done with database hints when upgrading to HANA
Remove them. They will be ignored anyway
What should be done with pooled and cluster tables when upgrading to HANA
Adapt the code and convert the pooled or cluster tables to transparent tables
In select statements in HANA the data will always be returned in the primary key order?
No no no! The order will be entirely random unless you specify an order by in the select clause or select the results into a sorted internal table. or a table with a sorted secondary key
What tool can be used to check for potential issues before upgrading to HANA
SCI (code inspector) can be used to identify these things
What global variant for SCI is provided by sap for HANA checks?
FUNCTIONAL_DB
What tool can be used to continually use code inspector
ATC (ABAP test cockpit) can be used to schedule SCI runs
What process can be run in the current production system to log a limited range of potential issues as they happen
Run time check monitor tcode (SRTCM)
Only checks for “For all entries” without an empty table check
and Select into statements without an order by
Post upgrade if performance issues are noted what should be done before making code changes?
A performance analysis using SAT (replaces SE30)
And an SQL trace (ST05)
Is there a tool in Eclipse to assist with performance analysis?
Yes, open perspective “ABAP Profiling” It provides;
An overview of percentage spent in ABAP and DB
A hit list of the most time consuming methods or functions
Database accesses
ABAP Trace call
A call time line view
What is the Performance Tuning Worklist and the SQL
SQL Performance Worklist (SWLT) and (SQLT) can run on a Production system to give information (as a worklist). It combines the static checks of ATC with the real time checks of the SQL Monitor
Where does the new SQL monitor store its results?
The data is moved by a batch job into SQLM tables
What are the five golden performance rules of SAP development?
1) Keep the result sets small
2) Minimize the amount of data transferred (more important in HANA)
3) Minimize the number of database accesses (More important in HANA)
4) Minimize search overhead (Less important in HANA)
5) Keep unnecessary load away from the database (Less important in HANA)