2007 May 15 7:13 AM
hi every1,
I finished Cheque Printing in script..
if i give multiple cheq
after 4 th or 5th cheq the alignment is changed..
what can i do for proper allignment?
in field i m giving 100 i want One Hundered
Amount in words.. here all r coming in Caps..
i need : One Hundered" Like this? i nee donly for first letter is Caps
regards,
laxmi patchipulusu
hi every1,
I finished Cheque Printing in script..
if i give multiple cheq
after 4 th or 5th cheq the alignment is changed..
what can i do for proper allignment?
in field i m giving 100 i want One Hundered
Amount in words.. here all r coming in Caps..
i need : One Hundered" Like this? i nee donly for first letter is Caps
regards,
laxmi patchipulusu
2007 May 15 7:21 AM
Hi Mcalaxmi,
Use FM
<b>'SPELL_AMOUNT'</b> : To convert number into words
and use FM <b>HR_P06I_CONVERT_TO_LOWERCASE</b> : To covert that data as per ur requirement.
e.g 100 . First FM will give o/p : ONE HUNDRED.
pass this in second FM .that will give u output : One hundred.
Reward points if helpful.
Regards,
Hemant
2007 May 15 7:31 AM
Hi,
pls go through dis code
use FM SPELL_AMOUNT
chk the program RF_SPELL
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
REPORT ZSPELL.
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
pls reward if it helpful
thanks
vana
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |