on 01-31-2008 2:39 AM
hi all,
i have one issue,
in script the total amount in word is not comming complet
ex. 18880
In words-
Eighten thousand eight hundred eight
but in script it is printing --- Eighten thousand eight it is not piinting remaning text.
suggest what to do,
plz its urgent.
Regards,
Amit.
Amit,
There's no sapscript command to covert number to word, you've to do it in print program.
In the sapscript form
use
/:PERFORM GET_DATA IN PROGRAM Ztest
/:USING &amt&
/:CHANGING &word&
/:ENDPERFORM
and in the Print Program
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = amount
CURRENCY = 'HKD'
FILLER = ' '
LANGUAGE = 'E'
IMPORTING
IN_WORDS = word
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
Hope this helps
VB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii amit
the field in which ur storing the word should be of length(100)
then it u will get the entire amt in words
regards
Jaipal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HR_IN_CHG_INR_WRDS
This function module gives in indian format
check the length of ur parameter
regards.
santhosh reddy
reward if useful
Edited by: Santhosh Reddy on Jan 31, 2008 1:38 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
using spell_amount we can displayamount in words .
but while giving word import parameter you have to check length of that field.
Increase length of word import parameter.
reward points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.