Skip to Content
avatar image
Former Member

iIs it possible to get logon language in the system variable similar to sy-langu in ABAP ?

Hello All,

We already know that by using this we can get the system lang --


But I want to have this information as a calculated column in analytical view so that I can filter my table based on this.

Please help me .



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 28, 2013 at 08:06 AM

    Hello Sharath,

    I don't think that you actually want the logon language to be part of your table.

    What you want to do - or what would make sense here - is: you want to filter your data, based on the logon language settings of the current session.

    That's easy to have. Just implement a filter for a language column (single character) that equals to "$$language$$".

    That's how e.g. text joins work.

    - Lars

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Cherry,

      actually LOCALE does not provide the locale information in POSIX format, but in whatever format was specified during logon by the client app.

      For SAP HANA Studio this is a JAVA (Locale (Java Platform SE 7 ) which is mostly in the form of <lang>_<country> (e.g. en_US).

      The SAP HANA contents are saved with just the language code provided (two or three letters).

      This means, you could simply do a substring and use only the language part of your LOCALE settings.

      Besides that, I am not too sure about your requirement. Why do you think it's necessary to access internal repository tables? Had you have a look into the translation tools for the repository objects (rtt folder in your SAP HANA client installation)?

      - Lars