Identify Whether Underlying Database is HANA Database

How to identify whether the underlying database is a HANA database or not?
 
In ABAP 7.4, there is in addition the class CL_DB_SYS (SAP_BASIS) which can be also used for detecting SAP HANA. This has the advantage to benefit from where-used lists for detecting the coding relying on such a distinction.
 
Coding example:
 
IF cl_db_sys=>is_in_memory_db = abap_true.
 
     WRITE: 'HANA DB'.
 
ENDIF.
 
or
 
SY-DBSYS
 
One can use RFC_SYSTEM_INFO to check the DB via RFC. The value we are interested in is RFCSI_EXPORT-RFCDBSYS = HDB
 
or
 
SAP professional can use the SAP System Status screen to check the database system on which the SAP system is running on.
 
When you are logged on to the target SAP system, within SAP GUI you can use top menu for: System > Status...
 
On System Status screen there is Database data section where the Database System is displayed. If the underlying database is SAP HANA Database, it is displayed as HDB

HANA Database

or
 
Maybe you are interested in SAP HANA as the underlying database because you want to use one of its features. Then the class CL_ABAP_DBFEATURES should be used to check whether a particular feature is available or not.

ABAP Tips

Fast Links:
A Sample ALV Program 
ALV Reporting - Z_LIST_MATERIALS

Get help for your ABAP problems
Do you have a ABAP Question?

SAP Books
SAP Certification, Functional, Basis Administration and ABAP Programming Reference Books

More ABAP Tips

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.