cancel
Showing results for 
Search instead for 
Did you mean: 

Amount in words in F110 (sapscript -indian format)

Former Member
0 Kudos

Hi Experts.

I have changed the F110_PRENUM_CHCK to Z110_PRENUM_CHCK .

I want the amount to be in word in indian format.

say Ten Lakh ninty thousand and fifty

But i am getting the output in "One millon .. " format

Pls give me the coding and also suggest me how to incorporate in sapscript .

Window CHECKSPL

545

-


Amount in words -


&'*** 'SPELL-WORD& &' and 'SPELL-DECWORD&***

Example for amount and decimal places in words

&'*** 'SPELL-WORD& &REGUD-WAERS&&' and 'SPELL-DECWORD' Cents'& ***

Example for numbers in words

&SPELL-DIG06(6)&&SPELL-DIG05(6)&&SPELL-DIG04(6)&&SPELL-DIG03(6)&&SPELL-DIG02(6)&&SPELL-DIG01(7)&

Pls revert back its urgent

Thanks

Pravesh Deshbhratar

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

answer

Former Member
0 Kudos

i got it

v_i_amount = tmp_amt.

call function 'HR_IN_CHG_INR_WRDS'

exporting

amt_in_num = v_i_amount

IMPORTING

AMT_IN_WORDS = amt_in_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_member181995
Active Contributor
0 Kudos

same code i used in smartform:

DATA : l_spell_a TYPE pc207-betrg,
l_local   TYPE string,
w_len     TYPE i.
* Internal Table Declaration
DATA : BEGIN OF t_char OCCURS 0,
char(80) TYPE c,
END OF t_char.

l_spell_a = l_amtsum.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
amt_in_num         = l_spell_a
IMPORTING
amt_in_words       = l_spell
EXCEPTIONS
data_type_mismatch = 1
OTHERS             = 2.

IF sy-subrc = 0.

Former Member
0 Kudos

Hi,

Use SPELL_AMOUNT and pass the currency as 'INR'.

Netaji.B

Former Member
0 Kudos

Try:

HR_IN_CHG_INR_WRDS

Former Member
0 Kudos

i dont remeber the exact FM

but search in se37 like : HR india or

HR CHG INR

or hr spell.. etc