Regarding spell_amount
Hi experts,
In a smartform I use SPELL_AMOUNT and HR_IN_CHG_INR_WRDS Function modules.
But these don't fullfill my requirement.
please any other Function Module for this requirement to spell the amount in words in correct way.
i.e in the place of 1 lakh, it shows one hundred thousand. but i need one lakh.
pls halp me.
thanks in advance
Hi,
Please make sure the currency which you are passing for the FM SPELL_AMOUNT.
Also check the wordings entered in the table t015z for the relevant fields.
Regards,
Ram
Similar Messages
-
Regarding function module spell_amount
hi
i am working with the function module spell_amount.
the outcome that i am getting is different when compared with the amount in words and figures
ex : amt is 1,800.00
in words : one hundred eighty thousandcheck this code:
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..
Ur FM
TABLES SPELL.
DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.
DATA : PAMOUNT LIKE SPELL-NUMBER VALUE '1234510'.
SY-TITLE = 'SPELLING NUMBER'.
PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.
WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.
FORM SPELL_AMOUNT USING PWRBTR PWAERS.
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.
ENDFORM. " SPELL_AMOUNT -
Erro na função SPELL_AMOUNT
Olá pessoal,
Utilizei a função 'SPELL_AMOUNT' para retornar o valor por extenso, mas o numeral R$ 106,00, retorna o valor "100 e seis", em vez de 106,00 reais.Existe alguma outra solução?
Obrigada!
EXPORTING
amount = 106,00
CURRENCY = ' BRL '
FILLER = ' '
language = PT
IMPORTING
in_words = st_words " Estrutura de retornoHi,
have a look at view V_T015Z with transaction SM30 and check there if values are correct.
Best regards. -
Error while using Function module SPELL_AMOUNT with arabic language AR
Hi ,
When i am trying to convert the number to words, using function module SPELL_AMOUNT with arabic language(AR),following abend message is coming and FM is getting abended.
Entry AR 0 1 in table T015Z does not have a delimiter (
Can you please provide me how to overcome this error?
Thanks & Regards
Seshagiri.Hi Santosh,
Thanks for quick inputs.
And amount is not having any delimitors.
I have checked in table T015Z and it has entries with AR as SPRAS.
All entries are having ':' at the beginning of the arabic words,and there is no single entry with ';'.
All entries with EN as SPRAS are having delimiters ';' at the end of the words.
Numbers are correctly converted to words in english,but abending in arabic.
Any idea please.
Thanks & Regards
Seshagiri. -
Function module SPELL_AMOUNT
Hi All,
I am using this function module "SPELL_AMOUNT". But this function module works with the customized tables and it gives amount into Millons and billons but i want in crores.
I am not getting how to configure because there is difference between crores and millions & billions in terms of figure.
I have also created my own function module "Y_SPELL_AMOUNT" But i want to use the standard one.
Please help.
Regards,
Vikas MadaanHi,
Please have a look at this.
Re: Covert INR into words
Cheers
Vinod -
Problems with value retorned by FM: 'SPELL_AMOUNT' with language 'ES'
Hi,
I'm having problems with the FM 'SPELL_AMOUNT' with language 'ES'.
When amount it's over 1 billion, the output is something like this:
<b>Amount (NUM)</b>--<b>Actual output</b>--
<b>wanted output</b>
1.000.000.000, 00 -
Un Millardo Millones -
Un Millardo or Mil Millones
25.000.000.000,00 -
Veinticinco millardos millones -
Veinticinco millardos or veinticincomil millones
Please, if somebody could help me, god bless you!!!
<b>Alexis Sanchez
ABAP Trainee
Valencia, Venezuela</b>Hi,
I tested it in SE37, i am getting the correct output, Please make sure that you are passing all the values correctly i mean the CURRENCY .
Regards
Sudheer -
How to use spell_amount funcation modules
hello ABAP gurus,
I want to know how to use spell_amount function modules?
Regards
MaruthiHi Maruthi,
Please check this sample codes.
report ztest01.
data: words type spell.
call function 'SPELL_AMOUNT'
exporting
amount = '100000'
* CURRENCY = ' '
* FILLER = ' '
* LANGUAGE = SY-LANGU
importing
in_words = words.
if words-word = 'ONE HUNDRED THOUSAND'.
words-word = '1 LAKH'.
endif.
write:/ words-word.
Also you can use FM HR_IN_CHG_INR_WRDS.
report ztest02.
data: words(50) type c.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = '100000'
importing
amt_in_words = words.
write:/ words.
Hope this will help.
Regards,
Ferry Lianto -
SPELL_AMOUNT for getting amount in chinese
Hi All,
Whether FM SPELL_AMOUNT can be used to get the Amount in chinese characters. if yes how to use this FM for getting amount in chinese.
Thanks,
Preethi.Hi Preethi,
Just try FM SPELL_AMOUNT with language CN.
It will give you the currency in Chinese Format.
Reward points, if useful.
Regards,
Nitin. -
Hai Experts ,
my requirement is to convert the currency field value in words for that i am using the FM 'SPELL_AMOUNT'
but that FM didnt display the value in words after decimal point.
for example if the value s 100.50 i need to display it in words as hundred rupees fifty paise but the FM
'SPELL_AMOUNT' displayed the output as hundred rupees only
is there any FM available for converting the value in words including decimal point?
With Regards,
R.dhineshraj.Hi, Raj
Above FM will not Sport more than two digits after decimal point if you have the requirement like this than please use the following way,
DATA: amount TYPE p DECIMALS 3 VALUE '100.504',
c_amount TYPE string,
part_1st TYPE string,
part_2nd TYPE string,
in_words TYPE spell,
amt_in_words(1000).
c_amount = amount.
SPLIT c_amount at '.' into part_1st part_2nd.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = part_1st
IMPORTING
in_words = in_words.
part_1st = in_words-word.
clear: in_words.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = part_2nd
IMPORTING
in_words = in_words.
part_2nd = in_words-word.
CONCATENATE part_1st 'unit1' part_2nd 'unit2' into amt_in_words SEPARATED BY space.
WRITE: / amt_in_words.
Kind Regards,
Faisal -
hi all,
i have one requirement that how can we convert
USD amount into words.
Regards
Rami ReddyUse function module
data: wa_words type spell.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = wrk_sum
currency = 'USD'
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
in_words = wa_words
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
In that form give the following coding
&WA_WORDS-WORD& ®UD-WAERS&&' and 'WA_WORDS-DECWORD' Cents'& -
Regarding Amount(Dollars) into Words
hi all,
How we will convert Amount( in terms of Dollars) into Words . I know how to convert Amount (in Rupees) into Words
and I know function module SPELL_AMOUNT . but it is not working for Decimals.
Can anyone suggest solution for this.
Regards
Rami Reddyhttps://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/spell%2bthe%2bamount%2bentered%2bin%2bwords
Split the amout into two, Dollar and Cents
123. 45
call FM for 123 and call FM for 45 and concatenate the result.
Youcall the Same function module, twice, once for dollars and once for cents, and concatenate the both answers. -
Hello all:
Due a requirement of some southamerican forms, I need to spell the total amounts of the invoices, I´m using the function SPELL_AMOUNT, however doesn´t works properly in many cases like, doesn´t reconize the decimals, the currency even, in some cases , the amount itself.
Is there any other function or solution for that? or, is any way I could improve the SPELL_AMOUNT functionality?
Best regardsHi,
Check Note 939145 - SPELL_AMOUNT: What it can do and what it can't. It tells you:
Note: If you require each digit after the point to be converted into a word separately,
you need to call SPELL_AMOUNT again with input parameter DECIMAL.
I hope this helps you
Regards,
Eduardo -
SPELL_AMOUNT function module
Hi frnds,
If i input 1,00,000 then the fn.module is giving one hundred thousand as output.
But for me the output should be "One lakh".
Is there anyother fn.module to get this?...
OR any additional parameter i have to pass in the SPELL_AMOUNT fn.module to get the same.....
Regards,
Rengahi,
this is my own customised Function Module..You can use this...
import
AMOUNT TYPE KONV-KAWRT Condition base value
CURRENCY TYPE CHAR3 3-Byte field
export
WORDS TYPE C
FUNCTION zconvert_amnt_to_words.
""Local Interface:
*" IMPORTING
*" REFERENCE(AMOUNT) TYPE KONV-KAWRT
*" REFERENCE(CURRENCY) TYPE CHAR3
*" EXPORTING
*" REFERENCE(WORDS) TYPE C
DATA: w_amount(255) TYPE c,
w_out_amt(255) TYPE c,
amt_in_inr TYPE pc207-betrg.
amt_in_inr = amount.
IF currency = 'INR'.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
amt_in_num = amt_in_inr
IMPORTING
amt_in_words = w_amount
EXCEPTIONS
data_type_mismatch = 1
OTHERS = 2.
IF sy-subrc 0.
RAISE data_type_mismatch.
ENDIF.
IF w_amount CS 'Rupee' AND w_amount NS 'Rupees'.
IF w_amount CS 'Paise'.
REPLACE 'Rupee' WITH 'And' INTO w_amount.
ELSE.
REPLACE 'Rupee' WITH space INTO w_amount.
ENDIF.
CONCATENATE w_amount ' Only' INTO w_amount.
ELSEIF w_amount CS 'Rupees'.
IF w_amount CS 'Paise'.
REPLACE 'Rupees' WITH 'And' INTO w_amount.
ELSE.
REPLACE 'Rupees' WITH space INTO w_amount.
ENDIF.
CONCATENATE w_amount ' Only' INTO w_amount.
ELSE.
CONCATENATE w_amount ' Only' INTO w_amount.
ENDIF.
TRANSLATE w_amount TO UPPER CASE.
words = w_amount.
ENDIF.
ENDFUNCTION.
regards
siva -
SPELL_AMOUNT for spras vn(vietnam)
Hi, I am new to sap r/3.
Anybody know where i can get data for maintaining table T015Z in order to be able to use spell_amount function for vietnam language?
thanks in advance.Welcome to SDN.
check with table T002 - it contains langauge,if your langauge available then it will display otherwise can't.
Regards,
Amit -
SPELL_AMOUNT : doesnt give the wordings for the decimals part.
Dear all
SPELL_AMOUNT : doesnt give the wordings for the decimals part. i m using INR currency.
Help plz
Thnx
MoniHi moni ,
the function does give the wording of the decimal part , the structure which stores the result has two fields word and decword. Decword stores the wording for the decimal part.
e.g. if you enter 10.50 INR as the input , the output is
Word --> TEN
Decword --> FIFTY.
Regards
Arun
Maybe you are looking for
-
Not sure what to do. I've tried a system restore on my computer after the update in hopes of undoing the problem, that didn't work. I've tried to install, the new version of itunes for over two days now and I get to the point where it says "startin
-
How do I move photos from my camera roll to my photostream on the iPod Touch
I turned off the photostream because I didn't like that when I would delete a photo I'd have to delete it from two seprate places. But now syncing my photos to my computer is a huge pain since I don't use a Mac. So I figured photostream was my best b
-
Validation at transection level
Hello Gurus, I am new in adf and using jdev 11.1.2.3. We have the option to validate business rules at attribute level and row level, but my requirement is i want to validate at transaction level. Mean if user has added four rows i want to validated
-
Best Practices Data Extract from Essbase
Hi there, I have been looking for information on Best Practices to extract data from Essbase (E). Using MDX I initially wanted to bulk extract data from E but apparently the process was never ending. As a 2d choice, I went for a simulation of an inte
-
SCCM Wim on USB Drive - Add Packages/Apps and Keep all my settings
Would the appropriate commands to perform this task and minimize the disk space be: dism.exe /capture-image and dism.exe /append-image?