11-07-2007 5:26 AM
Hi,
I am doing a sapscript for check printing. I finished it in english. The figure which is coming is being converted to words. Example 1,550.00 - one thousand five hundred and fifty. My problem is they want this text which the system converting figures into words to be coverted into arabic text. For above conversion i used function module SPELL_AMOUNT' with this FM the figure is converted to english words. How can i convert the figure into arabic. Kindly help me out. Thanks in adv.
Regards,
Ram
11-07-2007 5:44 AM
Hi
in the FM SPELL_AMOUNT you can specify the langauage you need....(import parameter language).. hop this will help
11-07-2007 5:50 AM
Hi Ram,
U use the following code.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = i_amt
CURRENCY = ' '
FILLER = ' '
LANGUAGE = 'AR' " for convertion in arabic
IMPORTING
IN_WORDS = i_word
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
If it is usefull pls reward points.
Regards
Srimanta
11-07-2007 6:10 AM
In the function module SPELL_AMOUNT in language i kept 'AR'. but it is not working. it is going to dump. it is giving message as
{ The call to the function module "SPELL_AMOUNT" is incorrect:
The function module interface allows you to specify only
fields of a particular type under "LANGUAGE".
The field "'AR'" specified here is a different
field type }.
It is allowing me to declare only SY-LANGU in the FM. Any suggestion how to change the text language kindly.
regards
Ram
11-07-2007 6:13 AM
Hi
I think the Languagae AR is not active in your system
Ask your basis persone to make it active.
then use it and see
Regards
Anji
11-07-2007 7:14 AM
I changed the code.
SY-LANGU = 'AR'.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = MAMT
CURRENCY = MCUR
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = MSPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MWORDS = MSPELL-WORD.
It is not going to dump. It is giving a message
Entry AR 6 1 in table T015Z does not have a
delimiter (
In place of AR if i keep EN it is going to print. I talked to basis person. he is saying that where to activate the language arabic in the system. wht is the solution for this. kindly help me.
regards,
Ram
11-07-2007 7:46 AM
any solution for getting the arabic text to be printed. kindly help me to find the solution
11-07-2007 8:08 AM
where can i do activation of language for arabic. kindly suggest me