cancel
Showing results for 
Search instead for 
Did you mean: 

how to detect hana studio environment?

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

lucas_oliveira
Advisor
Advisor

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