How to define the format for numeric field ?

Hello
I have Amount field and I would to define the format to be ( XX.XXX,000 )
How can I do this ??
I'm new in ADF and need your help ..
rgrds
Edited by: moh3li_pal on Mar 1, 2010 8:05 AM

i have the same problem i try with pattern "###,###.##" but the application adf is the inverse "###.###,##" , this a bug or the pattern errornious.??Hi Joaquin. This is not a bug, although this is a little difficult to explain without face-to-face communication :D The confusing thing here is the difference between the 'special pattern characters' and actual output characters (which are chosen based on your locale).
If you check the Java DecimalFormat class (which provides the rules for formatting) you'll see the following:
Using , in the pattern = Grouping separator
Using . in the pattern = Decimal separator or monetary decimal separator
According to your locale, the grouping separator is '.' and the decimal separator is ','. So the pattern you have specified does dictate that you should get the result you have found.
You either need to change your locale settings (best option) or cheat by switching the , and . in your pattern.

Similar Messages

  • OBIEE Presentation Services : Default formatting for numeric fields

    Hello all.
    I need help in setting default formatting for numeric fields in criteria. If a user adds an numeric field, it does not have any formatting associated with it. I want to know how do you set default formatting (for example if user adds sales measure it should appear in default format like $1,000 or even with decimal places).
    Please help.
    Thank you.

    Hi,
    1) We have so many subject areas. If we select "system wide default for this data type", is this change going to reflect in all subject areas.No should do this subject area wise.
    2) Will this effect if we migrate from dev to prod environment.Yes it will effect.
    I hope u will follow this to-
    http://forums.oracle.com/forums/ann.jspa?annID=939 :)
    Regards,
    Srikanth

  • How to find the Ranges for a field ?

    Hello All,
               Can anyone tell me how to find the ranges for a field.
    <b>1</b>, i.e say I want the Ranges Structure for the field LIFNR.
        The ranges structure for this is "<b>RANGE_LIFNR</b>".
        This I used in my Program since I know it previously.
        But now I want the ranges structure for the field <b>VBELN (Delivery Document).</b>
        I  don't know what is it !!!!!
    <b>2</b>, Is there any procedure to know the ranges structure for a particular field ?
    Regards,
    Deepu.K

    Hi Deepu,
    Using 'Where used list' you can able to find out RANGES tables.
    For VEBLN range table is --> CRM_AC_ASSIGN_VBELN
    If you using a program defined as shown below.
    DATA: r_vbeln type ranges of vbeln.
    The above statement also creates ranges structure in Runtime.
    Procedure finding range table structures
    go to SE37 -> Enter domain or dataelement value
    Go to where used list --> search for 'Structures'
    After getting all structure  --> Click 'SEARCH' butoon in tool bar --> Search for 'RANGES' word
    You can get all ranges tables in the search window
    If helps plz reward points.
    Regards
    Bhupal Reddy

  • HOw to  find the text for PERSK field in infotype 0001

    hi all
    HOw to  find the text for PERSK field in infotype 0001

    Hi
    T503T : contained the similar informative text for PERSK . read this for T503T-PTEXT.
    ..lakhan

  • How to define the texts for UI element Dropdownlistbykey?

    Hi everyone,
      I don't know how to define the texts for Dropdownlistbykey. It seems that Dropdownlistbykey has an attribute "selected key", but where can I bind the texts I want to display when user clicks the downwards
    arrow?
    Thanks in advance.

    hi,
    you can use this code :
    method WDDOINIT .
      DATA : node_info TYPE REF TO if_wd_context_node_info,
             value1 TYPE wdy_key_value,
             set TYPE wdy_key_value_table,
             k1 type string value 'M',
             v1 type string value 'MAGO',
             k2 type string value 'S',
             v2 type string value 'Saurav'.
      value1-key = k1.
      value1-value = v1.
      APPEND value1 to set.
      value1-key = k2.
      value1-value = v2.
       APPEND value1 to set.
    node_info = wd_context->get_node_info( ).
    node_info = node_info->get_child_node('FOR_DROP').
    node_info->set_attribute_value_set( name = 'DROP_KEY'   value_set = set ).
    I hope it helps.
    Thanx.

  • How to populate the data for additional fields in custom report of fbl5n tr

    hallo friends,
    i ha ve to add some fields to the output of custome report of transaction FBL5N.
    Till now i have only added the fields to the output.
    Now i have to write the code to populate the data for those fields in the program.
    1.     Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
    2.     Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
    3.     Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
    4.     Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
    5.     Risk Category: (Table: KNKK; Field Name: CTLPC)
    6.     Credit Info Number: (Table: KNKK; Field Name: KRAUS)
    7.     Rating: (Table: KNKK; Field Name: DBRTG)
    8.     Payment Index: (Table: KNKK; Field Name: DBPAY)
    9.     Credit control area: (Table: KNKK; Field Name: KKBER)
    10.     Company code: (Table: KNB1; Field Name: BUKRS)
    11.     Sales Organization: (Table: KNVV; Field Name: VKORG)
    These are al fields i have to populate in the program..
    MY ATTEMPTS:
    I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
    And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
    Can anybody tell me how should i proceed..
    thanks in advance.

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • How to update the path for a field which is of type textarea

    Hi,
    1.I have multiple record block,i need to update the textarea field in this multi entry block.I have put a for loop to achieve the same,however i'm able to update the path for text field,checkbox,selecttype,but am unable to update the path for field which is of textarea.Please suggest.
    2. Also i have another problem which occurs randomly.although i have record for a button click event in  my property file,button click is not happening during the playback.am getting error asVariable "obj.libraryname.web_button_BTN_1" not found for string:
    please not i have entry for the above button in my property file.
    Please suggest.

    Say i have 5 rows then
    for(int i=1;i<=5;i++){
    String Newpath = updatepath(eval("{{obj.libraryname.web_input_text_fieldname}}"),i)
    web.text_area(Newpath).setText("Text to be set")
    Below function is used to update my path
    public String updatepath(String path,int i) throws exception {
    String FPath = "";
    if(i<2) {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    } else {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+(i-1)+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    return Fpath
    anyother way to update path and set the fields in mutiple block is appreciable
    thanks
    Suresh

  • How to define the style for JTextArea using synth style xml file.

    Hi all,
    How can we align the text inside the JTextArea using synth style xml file.
    We defined a style for the TextArea. But the text is displayed immediately after the border. So we want to provide some space between the border and the text.We specified the insets as given below. But it is not reflecting during runtime.
    <insets top="3" left="3" bottom="3" right="3"/>
    Please help me if any one knows

    Hi Anju,
    This may help you.
    http://www.xenta.nl/blog/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    Preferrence Variable can be updated either thorugh EM console or ConfigPlan
    Regards,
    Richa

  • How to get the keys for a field in the dropdown list?

    The dropdown list of payment terms on an account is unfortunately very big, containing al lot of different values, in our system and therefore very confusing for the user working with Web UI version 5.2 to pick the right one. The keys (code like e.i Z077 or ZO23) are not stated in the list available for user. Is there any way in the system to flag if the different fields should show boths the keys(codes) and the description of the values in the field as Payment terms, etc.
    In the ERP SAP Gui it is possible to activate if you want the keys should be shown in all drop down list.
    If this is not possible for all the fields at one time, what can be a solution to have the keys in the drop down lists, any suggestion will be very valuable for us.
    Kindly regards
    Camilla

    HI Joost
    No it is not that simple, that is not a solution for us. The fields are maintained i our backend system and replicated to CRM, and these fields descriptions are also printed at Order confirmations and invoices, and we do not want the keys that do not give any meaning  to be visible to customers.
    BR
    Camilla

  • How to define the directory for download technical system?

    Hi,
    I'm trying to export the technical system from SLD, but is showed the following message: "/usr/sap/XIP/DVEBMGS76/j2ee/cluster/server1/apps/sap.com/com.sap.lcr/servlet_jsp/sld/root/admin/download/export_20061205_114437.zip (A file or directory in the path name does not exist.)".
    But the "download" directory do not exist. Can I change this path?
    I don't have permission to create a directory in Unix, where the XI was installed.
    Thanks.

    Why you export the technical system from SLD ?
    Which step you follow in order to make the export ?
    Sandro

  • Calculate the % of a numeric field

    Hello,
    how to calculate the % of a numeric field ?
    Thank you.

    Well for example:
    you have a numeric field called NumericField1
    you want to know what is 15% of NumericField1
    NumericField1.rawValue * 0.15
    if you want to add 15% to NumericField1
    NumericField1.rawValue * 1.15
    if you want to remove 15% to NumericField1
    NumericField1.rawValue * 0.85

  • How to define document protocol for Custom/Generic message of ASCII types

    We need define for B2B document protocol for Custom over Generic message type to receive/process ASCII message (either fixed or indefinite length) from Trading Partner, can anybody tell us if you have done it with detailed example and instruction:
    1) In creating protocol revision/document definitions, do I need an Edifecs .ecs file? if yes, how to create the format for indefinite string? if not what I should put in document
    definition for 'IDoc ecs File' ? (we actually we may have two different types
    of ASCII message, not sure how to differentiate them)
    2) Does Identifying expression need message/document translated into XML first ? since it's for
    'Identifying XPath Expression' which implied existence of XSD
    3) Please provide detailed example you accomplished this in B2B
    Thanks in advance for any help!

    Yes its something on the similar lines but looks like this comparator needs to be at some specific place.
    I tried to implement comparator interface in the custom domain data type class but it still throws the same exception.
    Looks like RowComparator needs to be defined somewhere. any idea where?
    The complete exception is below:
    Caused by: oracle.jbo.JboException: Cannot find compare routines for test.MyString
         at oracle.jbo.RowComparator.compareValues(RowComparator.java:108)
         at oracle.jbo.RowComparator.compareRows(RowComparator.java:146)
         at oracle.jbo.RowComparator.compare(RowComparator.java:158)
         at java.util.Arrays.mergeSort(Arrays.java:1270)
         at java.util.Arrays.mergeSort(Arrays.java:1281)
         at java.util.Arrays.mergeSort(Arrays.java:1281)
         at java.util.Arrays.sort(Arrays.java:1210)
         at oracle.jbo.server.ViewObjectImpl.sortRows(ViewObjectImpl.java:6752)
         at oracle.jbo.server.QueryCollection.sortRows(QueryCollection.java:995)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1177)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1331)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1249)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1243)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6715)
         at org.calwin.view.bean.Table.tableSorting(Table.java:46)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)

  • How to define the date format for this date string

    2006-11-13 00:00:00.0
    How to define the date format in control file for sqlldr. "yyyy-mm-dd hh24:mi:ss" or "yyyy-mm-dd hh24:mi:ss.FF1" does not work
    thanks,

    SQL> desc t
    Name                                      Null?    Type
    TS                                                 TIMESTAMP(6)
    SQL> !cat t.ctl
    load data
    into table t
    truncate
    (ts timestamp "YYYY-MM-DD HH24:MI:SS.FF1")
    SQL> !cat t.dat
    2006-11-13 00:00:00.0
    SQL> !sqlldr userid=scott/tiger control=t.ctl data=t.dat log=t.log
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Sep 7 11:19:28 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 1
    SQL> select * from t;
    TS
    13-NOV-06 12.00.00.000000 AMBest regards
    Maxim

  • How to format a numeric field in ES2 ?

    Hi...
    I'm trying to format a numeric field in LiveCycle designer using six digit and allowing zero's "000000"…
    I went to patterns for setting the format, unfortunately I couldn't know how figure it out?
    I’ve tried this pattern: null{}|zero{000000}|num.integer{}
    It didn’t work!
    what actually I’m looking for is six digit at all time for instance if enter value of 1 in the field expect to appear 000001 ,and if i enter value 567 the appearance will be 000567 in the field and so on...etc.
    Another issue is how to validate a range of numeric value like 000001-999999 so that the input will be only restricted by those values…
    Hope this is clear! And sorry for my bad English
    Best Regards...

    Hi,
    could you please share your solution?
    I have a similar problem. I need to allow zeros before my integers to be inputed to the form.
    thanks.
    Please see my posting here:
    http://forums.adobe.com/thread/870306?tstart=0

  • In VB Programming code -- How to access the formula for suppressing a field

    In VB Programming code -- How to access the formula for suppressing a field
    I am using Crystal Reports 2008 v1
    Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
    My problem is that I am unable to access the formula used to dynamically suppress a field.
    The following code is working:
    mySections = rd.ReportDefinition.Sections
    For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
       ' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
       iloop = 0
       For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
               If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
                   myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
                   myTextObject.Text = "new field text goes here"
                   mySection.SectionFormat.EnableSuppress = True
                   '  Here is where I want to change the formula for the Suppression
                End if
                iloop = iloop + 1
        Next
    Next
    I can not find any reference to the actual suppression formula in the SDK help file.
    Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten.  The results of the formula determine the suppression.
    Is there a way to reference this formula.  I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.

    Hello, Mark;
    If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
    If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
    Elaine

Maybe you are looking for

  • Can not open a message in E 90

    Hello to everyone!!! my friend have a problem with nokia E 90 becouse he can't open a sms in inbox. He said me that he see a sign like this + (red colour) just above the message. thanks everyone in advance.

  • Installation fails on windows xp

    Hi, I have a legitimate copy of pagemaker 7.0 for windows and would like to install it on my laptop. I had already previously successfully installed it on my desktop computer. When I double-click setup.exe, or when I try to add a new program through

  • Need to import data from DB2 into Essbase

    I need to create a Windows process (like a daemon) to constantly check DB2 for updated records and then pull the updated record into Essbase and clean the blocks. Would it be better to: a) Write a ESSCMD macro with the import command to somehow run c

  • Maintenance plan

    Dear All Is there any possible way to schedule two maintenance item in the same maintenance plan separately. ie I have a maintenance plan with maintenance item already on schedule. Now I will add another maintenance item to this plan I want a differe

  • Custom HTML email stationary as default stationary

    I have a custom html email stationary that i need to have as a default setting so that i don't have to choose it before i compose an email. Any elp would be much appreciated.