on 04-26-2008 2:25 PM
hi
how to convert the number in to words in sapscript.
/: perform amt_words in program 'ZTEST'
/: using wa_amt(variable for number)
/: changing lv_words
/: endperform
In Program ZTEST
FORM AMT_WORDS TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
read table in_tab index 1.
lv_number = in_tab-value.
call function 'HR_IN_CHG_INR_WRDS'
"Local interface:
*" IMPORTING
*" REFERENCE(AMT_IN_NUM) LIKE PC207-BETRG
*" EXPORTING
*" REFERENCE(AMT_IN_WORDS) TYPE C
*" EXCEPTIONS
*" DATA_TYPE_MISMATCH
Pass the necessary parameters.
importing would be lv_number.
exporting would be lv_words.
read table out_tab index 1.
out_tab-value = lv_words.
modify out_tab index 1.
In the Script display
&lv_words&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use FM HR_IN_CHG_INR_WRDS or SPELL_AMOUNT
Regards
Kiran Sure
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.