05-07-2009 8:21 AM
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.
05-07-2009 8:24 AM
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
05-07-2009 8:24 AM
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
05-07-2009 8:25 AM
use these.
CONVERSION_EXIT_ISOLA_INPUT
CONVERSION_EXIT_ISOLA_OUTPUT
05-07-2009 8:25 AM
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.
05-07-2009 8:27 AM
Could you tell how can i display 2 characters
Eq:
for 'E' i should display 'EN'.
05-07-2009 8:28 AM
05-07-2009 8:29 AM
05-07-2009 8:30 AM
as mentioned in the above answers use,
CONVERSION_EXIT_ISOLA_OUTPUT,
in the parameter INPUT pass 'E'
You will get 'EN' in output.
05-07-2009 8:32 AM
data lang(2).
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT'
EXPORTING
INPUT = 'E'
IMPORTING
OUTPUT = lang.
The lang will now have EN
05-07-2009 8:32 AM
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.
05-07-2009 8:27 AM
Hi,
select LAISO from T002 into l_lan where SPRAS = 'E'.
Then En will be fetched.