‎2014 Apr 07 12:17 PM
Hi All,
I am trying to develop cheque layout copying sanded program (F110_D_SCHECK)
..i am using stranded program to print (RFFOUS_C)
How can i get the word in amount to the layout with the current set up or is there any way to get layout
Thanks
kanishka
‎2014 Apr 07 12:51 PM
‎2014 Apr 07 12:26 PM
hi Kanishka,
please tell me whats ur requirement ?
do u want FM to get the WORD into AMount or Amount into Word ?
Do u want the layout for Cheque ?
please provide in details ...
Thanks
Tarak
‎2014 Apr 07 12:31 PM
HI Tarak,
I need a layout for cheque with the amount in word
Thanks
‎2014 Apr 07 12:38 PM
Hi Kanishka,
Use FM HR_IN_CHG_INR_WRDS or SPELL_AMOUNT
Here is the sample code for FM
DATA AMT_IN_NUM LIKE PC207-BETRG. DATA AMT_IN_WORDS(100) TYPE c. PARAMETERS: AMOUNT LIKE AMT_IN_NUM. CALL FUNCTION 'HR_IN_CHG_INR_WRDS' EXPORTING amt_in_num = 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. WRITE AMT_IN_WORDS.***************************
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.
And For Layout whatever Script u have copied from standard , Script itself contains one Layout.
So u can modify the standard Script as per your requirement.
Thanks
Tarak
‎2014 Apr 07 12:51 PM