cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP-Printing values in words in Scripts

Former Member
0 Kudos

Dear all,

If i have made a Zscript Can i include functionalities like converting the amount into words etc.

For Ex If the total amount is 1200 Rs and 85 Paise (1200.85) If i want to print it in words with appropriate currency, what i need to do?

I really appreciate a detailed answer on this.

Thanks and Regards

Shrinivas

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Dec 23, 2008 10:11 AM

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Kudos

Hi,

Do the necessary coding in the driver program, and store the values in a variable, and in script give that variable. If it is a standard driver program, use a subroutine for that script, using PERFORM statement.

Use this FM for conversion to words

SPELL_AMOUNT

Regards

Bala Krishna

Former Member
0 Kudos

Hi,

What coding will be required in Driver program?

Regards

Shrinivas

Former Member
0 Kudos

Dear Bala,

In a single script I need to convert 3 amounts to amount in words,,,will the same stuff work for it?

Regards

Shrinivas

former_member585060
Active Contributor
0 Kudos

Hi,

It will work, are you using Standard driver program or custom driver program?

Regards

Bala Krishna

Answers (2)

Answers (2)

Former Member
0 Kudos

u can use any of the FM

HR_IN_CHG_INR_WRDS

SPELL_AMOUNT

simply pass ur amount and get the amount in words

Former Member
0 Kudos

hi srinivas,

FM spell_amount will not return in indian format if u want it in indian format use this HR_IN_CHG_INR_WRDS .hope it suits ur requirement.

Regards,

Sumanjeet