Decimal justfication in a table...

I have a table layout region, under that a row region under that a cellformat, under that a table with items. I want the values in the table to line up on the decimal point like this:
$45.03
$123.23
I am not sure what property to set to make this happen. I am sure it is something obvious I am missing.

I could not find any property , so i done the simmilar changes it in the get method of specific coulmn in vo row impl level. Here is the example function that i did , you can call it from ur ur get method of rowimple with teh speicic format that u are looking for.
public String formatCurrency(String amount)
OANLSServices nlsService = ((OAApplicationModuleImpl)getApplicationModule()).getOADBTransaction().getOANLSServices();
return nlsService.NumberToString( nlsService.stringToNumber(amount),"###,###,###,###,###;-###,###,###,###,###");
}

Similar Messages

  • Round float to 2 decimal place in the table

    Hi,
    One field in a table in my DB has float datatype.
    I insert some data into this table. The value read from a textbox I input as 0.02 for example. after insertion, I select the table and the field of the table shows the number as 0.0199999995529652
    Where did I do a wrong thing? how can I make it exactly as 0.02 in the table?
    Thanks.

    Hi there
    Float data types have known problems with precision, see
    here
    Since FLOAT and REAL are approximate numbers, you can run into all kinds of presentation / storage issues if you use them inadvertently. 
    They have their place, and if you are using scientific data that requires the properties of floating point numbers, th they are the right choice.  But in most cases, I think this is another evolutionary thing that happens accidentally when you upsize
    from Access.  You are much better off using DECIMAL or NUMERIC (which are functionally equivalent) unless you really know that you should be using FLOAT.
    You should consider changing the datatype to decimal or numeric if you need it to be more precise.

  • How to restrict the decimal entry on dynamic table in adf 11 .6

    Hi All,
      JDev version 11.6
      I have a usecase based on dynamic VO. How to restrict the decimal numbers on table columns . When user enter the decimal number .I have to show error message.
      In order to achieve above requirement .I have added value change listener on table column .its not working as expected
    <af:table rows="#{bindings.EmployeeDynamicVO.rangeSize}"
                      fetchSize="#{bindings.EmployeeDynamicVO.rangeSize}"
                      emptyText="#{bindings.EmployeeDynamicVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                      var="row" rowBandingInterval="0"
                      value="#{bindings.EmployeeDynamicVO.collectionModel}"
                      selectedRowKeys="#{bindings.EmployeeDynamicVO.collectionModel.selectedRow}"
                      selectionListener="#{bindings.EmployeeDynamicVO.collectionModel.makeCurrent}"
                      rowSelection="single" id="t1"
                      styleClass="AFStretchWidth" autoHeightRows="-1"
                      columnStretching="last" contentDelivery="immediate" >
              <af:forEach items="#{bindings.EmployeeDynamicVO.attributeDefs}"
                          var="def">
                <af:column headerText="#{bindings.EmployeeDynamicVO.labels[def.name]}"
                           sortProperty="#{def.name}" id="c1">
                  <af:inputText value="#{row[def.name]}" id="ot1"
                                valueChangeListener="#{backingBeanScope.EmployeeBean.validateINputs}"
                                autoSubmit="true">
                    </af:inputText>
                  <af:outputText value="#{row[def.name]}" id="ot6"
                                 visible="#{def.name eq 'Dummy'}"/>
                </af:column>
              </af:forEach>
            </af:table>
    So appriciate if any alternatives on above usecase. Thanks in advance

    HI
    Expected :as soon as user enter the decimal values in table column , it should throw the error message in new small new window
    Getting the value change listener and validating , but its working only tab out (Because VO is dynamic )
    please suggest us any reg expression and Validators to achieve the above scenario ?

  • Decimal Places in Pivot table

    Hi Gurus,
    When I create a pivot table with a measure and I choose "Show Data as ...
    percent of something (for example section) I get the result with 1 Decimal Place.
    How to modify it for 2 or more Decimal Places?
    Thanks
    Laszlo

    Hi Laszlo!
    We have found and discussed the answer already, but to more people can see it I write it.
    When You have the results already, You can use the 'Advanced' page to see the XML source. There you can modify the code carefully. Change the section:
    <saw:dataFormat xsi:type="saw:percent" minDigits="2" maxDigits="2" scale="2"/>
    Change maxDigits to the number of decimal digits You wanted.
    Although we found the answer on the course, I found later this page - also could help:
    http://blog.trivadis.com/blogs/andreasnobbmann/archive/2008/07/15/quot-percent-of-quot-in-obiee-s-pivot-tables.aspx
    Best regards,
    Tamas

  • How can I use a right,  left or decimal tab in a table?

    As soon as I set up a left, right, center or decimal key and then hit the tab key in order to position a number, the cell highlight switches to the next cell and the number does not move to the position desired. I can set a left, right or center position, of course, but I want to have more control over the number's position in the cell. Any ideas? Thank you, Lou

    I realise now that once you type numeric data in the cell (aligned with your tab), as soon as you leave the cell, Pages decides what kind of data you have typed and makes its own mind up about how to align it. Your best bet (and mine, since I have been struggling with this behaviour) is to use the Cell Formatting options in the Inspector, and format the data as Currency or Number, with 2 decimal places. Add the Accounting Style tick box and you get the Currency symbol at the far left of the cell and the number at the far right. By resizing the width of the cell you get pretty much the effect you want.
    There is also an additional alignment option on the formatting bar at the top when you are in a cell which does 'Auto align table cell based on content'. That might be useful sometimes, too.

  • Changing Decimal Places for Currencies (Table V_TCURX)

    The instance is ECC 6.0
    We need to change the decimal places for a currency from 0 to 2 decimal places. Is there any impacts of doing that?
    Also need to add some currencies which are not in the table. Is there anything need to be careful while doing this. If this table is updated, do we need to update any other tables also which may be impacted?

    Hi,
    It is not recommended that when postings have already been made, that a change in the currency be done, as amounts posted can become invalid or incorrect as a result (ie USD 100->1.00), which is most critical in production environment Please go through the note 137626 When you made changes via OY04, the effect of which is across all clients.
    To change the number of decimal places for a currency already in use, you must convert all the tables in the R/3 System that contain currency fields, so that the data integrity remains. This cannot, however, for both organizational reasons and under the runtime aspect, in a productive system.
    You must never change decimal places in a productive system if you have documents posted with this currency. Such a change could lead to inconsistencies in these documents already posted.
    In case you really decide to use decimals you may consider to use SAP conversion services for them to convert all documents aready posted as explained in note 434349.
    Additional inforamtion:
    Note No.  137626 - FAQ: Decimal places for currency codes
                     126857 - Display of amts with correct decimal places in SE16
                       53206 - Processing of currency fields
                         9574 - Currency fields on selection screens
    Regards
    Ravinagh Boni

  • Decimal place in dynamic table

    Hi All,
    I have created a dynamic table with selected fields.
    Copied data from one internal table to dynmic table. For  DEC type data I am getting only integer part no decimal part, where as for CURR it is showing full (inclding decimal)
    How to solve this problem.
    I am using lvc_t_fcat
    for RFMNG form vbap.
    in lvc_t_fcat it is showing  intlen = 5 and datatype = DEC  inttype  = P.
    But the data transfering only interger part.
    -- Field catalog with the fields the user selected, used as input
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = t_alv_cat[]
        IMPORTING
          ep_table        = t_new_table.
    *-- Create ref to the newly generated table <fs_table>
    *-- Plus a new Line with the same structure as the table.
      ASSIGN t_new_table->* TO <fs_table>.
      IF <fs_table> IS ASSIGNED.
        CREATE DATA w_new_line LIKE LINE OF <fs_table>.
        ASSIGN w_new_line->* TO <fs_line>.
      ENDIF.
      CREATE DATA w_new_line_ori LIKE LINE OF t_datatable.
      ASSIGN w_new_line_ori->* TO <fs_line_ori>.
      LOOP AT t_datatable ASSIGNING <fs_line_ori>.
        MOVE-CORRESPONDING <fs_line_ori> TO <fs_line>.
        APPEND <fs_line> TO <fs_table>.
      ENDLOOP.
    Advance Thanks
    Balamurugan.R

    Hi vijay,
    Thank you. It helped me.
    So, to create dynamic table , the following fields are enough?.
    Ref_field
    ref_table
    decimals
    fieldname
    datatype
    inttype
    intlen
    Thanks,
    Balamurugan.R

  • Decimal change in BSEG table

    Hi Sapiens,
    I have a  very peculiar doubt. I have set the currency INR to 3 decimal places. After posting a document when i check the same information in BSEG, the amount updated in PSWBT is correct (ex 900.000) but the amount updated in DMBTR and WRBTR in (9000.00)
    Please advise me on the same.
    Regards
    MS

    Hi,
    bseg-wrbtr (and dmbtr) are correct
    and always fields with <b>2</b> decimals.
    You can depict your value fields,
    if you have customized table tcurx, with the command:
    write zfield currency bkpf-waers. (here INR)
    regards Andreas

  • Round 3 Digits before decimal in Chart and Table

    Hi Guys,
    Do you know where I can find the option/property in the chart and table to round 3 digits before decimal. Refer snapshot below:
    For example, in below case Y axis original value is 40,000, 80,000 etc. but it should show on the graph and table without '000' 
    Thanks.
    Warm Regards Badal Ratra

    Hi Badal,
    After testing the issue in my local environment, we can refer to the following steps to achieve your requirement:
    Right-click the vertical axis (or textbox in table) to open the Vertical Axis Properties (or Text Box Properties) dialog box.
    Click Number in the left pane, then select Number under Category group.
    Set “0” as Decimal places, select “Use 1000 separator (,)” and select “Show values in” with “Thousands”.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Displaying decimal value in the table!

    Hi All,
    Please help me for this.
    I am calling a BAPI function into webdynpro But In R/3 side one "totalvalue"  column value displayed as Decimal like 3.45 But the same BAPI I am using in webdynpro.It displays Only 3 only How can i display "3.45"
    Please help me.
    Here Iam calling BAPI function directly .
    Thanks In advance
    BHI.

    Thanks for your immediate response.
    Here I maapped the BAPI Funtion Directly .
    There is no chance to see the this is Int or Decimal.
    It is mapping to Directly BAPI function path.
    In Structures showing Element name "total" and builtintype is "Decimal" and length=15 and decimals 2 .
    Could you pls guide me how to display this Decimla structure values into webdynpro.
    Pls help me.
    Thnks
    BHI

  • Showing a floating decimal in a adf table

    hi there,
    i hava created a adf table out of a data control, the problem in the bean i have strings and a double value.
    The strings a shown, but the double value (very tiny values like 1.36E-6) are rounded to 0, but thats isnt well in my case....
    so how can i show the floating point notation???
    thx
    grettings
    hannes

    Where do you get the floating point numbers from? From the db via an entity object (EO) or a view Object (VO) or from an EJB?
    You only mentioned that you used a data control.
    If the values are read from the DB and your business layer uses EOs and/or VOs, you go to the model project, search the EO in question in the application navigator and double click it. Then select the 'Attributes' section of the wizzard and follow the instructions from the previous posting.
    Timo

  • In a pages table change the decimal point to a comma

    I live in Italy and love it. However, there are issues. One that you might be able to help me with is changing the usual decimal point in a table to a comma. In Italy they use a comma for separating change from dollars instead of the usual decimal point.

    Scott Fox wrote:
    I live in Italy and love it. However, there are issues. One that you might be able to help me with is changing the usual decimal point in a table to a comma. In Italy they use a comma for separating change from dollars instead of the usual decimal point.
    I apologize but _*in many countries*_ the usual decimal separator is not the decimal point, it's the comma.
    It's time to understand that American habits aren't the universal rules or ways of life !
    I'm not saying that American habits are bad, just that they are local ones, not better than others.
    Yvan KOENIG (VALLAURIS, France) mercredi 30 septembre 2009 16:01:23

  • Changing Decimal places in table TCURX

    Hi There
    We have a business requirement to change the decimal places in table TCURX from 3 Decimals to 5 Decimal places. No previous postings have been made in foreign currencies.
    If no transaction data has been posted in foreign currencies yet, will this have an impact?
    What will the impact be?
    Regards

    Hi,
    Refer to this SAP text:
    In the R/3 System tables currency fields are stored as decimal figures with a variable number of decimal places. The decimal point is not stored in the field in the database. Instead, each currency field refers to a currency key field. In this transaction you assign the number of decimal places to this currency key uniquely. Example: If you have set currency USD to have two decimal places and you post an amount of 100 USD, an amount of 10000 USD is stored in the currency field in the database. Not until this
    amount is processed further or is output does the system use the currency key from the reference field to determine the number of decimal places via this table. In this way the table content can be interpreted correctly for further processing or formatted for output with the correct punctuation. If after posting you changed the number of decimal places for USD, for example, to 3, the existing field content of 10000 would be interpreted for futher processing or output as 10 USD (10.000). This would mean that the contents of tables across the system would, for all currency fields containing an amount in USD,
    be interpreted incorrectly by 10 per cent. To change the number of decimal places for a currency already in use, you must convert all the tables in the R/3 System that contain currency fields, so that the data integrity remains. This cannot, however, for both organizational reasons and under the runtime
    aspect be carried out in a productive system. The following changes to the TCURX table can
    thus lead to the loss of data integrity if you make the changes in a productive system or transport them into a productive system:
    o Change to the number of decimal places of an existing currency
    o Deletion of an entry from the TCURX table (corresponds to changing the decimal places to the standard value of two decimal places)
    o Insertion of an entry in the TCURX (corresponds to changing the standard value of
    2 decimal places to a different value), if this is a currency code that already exists
    Uncritical changes are any made to this table during the Customizing of a new installation or the insertion of TCURX even during operations, if the currency codes have just been entered in the TCURC table using transaction OY03, signifying that no postings to these currency codes can have been carried out yet.
    Regards,
    Eli

  • Decimal Entry in Table control

    Hi,
      I need to insert currency value to my user table thro table control.
    My table name is ZUVRATE.
    Particular field name is
    DMBTR DMBTR  CURR  13  2
    Reference field is T001-waers.
    i have created one table control in screen painter with value column.
    My problem is, i cant enter the decimal value  in the table control.
    If i enter the decimal value, please enter numeric error is coming?
    what is the error?
    Thanks,
    Neptune.M

    Hi,
      Change your system settings
      System>user profile>Own data-->Defaults(tab)
      in that change the decimal Notification .
      The second one is what U want.
      U need to logoff and Logon to the server.
      Don't forget to reward points if helpful.
    Regards,
    GSR.

  • Regarding  decimal entry in table control

    Hi,
       i am using one screen which is containing a table control. In that one field is called value(Local Currency value)
      Before that i  have created one table called zuvrate.
    In zuvrate , i have declared 'value'(one field of my table) as dmbtr data type(currency with 13 , 2 ) and
    reference field is t001-waers.
       My problem is, if i enter decimal value in that particular column in my table control, 'please enter numeric value ' error is coming.
      for example if i give 23.34 then error is coming
       elseif i give 23 then ok no error.
      How to enter decimal value in my table control?

    Hi,
    The reference field you have specified i.e. waers has no decimal places. Give the reference field which has the same number of decimal places as you want.
    Hope it helps..
    Lokesh
    pls. reward appropriate points

Maybe you are looking for