Thursday, September 25, 2014

How to check whether your ABAP NetWeaver is HANA DB based?

Tonight this will be just very short blog post. It is about how to check whether SAP system is running on HANA. In particular how to check that within ABAP program. We can use following statements.


Option 1: Classic way:

IF sy-dbsys NE 'HDB'.
  
MESSAGE i398(00WITH 'this is not HANA'.
ENDIF.



Option 2: More sophisticated way J


IF cl_rs_utilities=>is_hdb_system( ) <> rs_c_true.
  
MESSAGE i398(00WITH 'this is not HANA'.
ENDIF.

Related posts:

No comments: