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: 

SAP Script

Former Member
0 Kudos

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

7 REPLIES 7

former_member624107
Contributor
0 Kudos

Hi

in the FM SPELL_AMOUNT you can specify the langauage you need....(import parameter language).. hop this will help

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

any solution for getting the arabic text to be printed. kindly help me to find the solution

0 Kudos

where can i do activation of language for arabic. kindly suggest me