Skip to Content
0

how to detect hana studio environment?

Mar 28, 2017 at 08:42 PM

46

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Lucas Oliveira
Mar 29, 2017 at 01:08 AM
2

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

Share
10 |10000 characters needed characters left characters exceeded