on 08-01-2008 4:29 PM
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& ®UD-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
answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use SPELL_AMOUNT and pass the currency as 'INR'.
Netaji.B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try:
HR_IN_CHG_INR_WRDS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i dont remeber the exact FM
but search in se37 like : HR india or
HR CHG INR
or hr spell.. etc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.