Printing currency in words

Hi,
I am printing the currency using the function
module "SPELL_AMOUNT".
Now, if the amount is USD 45.55,
it prints USD FORTY FIVE AND FIFTY FIVE
is it possible to print
<b>USD FORTY FIVE AND FIFTY FIVE CENTS ?</b>
And similarly for other currencies also ?
Pls help..
Rgds,
Ravindra

You can still use the SPELL_AMOUNT, you will just have to handle the addtional formatting manually,.
report zrich_0002.
data: amt_in type  pc207-betrg value '45.55'.
data: words type spell.
data: output type string.
call function 'SPELL_AMOUNT'
exporting
   amount          = amt_in
   currency        = 'USD'
*   FILLER          = ' '
*   LANGUAGE        = SY-LANGU
importing
   in_words        = words
* EXCEPTIONS
*   NOT_FOUND       = 1
*   TOO_LARGE       = 2
*   OTHERS          = 3
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.
write:/ words.
<b>concatenate 'USD' words-word 'AND' words-decword 'CENTS'
         into output separated by space.
write:/ output.</b>
Regards,
Rich Heilman

Similar Messages

  • Is there any built in function that prints numbers in words inXMLP

    Hi Team,
    This is regarding SR#3-7005716301 from Syntel Limited.
    Customer is asking Is there any built in function that prints numbers in words in an rtf teamplate using xml publisher?
    For example if the net amount is 100 dollars then it should print "ONE HUNDRED DOLLARS AND ZERO CENTS ONLY"
    Thanks in advance!
    Leo

    I do not know of any function available that lets you print the currency words (dollars, cents etc). Here is a link to a blog post that will allow you to print numbers in words.
    https://blogs.oracle.com/xmlpublisher/entry/numbers_to_words_update
    Thanks,
    Bipuser

  • ABAP-Printing values in words in Scripts

    Dear all,
    If i have made a Zscript Can i include functionalities like converting the amount into words etc.
    For Ex If the total amount is 1200 Rs and 85 Paise (1200.85) If i want to print it in words with appropriate currency, what i need to do?
    I really appreciate a detailed answer on this.
    Thanks and Regards
    Shrinivas
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 23, 2008 10:11 AM

    Hi,
        Do the necessary coding in the driver program, and store the values in a variable, and in script give that variable. If it is a standard driver program, use a subroutine for that script, using PERFORM statement.
    Use this FM for conversion to words
    SPELL_AMOUNT
    Regards
    Bala Krishna

  • Unable to print from MS Word: "The Directory Service is currently unavailable"

    Hi! I hope you can help me. Please note that I have a Windows XP computer (Home Edition, Version 2002, Service Pack 3, 32-bit). When I initially installed a Brother printer (model# MFC-J475DW) in Dec 2013, I had no problems printing documents. My problems
    started about 2 days ago. I got an error message after I opened a MS Word document (.doc) and clicked the Print button to print a document. The Printer "Name" field was empty.  I clicked the dropdown box in that window and saw 3 options:
    1 - Brother MFC-J475DW Printer
    2 - Brother PC-FAX v.3.2
    3 - PaperPort Image Printer
    When I selected "Brother MFC-J475DW Printer," a Microsoft Word dialog box appeared, saying the following:
    "The printer has not yet responded, but the Microsoft Office program may be able to proceed without printer information. Do you want to continue to wait for the printer?"
    I can either click on a Yes button or a No button. Either way, I'm brought back to the Print page. When I click on the OK button to start printing, another error message appears:
    "Windows cannot print due to a problem with the current printer setup. Try one or more of the following:
    *Check the printer by printing a test page from Windows.
    *Make sure the printer is turned on and online.
    *Reinstall the printer driver."
    I have a choice to click either OK or Web Help. I click the OK button to close the box, then return to the Print page. When I click on the "Find Printer..." button, the Find Printers window appears for a moment, then is replaced by this error message:
    "The Directory Service is currently unavailable"
    On Friday (Mar 21), when the error first occurred, I was able to print a letter in MS Word after un- and re-installing the Brother printer and its drivers. The problem reappeared the next day (Saturday). I don't want to do that every time to print a single
    page, so would you please recommend a solution?
    By the way, I am able to print a test page from the printer in Control Panel, and I can print from a Notepad document. Also, when I go to the Control Panel, select "Printers and Faxes," then right-click on the printer (Brother MFC-J475DW Printer),
    then select the Ports page, there's a check mark next to USB001 (not LPT1 or COM1). When I click on the "Configure Port..." button, I get this error message:
    "An error occurred during port configuration. This operation is not supported."
    Earlier today, I got a reply from brother.com's tech support (thanks to the 1 year warranty). They said the problem is on my PC, not their printer. However, they provided links to completely uninstall the printer, then reinstall it. I did just that, but
    the problem persists. I'll download OpenOffice.org's Office Suite to see if I can print documents with their software instead of MS Word. Until then, I await any suggestions.
    I hope this info is helpful. Thanks in advance for your help.

    I downloaded OpenOffice and am able to print documents (in particular, the same document I created in MS Word). I guess MS Word is to blame. I believe the issue is concluded, but I'd welcome any comments about the Active Directory, as I might have a problem
    with OpenOffice in the future regarding that.

  • How to print numbers in words

    Hello friends,
    How can we print numbers in words like
    800 as Eight Hundred.
    TIA
    shekar.

    See here for some more solutions in english, french and spanish
    Converting a number into world In spanish Language

  • While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra positi

    While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra position and also pdf generated from this word file also contains the same.

  • HP Officejet Pro 8500 - won't print bold italicized words

    Why won't my printer print out the words that are in bold italics on a pdf? It prints the non-italicized words in bold.

    Hi,
    Can you confirm that you have an Officejet 8500a or Officejet 8500? On the 8500a model, you can set the networks proxy address and port setting from the front panel of the printer (setup>Webservices setup>proxy). If you are unsure what your proxy settings are you'll need to contact your network admin. If your network uses a proxy users name and password for all devices, you need to enter this information along with the proxy address and port in the printers embedded web server. Type the products IP address into an internet brownser window (printer must be connected to the same network as PC). Select the network tab, and than look for the proxy settings option. Enter in the information and click apply. Once the networks proxy information has been correctly inputed into the embedded web server, try printing again. If unsuccessfully, you might try reinstalling the printer software after uninstalling it. Hope this helps!
    I was an HP employee
    Reminder: Please select the "Accept as Solution" button on the post that best answers your question. Also, you may select the "Kudos" button on any helpful post to give that person a quick thanks.

  • Printing from the Word to the pdf printer,

    Printing from the Word to the pdf printer,
    I wanted to print a Word document using the pdf printer but sounds this printer doesn’t provide a dialogue box to choose where to save the printed pdf file. It prints the document but couldn’t know where does the acrobat stick it!
    What might be the problem?
    Is there some option that controls this behaviour?
    Thank you for the help,
    Best
    Jamal

    If you select the properties (or preferences) when right clicking on the Adobe PDF printer, there is a Settings tab (if not select the Advanced button on the general tab) and select the settings tab. There are selections there for requestion the file name and other items related to PDF creation. Sorry if my selections are not clear, I am on the wrong computer to check the correct selections for you, so give it a shot and try various selections until you find the settings.

  • Function module for converting the foreign currency to words

    hi,
    can anybody tell me about the function module for converting the foreign currency to words format.
    Like 25.50 USD
    should be "Twenty Five Dollar & Fifty Sents."
    foreign currency can be anyone like USD, JPY, EUR etc.
    Regards
    Nitin Varshney

    Hi,
    Try using the FM SPELL_AMOUNT
    Check this wiki
    [SPELL_AMOUNT|https://wiki.sdn.sap.com/wiki/display/Snippets/SpelltheAmountenteredin+words]
    Regards
    Sarves

  • I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and d

    I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and downloaded Adobe Reader X instead and that still doesn't work. I have Windows 7.

    Hello,
    Please follow the link to troubleshoot the printing issues with Adobe Reader:- Troubleshoot PDF printing | Acrobat, Reader.
    Regards,
    Nakul

  • Try print from Microsoft Word XP : printer (HP Oficejet 4500 G510n-z) lops off top of random lines

    try print from Microsoft Word XP: printer (HP Officejet 4500 G510n-z) lops off top of random lines

    CD didn't work. Download software, didn't work when it came to plugging into usb port, don't even get a BACK button, nothing. Printer not recognized by laptop. Did all the solutions/uninstall/install etc. Printer is working though, prints out the exact same thing each time I press the green button on the printer, but is not connected to laptop. So it's not the printer, it works.
    Now what?

  • Cannot change Printer Properties in Word 2010 with J6480. Properties revert to default setting

    When I attempt to change Printer Properties in Word 2010, they simply revert back to the default setting.  I am unable to use the Printer Properties within the Word 2010.  If the default is grayscale, that is all the printer will print unless I change the default setup in the Control Panel. It appears to be an incompatibility with Office 2010 software as other programs allow the change of Printer properties.

    I have the exact identical problem.  Brand new printer (HP PhotoSmart C4780) on a brand new PC (Windows 7).  I cannot access the printer properties dialog box when the PDF file has been opened in an embedded Adobe Viewer window in Internet Explorer.
    When I select [Print] from Word or Adobe Viewer, or anywhere else, I can then press the [Properties] button and it opens the printer properties just fine.
    But if I open a PDF document through Internet Explorer, clicking on that [Properties] button doesn't do anything.  No error or anything.  If I press the [Save] in the Adobe Acrobet-embedded Internet Explorer window, it too does nothing.  This leads me to think it is an Adobe Acrobat issue.  However, I have found nothing in their support forums on this topic.
    Does anyone out there have any ideas?
    Scott

  • How  can i print currency symbol in smart form?

    how  can i print currency symbol in smart form?
    i want to print the currency symbol with grant total based on the vendor currency.
    pls hepl............

    Hi,
    think You can't print the symbols for currency like $ and Pound etc
    see this doc if needed
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Shiva Kumar

  • Currency in words

    Hi Experts,
    I want to know the function module to convert currency in words
    for example
    24.05 INR as 24 rupees 5 paisa
    others wise please tell me the tables in which currency data stored.....for example INR - Rupee , paise....
    Regards,
    Siva.

    Hi
    TABLES SPELL.
    DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.
    DATA : PAMOUNT LIKE SPELL-NUMBER VALUE '123'.
    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.
    ENDFORM.
    Or
    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.
    With Regards
    Nikunj Shah

  • Print Currency as symbols in SAPSCRIPT/Smartforms

    Hi all,
    My customer want to print currency not as text but as symbols , for example "S" instead of "USD" .
    Does somebody know how to make it?
    Is there a dynamic solution ?
    Best regards.

    Hi
    U should check if in your system there's the currency symbol and if it supports it.
    The other problem can be in the printer, it need to know if it can understand that symbol.
    U can get all symbols available in your system from table TCP01.
    Here the symbol corresponds to a number has to be used in the sapscript/smartform.
    For example Euro sing is 156, so in the sapscript it need to insert <156>, the dollar shoul be 36, so <036>.
    Anyway you can't be sure your device can print the symbol.
    Max

Maybe you are looking for

  • FileOpen Plug-in for Adobe Acrobat/Reader

    When attempting to open a file the adobe updater wants to install this plugin "FileOpen Plug-in for Adobe Acrobat/Reader". After installation it dose the same thing wants to install "FileOpen Plug-in for Adobe Acrobat/Reader " over and over. The file

  • Decision Tree training runtime error. Perform Pruning.

    Hello I get the error below when trying to train a decisio n tree model in RSANWB. The same model trained correctly before I selected Perform Pruning + Extended Pruning in the Parameters tab. Note 738285 seems to address a similar problem, but is not

  • Roadrunner + WRT310N

    Hi I've been using my WRT310N for a while now, and it's been great but it's not working with my internet right now. I just got roadrunner cable internet literally 10 min. ago and my router isn't working with it for some reason. I'm directly connected

  • Mouse Path Not Visible - Why?

    Hi, all. I'm editing a Captivate demo using Captivate 3 and for some reason the paths for the mouse movement aren't visible. I can't select or move the mouse and when I right-click on it I'm not offered an option to align it's movement to the previou

  • Solution Manager Documents

    Is anyone aware of a tool that can be used to extract project documents out of solution manager into a folder? I am looking for something similar to the Business Blueprint extract, but I want the individual documents, not the single blueprint documen