cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice in smartform

Former Member
0 Kudos

Hii everyone,

im Using standard form for invoice main window,

i want to print " total ammount in words " at the end of the main window , which will be varying as per the number of records retrived,

could any one suggest how to acheve this,

thanks in advance

Ravi

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks every body

Former Member
0 Kudos

Hi,

You can also use function Module 'HR_IN_CHG_INR_WRDS'.

Reward if useful.

Thanks

Swati.

Former Member
0 Kudos

Hi,

use FM SPELL_AMOUNT.

Pass the variable

and get the amount in words.

Regards

Sandipan

venkat_o
Active Contributor
0 Kudos

Hi Ravi, Use the Function Module SPELL_AMOUNT to convert the integer into text.

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, Venkat.O

Former Member
0 Kudos

Hi,

Use the function module SPELL_AMOUNT to convert the amount in words in driver program.

And pass this object to smartform function module. Use this in main window.

Regards,