Skip to Content
avatar image
Former Member

how to detect hana studio environment?

I have an sapui5 code on HANA studio and would like to know how I can programatically tell if I'm in Dev, test or Prod environment. Is there a way to do this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 29, 2017 at 01:08 AM

    Hi,

    Not sure if that's what you need but you can get the system_usage property on the database directly:

    select system_id, usage from "PUBLIC"."M_DATABASE" 

    Usage types on HANA are: production|test|development|custom

    BRs,

    Lucas de Oliveira

    Add comment
    10|10000 characters needed characters exceeded