Decimal Values in print formats

Hi All,
I had set 4 as value for amounts and quantity after decimal in
Genaralsetting but in print formats i need only 2 values after decimals. I thinlk for this some caliculations are there
please give me solution
Regards
Srinivas

Hi,
In PLD, By default Total field will be available.
You create one Formula field just over the Total field and make the formula field to display and make the Total field is inactive (ie., Untick the Visible check box of the Total field).
Formula : Round(Field_XYX,2)
Let's assume that, Total field's field name is Field_XYX and Formula Field's name is Field_YXY. Then in Field_YXY you should have the above said formula.
I hope this could help you.
Raja.S

Similar Messages

  • In Scripts how to print the values in currence format

    Dear abap guru's,
    I am working on Purchase Order Script, copy from the standard script, after that wrote a one perform , in that added one new field to script, but value is printed like this formate : 1000.00, but i want to print 1,000.00 like this currence format. let me know the any solution
    thanks to all
    raj.

    Hi ,
    When you are populating the value in perform instead of assigning the value (using = ) pass it using WRITE TO.
    Like :  WRITE lw_total TO output-value.
    Declare lw_total as currency field.
    Regards,
    Rajitha.

  • Time format hours ("hh24") delim (.or,) (1/4) hour values as decimal value

    Dear all,
    What I need is a client (browser) site validation of values for a time recording system. The format should be as
    <hh24><Delimiter>(.(or),) 1/4 hours as decimal value (e.g. 15 minutes = 0.25). So as a result valid entrys should be. 00.00 as min., 24.00 as max.
    The "minutes"-part should only except full 1/4 hour values: 00, 25, 50, 75 or blank.
    More valid variation could be:
    .75 (45 minutes) should be considered as 00.75.
    1.25 , 9 ( = 9 hours)
    A colleague helped me and created the regexp pattern.
    (?<=\A)(([01]?[0-9]|2[0-4])[\.,]?)?([\.,](0{1,2}|25|50|75))?(?=(\z))
    It works perfect in "The Regex Coach", but sadly it does not work in a java script.
    My hope is, that someon already has a solution for this or a similar task.
    If so, please let me know and give me a hint.
    Thank you very much in advance.
    and best regards.
    Andre

    Hi Ben,
    thank you for your response.
    since I not only want to ask for help, I will let you konw our solution. It has been a little mind twisting
    However, Just in case someone is interestet in...
    function xaChk_TimeDecimalFormat(pItem)
       var check = $v(pItem);
       var regexpval = "^((([01]?[0-9])|(2[0-4]))?([,\.](00?))?|(([01]?[0-9])|(2[0-3]))?([,\.](00|25|50|5|75))?)$";
       if (check.search(regexpval,"g") < 0)
       {alert ('Ungültiges Zeiterfassungs-Format. \n gültig Werte sind: \n max. 24h und nur volle 1/4 Stunden als Decimalwert z.B. 0.25 für 15 Min.') };
    function xaChk_TimeClockFormat(pItem)
       var check = $v(pItem);
       var regexpval = "^((([01]?[0-9])|(2[0-4]))?([,\.](00))?|(([01]?[0-9])|(2[0-3]))?([,\.](00|15|30|45))?)$";
       if (check.search(regexpval,"g") < 0)
       {alert ('Ungültiges Zeiterfassungs-Format. \n gültig Werte sind: \n max. 24h und nur volle 1/4 Stunden als Minuten z.B. 0.15.') };
    ;Thanks again to all how wasted any thought on this. :-)
    Best Regards
    Andre

  • Format decimal values by using comma

    hi,
    Can anyone tell me how to format decimal value in JTextField by using comma. Since this JTextField is used to display amount,so i would like to put comma after three digits. That means it should look like this : 100,000,000.00. This JTextField is the total of another 9 JTextField values, that means when i edit values in another JTextField, the total value will be upated as well. I have used KeyEvent to do so , now i just have no idea how to apply comma in the total. Thanks for any help.
    Regards,
    marcalena

    Hmm....
    First off, this is not ideal... I would seriously consider updating your JRE...
    public class MyDecimalDocument extends javax.swing.text.PlainDocument
    ///init code
    public void insertString(int offset, String newString, javax.swing.text.AttributeSet set) throws javax.swing.text.BadLocationException
    //code to handle the inserts and restrict/apply various formatting....
    }Or check out [url http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Swing&qp=forum%3A57&qt=formatting+JTextField]this search for more...
    :)

  • Converting Time format to Decimal Value

    Dear All,
    How to convert time to decimal value for substraction of time and decimal value
    for eg l_time type tims
           l_dec type p.
    l_diff = l_time - l_dec
    Kindly let me know.
    Thanks in Advacne,
    Ranjan

    Hi,
    Try like this...
    PARAMETERS : tim TYPE tims,
                 y TYPE p.
    DATA : t TYPE string,
           t1 TYPE string,
           t2 TYPE string,
           t3 TYPE string.
    START-OF-SELECTION.
      t = tim(2).
      t  = t * 3600. " hours to second
      t1 = tim+2(2).
      t1 = t1 * 60.  " minutes to second
      t2 = tim+4(2).
      t3 = t + t1 + t2. " total time in second
      t3 = t3 - y.
    Regards
    Debarshi

  • Error saving purchase order data decimal values

    sir,
    PO was created with currency japanese YEN using Tcode ME21N . The net price was showing 142502300 (in JPY).
    when checked in EKPO table , it saved with a value 1425023.00  instead of  142502300 . 
    what can be done to correct this.      
    In PO Print out , it showing values as 1425023.00  which is wrong.
    SPRO>> NET WEAVER >> GENERAL SETTINGS >> CURRENCY>> SET DECIMAL values FOR CURRENCY CODES is showing 0 decimals against JPY (Japanese YEN)
    I want to know where else the Decimal values could have been set to 2 decimal places.
    FOr other currencies like US Dollars  there is no error.
    Regards,
    Srinivasa Murthy

    Hi Srinivasa,
    Use T. code OY01 and you can try 3rd option of decimal format that is 1234567, 89 for the same.
    Regards,
    Shailesh Verma

  • How to display integer values and decimal values in same column in a table

    hi 
    in my report amount column is there in that column integer values (2234) and decimal values (3562.34) 
    i want to print this values as 1000 separate as like 2,234 as integer and 3,562.34 as decimal
    but this values print like 2,234.00 as integer and 3,562.34 as decimal

    Hi akilreddy,
    Per my understanding you have an field which data type may be "float" in the DB, so it have value which format like "2234" and "3562.34" in the same column, now you want to format them differently in the report, right?
    I have tested on my local environement and you can use the expression in the custom format in the Textbox properties to do this:
    Right click the field which you want to add the format and select the "Text Box Properties"
    Select the "Number" on the left pane and using expression below in the Custom format:
    =IIF(Split(Fields!yourfieldname.Value,".").Length=2,"#,###.##",Nothing)
    Or you can just use "#,###.##" in the format.
    Preview you will go the result like below:
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Update fixed decimal value

    I am trying to do a setColumnValue("ColumnName", value) for a fixed decimal field. The format of the field is defined by:
    TopStratRowSet.setFormatterInfo(new FormatterInfo(DefaultFormatManager.NUMERIC_VALUE,"###0.00"));
    I want to set the top value the same as the bottom of the previous record. I get the bottom value, print it and it looks Ok; then when
    I try to do the setValue, I get a classCast Exception. At first I tried the value as an ImmediateAccess type, then I tried
    values that were oracle.jbo.domain.Number type and no matter what, I alwas get classCast Exception.
    In my application, I have frequently updated values with setColumnValue method, but the fields have always been strings or
    integers until now.
    I have tried to log a tar, but something seems wrong with metaLink today. At first I could not log in, then when I got logged in,
    my TAR option is missing.
    I would really really appreciate any advice that anyone has.

    Can you try changing the column value thro' the Immediate access interface ?.
    import javax.infobus.*;
    AttributeInfo mycol = new AttributeInfo(...);
    ImmediateAccess ia = myCol.getImmediateAccess()
    ia.setValue( ....) ;
    1. Can you try ia.setValue( "9.99");
    I am trying to do a setColumnValue("ColumnName", value) for a fixed decimal field. The format of the field is defined by:
    TopStratRowSet.setFormatterInfo(new FormatterInfo(DefaultFormatManager.NUMERIC_VALUE,"###0.00"));
    I want to set the top value the same as the bottom of the previous record. I get the bottom value, print it and it looks Ok; then when
    I try to do the setValue, I get a classCast Exception. At first I tried the value as an ImmediateAccess type, then I tried
    values that were oracle.jbo.domain.Number type and no matter what, I alwas get classCast Exception.
    In my application, I have frequently updated values with setColumnValue method, but the fields have always been strings or
    integers until now.
    I have tried to log a tar, but something seems wrong with metaLink today. At first I could not log in, then when I got logged in,
    my TAR option is missing.
    I would really really appreciate any advice that anyone has.

  • How do I convert an alpha character from a text string to its decimal value

    I am trying to find out the actual decimal value of a character in a string. So far the code below is as far as I got. I am able to get what I guess is a byte value.
    This is for a school assignment:
    The idea behind what I am trying to do is to design a hash function to store dictionary words into a bucket array hash table, without using the existing Hashtable.class
    so far this is what I can come up with to get some kind of value for each character in the string, however, what I am trying to get is the decimal value for each character.
    public static void main(String args[]){
         String word = "abcdefghijklmnopqrstuvwxyz";
         for (int i=0 ; i < word.length(); i++){
         System.out.print((word.substring(i,i+1)));
         System.out.print("\t : "+((word.substring(i,i+1))).getBytes());
    Thankyou for any replies.

    I'm not sure I completly understand your goal- what you mean by "decimal value", but, if you simply want to find the byte value of each character in a String, you would probably be better off using getBytes() in a way like this,
    byte [] bytes = string.getBytes();
    Then, if you need to map that to a charcter, you could use a for loop like
    for (int x = 0; x < bytes.length; x++) {
    table.put((char)bytes[x], bytes[x]);
    which assummes this bucket class of yours allows primitive data types like so (in Hashtable or HashMap, you would have to use a wrapper Object). I guess, my point reduces to, don't use substring and string search methods (like indexOf()), unless you have to because they are more expensive then just maping the array of bytes and chars, which seems to be what you are interested in doing.

  • Smartform -Network printer format Issue

    Hi,
    I can print fine using my YPCC default printer.
    But When i do through network printer FORMAT is getting Disturbed( Values are printing in next line).How can we handle this? Do we need to do some driver program modifications?
    Here are the parameters in Driver program
    CALL FUNCTION fm_name
          EXPORTING
            archive_index        = toa_dara
            archive_index_tab    = arc_ind_tab
            archive_parameters   = arc_params
            control_parameters   = ls_control_param
            mail_appl_obj        = ls_recipient
            mail_recipient       = ls_recipient
            mail_sender          = ls_sender
            output_options       = ls_composer_param
            user_settings        = space
            wa_itab              = wa_header
          IMPORTING
            document_output_info = document_output_info
            job_output_info      = job_output_info
            job_output_options   = job_output_options
          TABLES
            wa_dep               = item_itab
          EXCEPTIONS
            formatting_error     = 1
            internal_error       = 2
            send_error           = 3
            user_canceled        = 4.
        IF sy-subrc <> 0.
          WRITE: / 'ERROR in passing vars to the smartforms '.
        ENDIF.
        ls_composer_param-tdnewid = space.
        ls_control_param-no_dialog = 'X'.

    YOu need to modify the smartform not the driver program to print all lines the way you want by changing font size, reducing line length...etc..etc..
    It's printing fine on the default PC printer, because, it uses windows printer driver to render the output, where as SAP network printer uses SAP printer driver to generate the printer commands, there's always difference in the output between the two drivers.
    Regards
    Sridhar

  • SAP report print formats

    Hi!
    There are several report print formats in an ABAP report. You can choose between them during printing, some examples: X_65_80 (80 columns, 65 lines), X_90_120 (120 columns, 90 lines) and so on...
    Is there away to define more "standard" like printer formats?
    I know, I can give anything after the REPORT statement (like REPORT zreport LINE-SIZE 99 LINE-COUNT 99) but these are not standard and mostly the printers don1t like them.
    Thank you in advance
    Tamá

    Hi Tamas,
    When you run the report, the spool will be displayed on the screen. At this time, click on print,the system will show the print dialog. Click on properties, this will spool request attribites dialog. Click settings. in the next dialog box, select the required field, and the value and select the validity as required. This way you can set the standard format for all reports.
    Ravi

  • Rounding off to a variable value to 4 decimal values in sap script ouput

    Hi All,
    I have a value getting displayed in sap script output as 235.6789 i want to Round off this variable value to 4 decimal values!
    What is the formatting option need to be used & how!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    1.In layout just call that variable, where you need like:
    &variable(.4)&.
    Just see these:
    &symbol(Z)&  Omit Leading Zeros 
    &symbol(S)&  Omit Leading Sign 
    &symbol(<)&  Display Leading Sign to the Left 
    &symbol(>)&  Display Leading Sign to the Right 
    &symbol(C)&  Compress Spaces 
    &symbol(.N)&  Display upto N decimal places 
    &symbol(T)&  Omit thousands separator 
    &symbol(R)&  Right justified 
    &symbol(I)&  Suppress output of the initial value
    Regards,
    If helpful reward with points(Don't forget).

  • Loading decimal  value to an infoobject of type char

    I have an extract structure with field timestamp, which is of type dec and length 15. Now i want to load this value to an infoobject in ODS. But this infoobject is of type char and length 18. when infopackage loading is scheduled it is giving the following error. Record 1 :InfoObject /BIC/IFITMSTMP does not contain alpa-conforming value 20061206084944.
    Is it because i tried to move a dec valu into a char field with a different length? If so  how will i load a decimal value of length 15 to a char of length 18. Can anyone please help me with this?
    Thanks in advance.

    if u r using BI7.0
    go to the datasource of the cube
    in the general info tab of the datasource
    there is a check box with PSA not typed
    check it
    if u check it all the values from the external source will be converted into character format irrespective of their data type

  • Loading a decimal value to an infoobject of type char

    I have an extract structure with field timestamp, which is of type dec and length 15. Now i want to load this value to an infoobject in ODS. But this infoobject is of type char and length 18. when infopackage loading is scheduled it is giving the following error. Record 1 :InfoObject /BIC/IFITMSTMP does not contain alpa-conforming value 20061206084944.
    Is it because i tried to move a dec valu into a char field with a different length? If so  how will i load a decimal value of length 15 to a char of length 18. Can anyone please help me with this?
    Thanks in advance.

    if u r using BI7.0
    go to the datasource of the cube
    in the general info tab of the datasource
    there is a check box with PSA not typed
    check it
    if u check it all the values from the external source will be converted into character format irrespective of their data type

  • Error saving purchase order data decimal values in SAP R/3

    sir,
    PO was created with currency japanese YEN using Tcode ME21N . The net price was showing 142502300 (in JPY).
    when checked in EKPO table , it saved with a value 1425023.00  instead of  142502300 . 
    what can be done to correct this.      
    In PO Print out , it showing values as 1425023.00  which is wrong.
    SPRO>> NET WEAVER >> GENERAL SETTINGS >> CURRENCY>> SET DECIMAL values FOR CURRENCY CODES is showing 0 decimals against JPY (Japanese YEN)
    I want to know where else the Decimal values could have been set to 2 decimal places.
    FOr other currencies like US Dollars  there is no error.
    Regards,
    Srinivasa Murthy

    Hello Srinivasa
    Please check the forum Rules of Engagement - https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement.
    Cross posting is not permitted. This issue is already raised in the application area forum which is probably correct. This does not look like a PI technical issue.
    Regards
    Mark Smyth
    XI/PI Moderator

Maybe you are looking for

  • Scripts To Check Database Growth in Oracle 10g

    Hi All, I need your help developing a script to find out the database growth in Oracle 10G on daily, weekly and monthly basis. In our production database tablespace growth is huge and we are adding data files frequently. Management is asking about th

  • Certificate Not Verified

    There seems to be a problem with Certificates. My younger brother has played an online game called RuneScape for several years. What used to happen on our old mac was the first time he would load the game a cirtificate thing would pop up, and he woul

  • How to Update Business Place & Sec.Code Field in Posted Document

    Dear All, Pls suggest how to update Business Place & Section Code field in documents which are posted without entering Business Place & Section Code. Pls tell me how to achieve this without using Validations & Substitutions. Any table entries can be

  • IPad not displaying some photos after transfer.

    iPad not displaying some photos after transfer from Windows Vista PC, only displays the word "JPG".

  • Language setting for ipod 160

    How do you set the Language on the ipod 160 my ipod was preset when I took it out of the box I need it set to US English I order it from apple.com