Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cheque Printing Program

Former Member
0 Likes
737

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

1 ACCEPTED SOLUTION
Read only

PankajJain777
Explorer
0 Likes
694

Hi Kanishka,

if you want to change amount into word or vice-versa you can create routine in sap script that u r using.Check this link for this

4 REPLIES 4
Read only

Former Member
0 Likes
694

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

Read only

0 Likes
694

HI Tarak,

  I need a layout for cheque with the amount in word

Thanks

Read only

0 Likes
694

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

Read only

PankajJain777
Explorer
0 Likes
695

Hi Kanishka,

if you want to change amount into word or vice-versa you can create routine in sap script that u r using.Check this link for this