Skip to Content
author's profile photo Former Member
Former Member

Again doubt in SAP SCRIPT

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2005 at 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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.