cancel
Showing results for 
Search instead for 
Did you mean: 

Amount in words in Smart form

Former Member
0 Kudos

My requirement is to print the sales order details.In dat in last page i hav to get the amount in words of total value with in Smart form.

Tanx,

Santu.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Use the FM SPELL_AMOUNT.

  CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
            AMOUNT    = PAMOUNT
            CURRENCY  = PWAERS
            FILLER    = SPACE
            LANGUAGE  = 'E'
       IMPORTING
            IN_WORDS  = T_SPELL
       EXCEPTIONS
            NOT_FOUND = 1
            TOO_LARGE = 2
            OTHERS    = 3.

Hope this helps.

Regards,

Richa

anversha_s
Active Contributor
0 Kudos

hi,

U can use this FM.

data: words(50) type c.
 
call function 'HR_IN_CHG_INR_WRDS'
     exporting
          amt_in_num   = '100000'
     importing
          amt_in_words = words.
 
 
write:/ words.

Rgds

Anversah

Former Member
0 Kudos

Hi santosh,

u can use function module SPELL_AMOUNT to spell amount in words...

just pass the amount value in that function module and select language as SY-LANGU.

u will get amount in words...

this will solve ur problem...

Please reward points in case usefull....

Regards,

Prashant

former_member196280
Active Contributor
0 Kudos

USe FM 'HR_IN_CHG_INR_WRDS' "It displays Lakhs

'SPELL_AMOUNT' " It displays in Million.

Reward points if useful.

Regards,

SaIRam

Former Member
0 Kudos

Hi Santosh,

There is one function module and the explanation to this is given below.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

EXPORTING

amt_in_num = var_tot1

IMPORTING

amt_in_words = v_total

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.

Here (a) <b>var_tot1 is the vbrp-netwr basically a currency field</b>.

(b) <b>v_total is a character type length 64 (string) field</b> which holds the words for number in var_tot1.

Hope this solves your query.

Reward points if useful.

Thanks,

Tej..

Former Member
0 Kudos

Hello,

Use the FM <b>SPELL_AMOUT</b>