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: 

sy-langu shows only beginning charcter than 2 charcters

Former Member
0 Kudos

hi,

SY-LANGU uses only one charcter.

Eq: in my program i am using sy-langu. While saving it saves as 'E' rather than 'EN'.

Could you explain on this.

1 ACCEPTED SOLUTION

Sm1tje
Active Contributor
0 Kudos

Due to conversion exit.

Function modules

CONVERSION_EXIT_ISOLA_INPUT Convert two-digit ISO language -> one-digit SAP language key

CONVERSION_EXIT_ISOLA_OUTPUT Convert One-digit SAP Lang. Key to Two-digit ISO Lang. Key

Edited by: Micky Oestreich on May 7, 2009 9:25 AM

10 REPLIES 10

Sm1tje
Active Contributor
0 Kudos

Due to conversion exit.

Function modules

CONVERSION_EXIT_ISOLA_INPUT Convert two-digit ISO language -> one-digit SAP language key

CONVERSION_EXIT_ISOLA_OUTPUT Convert One-digit SAP Lang. Key to Two-digit ISO Lang. Key

Edited by: Micky Oestreich on May 7, 2009 9:25 AM

GauthamV
Active Contributor
0 Kudos

use these.

CONVERSION_EXIT_ISOLA_INPUT

CONVERSION_EXIT_ISOLA_OUTPUT

Former Member
0 Kudos

You can see the langu fiels in the SYST structure in SE11. Its is of 1 character therefore it stores only E of EN.

For EN it use the conversion routine ISOLA which has 2 length output.

Hope its clear.

0 Kudos

Could you tell how can i display 2 characters

Eq:

for 'E' i should display 'EN'.

0 Kudos

For that you should use the conversion routines mentioned above.

0 Kudos

HI

Use FM 'CONVERSION_EXIT_ISOLA_OUTPUT'

Kiran

0 Kudos

as mentioned in the above answers use,

CONVERSION_EXIT_ISOLA_OUTPUT,

in the parameter INPUT pass 'E'

You will get 'EN' in output.

0 Kudos

data lang(2).

CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'

EXPORTING

INPUT = 'E'

IMPORTING

OUTPUT = lang.

The lang will now have EN

0 Kudos

Use like below.

REPORT ztest.

DATA: lang TYPE sy-langu,

str(2) TYPE c.

lang = sy-langu.

CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'

EXPORTING

input = lang

IMPORTING

output = str.

write:/ str.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

select LAISO from T002 into l_lan where SPRAS = 'E'.

Then En will be fetched.