09-23-2013 1:20 PM
HI,
I remember that some FM do the job but unfortunately I forgot where I sow it and its name
Can any anyone recall its name? Or maybe there is another way to recognize SAP HANA inside ABAP report?
Regards
Pawel
09-23-2013 4:41 PM
Hi,
on the one hand side, in all releases there is the system field sy-db which can be used to check for the value 'HDB'.
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.
Regards,
Eric
09-23-2013 4:41 PM
Hi,
on the one hand side, in all releases there is the system field sy-db which can be used to check for the value 'HDB'.
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.
Regards,
Eric
09-24-2013 8:26 AM
Thanks a lot Eric,
A you can see, sometimes the head flying in the sky can overlook the solution lying just a step away (sy-dbsys)
Regards
Paweł
10-20-2015 8:55 AM
Exactly, SY-DBSYS does the trick.
One can use RFC_SYSTEM_INFO to check the DB via RFC. The value we are interested in is RFCSI_EXPORT-RFCDBSYS = HDB.
cheers Otto
10-20-2015 9:28 AM
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.
Regards, Christian