Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get user's login language in ABAP?

Former Member
0 Kudos

Hi all,

Can you please help me how to retieve langauge of the current user login in ABAP code

THanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Song,

All the system related fields, as user-name, its language extra are available at run time in SYST structure. So you can get these values using sy-<field name>.

In your case for language it is sy-langu.

Regards,

Atish

5 REPLIES 5

Former Member
0 Kudos

Hello,

Sure....try with SY-LANGU.

Bye

Gabriel

rodrigo_paisante3
Active Contributor
0 Kudos

Hi,

Try: sy-langu

Regards,

RP

mohammed_moqeeth
Active Participant
0 Kudos

Hi Yang,

<u>You can retrieve language of current user in ABAP code as coded below:</u>

<b>DATA LOGIN_LANGU TYPE SY-LANGU.

LOGIN_LANGU = SY-LANGU.

WRITE / LOGIN_LANGU.</b>

Cheers !

Moqeeth.

Former Member
0 Kudos

Hi Song,

All the system related fields, as user-name, its language extra are available at run time in SYST structure. So you can get these values using sy-<field name>.

In your case for language it is sy-langu.

Regards,

Atish

0 Kudos

Thank all of you