1

There is requirement that if backend database is HANA DB the system trigger a update operation. otherwise the db is non-HANA db the system raises an error.

How to determine whether backend database is HANA DB in ABAP codes?

Thanks & Regards

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
L.Alexander
  • 23
  • 1
  • 4

1 Answers1

4

Check CL_DB_SYS=>DBSYS_TYPE - if it is HDB, you're on a HANA system. Be sure to read the documentation of that attribute.

vwegert
  • 18,371
  • 3
  • 37
  • 55
  • BTW, SY-DBSYS also can be used to retrieve the db type. – L.Alexander May 08 '17 at 08:12
  • Yes - read the documentation, CL_DB_SYS also tells you when you should care about it or rather when you should NOT attempt to go native, for example because you're in the middle of an upgrade... – vwegert May 08 '17 at 10:19