07-17-2008 5:29 AM
Hi gurus,
iam fetched some fields amount now i want to write it in differrent languages,
how can i do this ,if i want to display it in other than logon lang.
iam using parameter for lang.
help
thanks
deepak
07-17-2008 7:33 AM
Hi,
Check this:
PARAMETER :
p_lang TYPE t002-spras.
DATA:
w_word LIKE spell,
w_out TYPE c.
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'
EXPORTING
input = p_lang
IMPORTING
output = w_out
EXCEPTIONS
unknown_language = 1
OTHERS = 2.
IF sy-subrc EQ 0.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = 1230
currency = ' '
filler = ' '
language = w_out
IMPORTING
in_words = w_word
EXCEPTIONS
not_found = 1
too_large = 2
OTHERS = 3.
ENDIF.
WRITE: w_word-word.
Regards
Adil
07-17-2008 5:32 AM
07-17-2008 5:33 AM
tellme the fields which you want to display it in the differenet languages bcoz the description will be in the tables starting with T1*
etc.. do reply with complete details of your fields.
07-17-2008 7:33 AM
Hi,
Check this:
PARAMETER :
p_lang TYPE t002-spras.
DATA:
w_word LIKE spell,
w_out TYPE c.
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'
EXPORTING
input = p_lang
IMPORTING
output = w_out
EXCEPTIONS
unknown_language = 1
OTHERS = 2.
IF sy-subrc EQ 0.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = 1230
currency = ' '
filler = ' '
language = w_out
IMPORTING
in_words = w_word
EXCEPTIONS
not_found = 1
too_large = 2
OTHERS = 3.
ENDIF.
WRITE: w_word-word.
Regards
Adil