How to print space as thousand seperator and comma as decimal seperator

Hi All,
I have requirement where I need to print the amounts with space as thousand seperator and comma as decimal seperator.
I have a field wrshb which is of type mhnd-wrshb. currently I am printing this. In the adobe layout I have declared this coloumn as Decimal field.
Now in the output it is printing as comma as thousand seperator and dot as decimal seperator.
For example ,currently the value is printing as 32,811.41
but I want the amount as 32 811,41
I have declared the variable as char16,  using write statement in the interface I moved the value from currency field to char field.
Then in debugging i checked the value comes as 32,811.41 and it goes to dump with teh reason-cannot interpret as a number.
Can anyone help me in fixing this?
Thanks and Regards,
Karthik Ganti.

Hi Adam,
As per initial requirement, I have set the format such that the amount is printing in below format as required.
Locale---Italian.
Space as thousand seperator and comma as decimal seperator.
for example 1 234,45
As some of the Currencies will not have decimals, now users would like to print amount without decimals. For example in my case amount  printing in KRW ( Korean currency ) is also similar to the above format which is wrong.
for example Now amount is printing as 55 000,00. But actually it should be 550 000. Similarly for JPY currency also, as it doesnot haves decimals ( checked in TCURX table ).
I have written some logic in the interface. below is the logic.
WRITE:
    wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
*READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
  IF sy-subrc  = 0.
  IF lwa_tcurx-currdec = '0'.
  REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
  REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
  else.
   REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
    REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
endif.
ENDIF.
a. when the write statement gets executed amount will be in ,. ( 1,234.45 )format. Then my logic gets executed correctly. In this company code is CH10 ( EUR ) and KR10.
b. But sometimes after the write statement gets executed amount will be in ., format ( 1.234.45 ). In this case my logic works, but gives the wrong value. In this case company code is VN10 ( EUR )
In both the cases currency is EUR.
Will the decimal format change accordingly based on the company code code currency.Can you please tell me why write statement behaved differently.
Do I need to change any locale in the adobe form, or any other logic to be written in interface. ?  I am trying it out from long time, but not able to fix it.
Can  you please help me how to achieve this ?
Thanks and Regards,
Karthik Ganti.

Similar Messages

  • How to print the report file name and path and the last mod date

    Good morning,
    I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
    Anyone would know how I can do that? I have checked the doc but found nothing.
    Thks. Philippe.

    Did you ever determine how to print report name and report last mod date?
    Thanks

  • How to print (on paper) expected header and footer while printing Jtable

    Hello,
    I am printing jtable on paper using dot mtix printer.In header i want to print some name date and number like below
    Sun
    Date:12/8/20010 No.12334
    | col1 | col2 |
    | col1 | col2 |
    footer
    When i am trying to print header its Font size is very big and its in one line.How i can use expected font and expected text here.
    i am using jtable print method(which contin header and footer printing facility)
    Edited by: Ashtekar on Aug 12, 2010 5:18 AM

    I also once hoped for an easy way to modify a table's header and footer, but found no way.
    Yet it is possible.

  • How to change space between folder icon and text on personal toolbar?

    I have a few folders on the personal toolbar with just a letter to indicate what they are, but on the theme I'm using, the letter is too far away from the folder it belongs to and partially falls under the next folder icon. I don't want to increase the spacing between all icons to show the full letter, as this decreases the amount of icons you can have on the toolbar. Instead I want to decrease the space between the folder and text belonging to it, so it's right next to it instead of 5 pixels away.
    I've found various entries to change padding and margins in userChrome.css, but it's always for around the icon, I don't know where to look to close the space between the icon and its corresponding text.
    Any help would be greatly appreciated, thanks.

    Did you check the value of the margin-left of the text?
    You can set negative margin values if necessary.
    <pre><nowiki>#PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }</nowiki></pre>
    Add .bookmark-item[container] if you only need this for folder items
    <pre><nowiki>#PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }</nowiki></pre>

  • How do I convert time from hours and minutes to decimal time

    I am making a spread sheet a work for payroll. I need to make a formula that converts the time from hours and minutes to decimal time. Please help

    Hi Taryn,
    I can't see much from the photo, but I assume your formula is similar to the one I've used below:
    The same formula is used in F4 and F6, and both return the same result (shown in F4).
    F4 was left on "automatic" cell format, and the column widened to accomodate the repeating decimal to the point where Numbers would begin displaying zeros.
    F6 was formatted as shown in the Cell Inspector to show only two decimal places.
    Neither of these is an "exact" decimal, as it is not possible to use a decimal fraction to "exactly" represent 1/6 (or 10/60).
    The likely reasons for yours showing a whole number of hours is a difference between your formula and the one shown in the example here, or a difference in the number of decimal places set in the cell's format.
    Regards,
    Barry
    PS: To take a screen shot:
    Place the mouse pointer at the top left corner of the area you want to nclude in the shot.
    Press shift-command-4.
    Use the mouse to drag a selection rectangle contining the part of the screen you want to include.
    Release the mouse button. (You'll hear the sound of a camera shutter 'snapping' the picture.)
    The screen shot will be saved to your desktop with the name 'screen shot' followed by the date and time.
    The image may be posted to the discussion using the same steps you used to post the photo above.
    B.

  • How to print the output string in inverted commas

    hi all,
    my question is
    like i have a string
    "welcome to java"
    using println statement
    i need to print the above statement in inverted commas
    like the output should appear as
    "welcome to java"

    This sounds like part of some homework but what the
    heck ...
    System.out.println("\\"welcome to java\\"");I was trying to anticipate bugs in this stupid forum sofftware, this should be
    System.out.println("\"welcome to java\"");

  • How to print JTextPane containing JTextFields, JLabels and JButtons?

    Hi!
    I want to print a JTextPane that contains components like JTextFields, JLabels and JButtons but I do not know how to do this. I use the print-method that is available for JTextComponent since Java 1.6. My problem is that the text of JTextPane is printed but not the components.
    I wrote this small programm to demonstrate my problem:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.print.PrinterException;
    public class TextPaneTest2 extends JFrame {
         private void insertStringInTextPane(String text,
                   StyledDocument doc) {
              try {
                   doc.insertString(doc.getLength(), text, new SimpleAttributeSet());
              catch (BadLocationException x) {
                   x.printStackTrace();
         private void insertTextFieldInTextPane(String text,
                   JTextPane tp) {
              JTextField tf = new JTextField(text);
              tp.setCaretPosition(tp.getDocument().getLength());
              tp.insertComponent(tf);
         private void insertButtonInTextPane(String text,
                   JTextPane tp) {
              JButton button = new JButton(text) {
                   public Dimension getMaximumSize() {
                        return this.getPreferredSize();
              tp.setCaretPosition(tp.getDocument().getLength());
              tp.insertComponent(button);
         private void insertLabelInTextPane(String text,
                   JTextPane tp) {
              JLabel label = new JLabel(text) {
                   public Dimension getMaximumSize() {
                        return this.getPreferredSize();
              tp.setCaretPosition(tp.getDocument().getLength());
              tp.insertComponent(label);
         public TextPaneTest2() {
              StyledDocument doc = new DefaultStyledDocument();
              StyledDocument printDoc = new DefaultStyledDocument();
              JTextPane tp = new JTextPane(doc);
              JTextPane printTp = new JTextPane(printDoc);
              this.insertStringInTextPane("Text ", doc);
              this.insertStringInTextPane("Text ", printDoc);
              this.insertTextFieldInTextPane("Field", tp);
              this.insertTextFieldInTextPane("Field", printTp);
              this.insertStringInTextPane(" Text ", doc);
              this.insertStringInTextPane(" Text ", printDoc);
              this.insertButtonInTextPane("Button", tp);
              this.insertButtonInTextPane("Button", printTp);
              this.insertStringInTextPane(" Text ", doc);
              this.insertStringInTextPane(" Text ", printDoc);
              this.insertLabelInTextPane("Label", tp);
              this.insertLabelInTextPane("Label", printTp);
              this.insertStringInTextPane(" Text Text", doc);
              this.insertStringInTextPane(" Text Text", printDoc);
              tp.setEditable(false);
              printTp.setEditable(false);
              this.getContentPane().add(tp);
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.setSize(400,400);
              this.setVisible(true);
              JOptionPane.showMessageDialog(tp, "Start printing");
              try {
                   tp.print();
              } catch (PrinterException e) {
                   e.printStackTrace();
              try {
                   printTp.print();
              } catch (PrinterException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              new TextPaneTest2();
    }First the components are shown correctly in JTextPane, but when printing is started they vanish. So I created another textPane just for printing. But this does not work either. The components are not printed. Does anybody know how to solve this?
    Thanks!

    I do not know how I should try printComponent. From the API-Doc of JComponent of printComponent: This is invoked during a printing operation. This is implemented to invoke paintComponent on the component. Override this if you wish to add special painting behavior when printing. The method print() in JTextComponent is completely different, it starts the print-job. I do not understand how to try printComponent. It won't start a print-job.

  • How to reduce space between cell border and text ?

    I want to make a very small print of my class timetable. But I can't reduce the table size after a certain size. The major portion is taken up due to space between the cell borders and the text in them. Is there anyway I can reduce that space so that I can make the font size a little more and still keep the table size small.

    Assuming your are using Pages '09 (4.0.3) ..
    First select all the cells which you wish to change.
    Go to Inspector - Text Inspector, and reduce the Inset Margin

  • How to print jTable with custom header and footer....

    Hello all,
    I'm trying to print a jTable with custom header and footer.But
    jTable1.print(PrintMode,headerFormat,footerFormat,showPrintDialog,attr,interactive)
    does not allow multi line header and footer. I read in a chat that we can make custom header and footer and wrap the printable with that of the jTable. How can we do that..
    Here's the instruction on the chat...
    Shannon Hickey: While the default Header and Footer support in the JTable printing won't do exactly what you're looking for, there is a straight-forward approach. You can turn off the default header/footer and then wrap JTable's printable inside another Printable. This wrapper printable would then render your custom data, and then adjust the size given to the wrapped printable
    But how can i wrap the jTable's Printable with the custom header and footer.
    Thanks in advance,

    I also once hoped for an easy way to modify a table's header and footer, but found no way.
    Yet it is possible.

  • How to print off Web to Acrobat and not Reader?

    Hello,
    I have Adobe Acrobat Standard X (10.1.8) and Adobe Reader 9.5.5 installed on my PC (Vista Home Premium x64).
    When I go to print a page off the Web to PDF, the resulting document currently gets displayed in Reader rather than Acrobat. I would prefer that the new document show up in Acrobat instead, so that I can delete any unnecessary pages (article comments, ads, etc.).
    Is there any way to make it so that when a new PDF is created from the Web, the result shows up in Acrobat and not Reader? And if so, then how?
    In case it makes a difference in how you answer-- I would like to keep Reader as the default when opening an existing PDF to read it.
    Thank you.
    Message was edited by: jamadr: more information

    There is really no good reason to have both Reader and Acrobat installed on the same system since Acrobat does everything Reader does and much more.
    For what it's worth, Dov, over here in Mac-land, I find it really really useful to have both Reader and Professional installed. I find the casual reading experience in Reader to be much more convenient, and I'm much less likely to inadvertantly alter a file I only wish to read. By default the toolbars consume less screen real estate, which I find useful. Also for workflow reasons, I can have 20 PDFs open in Reader and 1 or 2 open in Professional, and can more easily keep them straight.  I am also under the impression that Reader is less resource-intensive in terms of memory footprint.
    Oh, and, of course, I find it useful to use Reader 10 because of unresolved bizarre performance problems with Reader 11 (reported to Adobe and that got some stillborn developer attention), while still using Pro 11 for editing and other pro-type tasks.
    (On the gripping hand, when I want to do something like OCR a page I am reading in Reader so I can copy-paste it elsewhere, it is annoying to have to then open it in Pro.)
    This is basically the opposite of your advice .
    I'm under the impression this is more viable on the Mac than Windows though? Or perhaps it is a disaster waiting to happen.

  • How to print out document list items (and with all comments!)

    Hi all,
    I am wondering how to get a good printout of document lists.
    In a web application I have some document list items and the users are adding many comments in it, so that the document list item doenst show all in the initial view, but scroll buttons to navigate up and down.
    I was surprised to read that the standard print functionality doesnt support document items.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/68ce8391886e47e10000000a422035/content.htm
    How can I print out a list of all document list items with all comments?
    Ist there a workaround?
    thanks in advance for sharing your experiences, br, Michael

    Thanks guys for trying to help me...
    Gabriel, I not wanna do "a lot of trix" to get this out of iCal when it should be solved by iCal (from my point of view).
    Dancing Brook, Yes I hope we will see that in the future. I am convinced that there is many of us out there who want to see that function in iCal, even if they not really missed it yet.
    I have already sent a request to iCal feedback (hope they noted). Maybe they will if we are many doing so...

  • How to print on the first side and the back side, like in a book?

    HP PHOTOSMART 6510 B 211 a
    Windows XP
    Product N° CQ 761B
    [serial number removed for privacy]

    Hi AUQUE,
    Here is a link to a document that will show you how to duplex (print on both sides of the paper ).
    Along with the document is a video. Hope this helps.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • How to give space between date mm and year in terms of bytes

    Hi Guru,
    In sapscript I want to give space in datae formate betweeen day and month , month and  year in terms of bytes.
    Example :
    if datae is 2009/08/18 then I want to move like   2009     08       18. Here the gap between the date field and month , year fields is in terms of bytes. Like 4 bytes gap between year and date, 5bbytes gap between day and month  in ECC6.0.
    Please help in this.
    Thanks,
    PJ.

    hii prakash,
                                  Use the Function Module.
    RP_FORMATING_DATE
    If you use this FM then automatically it will convert it to YYY MM DD format and then you can use as per your requirement 
    or you can do like this
    Use following code to change the date format from DD.MM.YYYY to YYYY MM DD
    DATA : DATE(10) TYPE C,
    DATE1(10) TYPE C.
    CONCATENATE DATE6(4) DATE3(2) DATE+0(2)
    INTO DATE1
    SEPARATED BY ' '.
    regards,
    Shweta
    Edited by: Shweta Joon on Aug 18, 2009 10:38 AM

  • How to print artwork/text for CDs and CD case

    I’m posting this in both iTunes and GarageBand, since I’m not sure which is more appropriate.
    I want to create sleeves, or jackets, or whatever they’re called for my CD cases. Does anyone know of a good program and materials that would work for this?
    I want it to be capable of doing the following:
    1) import artwork, and/or a photo, and print it on the front cover;
    2) be able to incorporate printed text on, or over, that;
    3) be able to include text for the inside of the cover (maybe a small photo or two, or artwork, on that inside cover (to list tunes and instruments played, for example);
    4) include compatibility to print on round paper that would adhere to the CD itself...along with some kind of little “thing” that would facilitate placing that, with some kind of adhesive I guess, onto the CD;
    5) and, be compatible with OSX 10.3.9 (Panther).
    Your advice, suggestions, deeply appreciated.

    To print the Jewel case for the CD in iTunes:
    1. Create and name the playlist you want for the CD
    2. File > Print
    3. Select the "CD Jewel Case Insert" button on the top of the window
    4. Select the style of CD Jewel Case insert you want from the pop-up list in the bottom of the window and read the description of the style and look at the picture of the style to understand what you'll get.
    To print onto the CD itself, you have three choices:
    1. The old fashioned round sticky label. There used to be many versions of this software available from many company's complete with software and labels for about $10-$20. These are great for making nice labels, but as mentioned in another post, can throw off the balance of the CD in the player and can in some instances make the CD unplayable. As a result, they're not as readily available nowadays. Try Office Depot or Office Max.
    2. Buy a burner that prints directly onto the CD. As mentioned, this can be expensive.
    3. Buy a printer which has the "print directly onto CD" option included. This is a little pricer than the average printer, but printers are pretty cheap nowadays so that's not all that bad.

  • How to print page in front and back in scripts

    hi,
    I want to know to know the how to print a page in front and back.

    HI Ragavendra
    set this
    <b>Print mode is D</b>
    With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
    <b>D </b>The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
    and other Print mode options are
    <b>Print mode</b>
    With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
    <b>' '</b> Currently active printing mode continues unchanged.
    <b>S </b>The page is printed in simplex mode. That is, the printer should print on only one side of the paper. If another mode was previously active, then the printer is switched to simplex mode with the start of the page.
    <b>D</b> The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
    <b>T </b>The page is printed on the first side of a sheet in tumble duplex mode. That is, the printer prints on both sides. The page on the second side is always inverted, so that the footer of the second page is printed opposite the header of the first page.
    If another mode was previously active, then the printer is switched to tumble duplex mode with the start of the page and continues printing in this mode.
    Print modes are currently supported for printers that use the PCL-5 language. These are printers that are defined with the following SAP device types: HPLJ_II, HPLJIIID, HPLJ4, LX4039, SNI20XX8.
    See the spool system (transaction SPAD) to check on how your printers are defined.
    The print controls for these functions are SPMSI (begin simplex printing); SPMDU (begin duplex printing); SPMTU (begin tumble duplex printing); SPMFS (print on first side of sheet in duplex or tumble duplex mode); and SPMBS (print on second side of sheet in duplex or tumble duplex mode).
    Regards Rk

Maybe you are looking for

  • Few questions on EB-SUS scenario?

    Dear Experts, I have few questions on EB-SUS scenario which you may help with your expertise. It will be helpful for those who are new to scenario? 1. EB (enterpise Buyer or SRM) -SUS scenario is used for requesting external staff? can it be used for

  • Activity Report iView

    Hello all, I have a question regarding Activity Report iView. We are using two portals. The support package level is SPS11 patch 6. The activity Report iView only works on one of the portals correctly. The data are displayed well. But the same iView

  • Nokia N8 does not delete mailboxes

    I created three mailbox accounts on Nokia N8, one with Microsoft Exchange, one with gmail and one company address. After the first time when all the emails were downloaded for all the three accounts. Now only emails form exchange server are downloade

  • My bt bill ? I feel that Im being ripped off!!!

    why is it when i phone bt with an enquiary about my last phone bill, (broadband usage package 1) i just keep getting told that i have to change my package? my last bill was £58.50,that was for december, my phone bill for calls was £0.90, or there abo

  • Can't delete artwork

    I pasted an album cover cover to a song that is corrpted and won't go away when I delete it. Any sugguestions? JJ Rogers