02-01-2005 9:44 AM
How we can print Words in SAP SCRIPT for e.g if we have total of some purchase order as 2450.50
Now how to print this value in sapscript as Two thousand four hundred and fifty Rupees and Fifty Paise.
I have seen of Function by name SPELL-AMOUNT now how to call this function from SAP-SCRIPT.
02-01-2005 10:13 AM
Sometimes it's easier to modify a copie of the report
you use to print the form.
Just Call the fonction before printing the considered text element in the report and print the string in your form.
Sincerely
02-02-2005 6:55 PM
Another option is to use a perform in your layout set to call a subroutine in another program.
Example:
/: PERFORM F_ROUTINE IN PROGRAM ZPROGRAM
/: USING &VAR1&
/: USING &VAR2&
/: CHANGING &VAR3&
/: CHANGING &VAR4&
/: ENDPERFORM
The USING parameters need to be global variables recognized in your layout set/print program.
In the ZPROGRAM, the SAPScript variables are stored in a table with structure itcsy. To define the form:
FORM F_ROUTINE tables in_par structure itcsy
out_par structure itcsy.
<< here you can read in_par for any variables passed from your form, do any needed logic, and then update the out_par table for any of the variables passed back to your form. >>
ENDFORM