Skip to Content
author's profile photo Former Member
Former Member

How ABAP report can recognize if SAP HANA is underlying database?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2013 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2015 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.