0

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?

Boghyon Hoffmann
  • 17,103
  • 12
  • 72
  • 170
polaris
  • 339
  • 2
  • 14
  • 33

1 Answers1

0

You can use the system view M_DATABASE as documented here.

In column USAGE you can find whether the system is used for production, test, development, demo, ...

SAP HANA Studio uses this information to set the UI colour differently for production systems and to provide additional confirmation dialogues when changing data.

Lars Br.
  • 9,949
  • 2
  • 15
  • 29