on 07-23-2007 12:23 PM
i used hr_in_chg_inr_wrds to display amount in words.it's getting displayed as 'one thousand rupees'.now the user doesn't want 'rupees' at the end.he wants only 'one
thousand'.please tell how to remove 'rupees' for whatever amount he gives.
Hi,
HI,
REPORT ZTEST.
data: AMT_IN_NUM like PC207-BETRG.
data: words(200) type c.
AMT_IN_NUM = '57.5'.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
AMT_IN_NUM = AMT_IN_NUM
IMPORTING
AMT_IN_WORDS = 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.
write:/ words.
and i got the answer FIFTY SEVEN Rupees FIFTY Paise
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
USe this it will solve your problem
REPLACE<b> 'RUPEES'</b> with ' ' IN <Variable name> " check the case for rupees..
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
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.