on 11-01-2007 9:04 PM
Hi Gurus.....
I have created paymeent print script.. I want to use amt in words function in sap script.
i know spell amount function.. but this function in which palce i put in prpg like before/after openform/start_form/write_form....and how can i pass in sap-script window????????
give me example...
Vishal
Jigar
Hi ! SPELL_AMOUNT will have a structure called SPELL. In that structure , tha amount'll be saved in words in the field WORD or WORDS(just check it once) . you make use of that field while using SPELL_AMOUNT func.module. Assign this value to any of your internal table fields and make use of that as you need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
If you are using standard Cheque form then u will find the Spell_amount function already used in the form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Goto Standard RFFOUS_C and find for FM SPELL_AMOUNT.
Use it in the same way.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Call 'SPELL_AMOUNT' function module in your print program before write_form.
Pass the resultant value of the FM, using a text element to the sap script and display.
Print Program Code:
DATA v_int TYPE i VALUE '1000'.
DATA var LIKE SPELL.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = v_int
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = var.
call function 'WRITE_FORM'
exporting
element = 'TEXT'
type = 'MAIN'
window = 'MAIN'.
SAPScript Code:
/: TEXT " Text element
&var& " var is a variable which hold the result of the FM in your print program
Hope this helps.
Thanks,
Srinivasa
Message was edited by:
Srinivasa Bhanuprasad Moningi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.