cancel
Showing results for 
Search instead for 
Did you mean: 

amount in words-sap script

Former Member
0 Kudos

hi all,

i have one issue,

in script the total amount in word is not comming complet

ex. 18880

In words-

Eighten thousand eight hundred eight

but in script it is printing --- Eighten thousand eight it is not piinting remaning text.

suggest what to do,

plz its urgent.

Regards,

Amit.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Amit,

There's no sapscript command to covert number to word, you've to do it in print program.

In the sapscript form

use

/:PERFORM GET_DATA IN PROGRAM Ztest

/:USING &amt&

/:CHANGING &word&

/:ENDPERFORM

and in the Print Program

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = amount

CURRENCY = 'HKD'

FILLER = ' '

LANGUAGE = 'E'

IMPORTING

IN_WORDS = word

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3.

Hope this helps

VB

Answers (3)

Answers (3)

Former Member
0 Kudos

Hii amit

the field in which ur storing the word should be of length(100)

then it u will get the entire amt in words

regards

Jaipal

SantoshKallem
Active Contributor
0 Kudos

HR_IN_CHG_INR_WRDS

This function module gives in indian format

check the length of ur parameter

regards.

santhosh reddy

reward if useful

Edited by: Santhosh Reddy on Jan 31, 2008 1:38 PM

Former Member
0 Kudos

Hi,

using spell_amount we can displayamount in words .

but while giving word import parameter you have to check length of that field.

Increase length of word import parameter.

reward points.