cancel
Showing results for 
Search instead for 
Did you mean: 

need of printing currency in words

Former Member
0 Kudos

hi guru's,

i hav a need to print total amount in words in sap script , how can i ?

eg : tot amt = Rs 1000 ( in figures)

in words : one thousand rupees only .

i hope i'l get the answer.

with regards.

Narasimha.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Lakshmi,

try it plx

DATA v_int TYPE i VALUE '1000'.

DATA words LIKE SPELL.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = v_int

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = words

.

WRITE words-word.

Regards,

Allan Cristian

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

use this F.M

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

EXPORTING

amt_in_num = SUM

IMPORTING

AMT_IN_WORDS = WORDS

  • EXCEPTIONS

  • DATA_TYPE_MISMATCH = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Former Member
0 Kudos

I can't convert ne number of more than 1 lakh in words...pls help this issue.

Former Member
0 Kudos

Hi,

Check with spell_amount.

Assign points if useful.

Former Member
0 Kudos

hi,

Use the FM <b>SPELL_AMOUNT</b>

reward points.

regards,

sujatha.