Af:convertNumber : currency format is incorrect

hi
Using JDeveloper 11.1.1.2.0 I created this example application to illustrate some behaviour of the af:convertNumber component:
http://www.consideringred.com/files/oracle/2010/CurrencyCodeApp-v0.01.zip
The browseEmpSal.jspx has af:convertNumber component for currency like this:
<af:convertNumber groupingUsed="false"
          pattern="#{bindings.Sal.format}"
          type="currency" currencyCode="#{backing_browseEmpSal.currencyCodeToUse}"/>Please consider this scenario:
- (sc1-a) in JDeveloper stop the IntegratedWeblogicServer (if it is running)
- (sc1-b) run the browseEmpSal.jspx
- (sc1-c) on the page, notice the value "user.language = nl, user.region = BE"
- (sc1-d) click the Next button, which navigates to the next row without a problem, see also CurrencyCodeApp-nl-BE.png
- (sc1-e) in JDeveloper stop the IntegratedWeblogicServer
- (sc1-f) in the Default Run Configuration of the ViewController project change the Java options from "-Duser.language=nl -Duser.region=BE" to "-Duser.language=en -Duser.region=US" to simulate running this application in a different environment (on a different server)
- (sc1-g) run the browseEmpSal.jspx again
- (sc1-h) on the page, notice the value "user.language = en, user.region = US"
- (sc1-i) click the Next button, which results in an Error dialog that says "The currency format is incorrect" and suggesting to use a dollar sign, see also CurrencyCodeApp-en-US.png
question
- (q1) How can the example application in CurrencyCodeApp-v0.01.zip be modified to behave consistently, regardless the server system properties user.language and user.region ?
many thanks
Jan Vervecken

hi
About question (q1), it looks like configuring the locale property on the af:convertNumber component already makes a difference:
<af:convertNumber groupingUsed="false"
          pattern="#{bindings.Sal.format}"
          type="currency" currencyCode="#{backing_browseEmpSal.currencyCodeToUse}"
          locale="#{backing_browseEmpSal.localeToUse}"/>See the modified application at http://www.consideringred.com/files/oracle/2010/CurrencyCodeApp-v0.02.zip
question
- (q2) Is it required to configure both the currencyCode and locale properties on an af:convertNumber component to have consistent behaviour, regardless the server system properties user.language and user.region ?
regards
Jan Vervecken

Similar Messages

  • Handling Currency Formats in WebDynpro

    Hi,
    We have a scenario where we have to display different currencies in their own format.
    The input structure is copied from a model node. The attribute is a simple type coming from the backend . When user enters the value ,an event is raised and some RFC s are called.
    Finally, the input which the user is entered is formatted correctly based on the currency he has chosen.
    When we debug, the node does not have the value in the proper format which is displayed. Its not a calculated attribute too.
    So how is currency formatting handled for different currencies... in webdynpro ?
    Here setR3NormalizingFormattingAttribute is used for the attribute. Does this handle this formatting ?
    How is backend setting of currency formats in TCURX handled ?
    Any idea on currency handling in WebDynpro would help.
    Regards
    Bharathwaj

    Hi Stefanie,
    Thank you. Here they are using currency normalized  by calling
    setR3NormalizingFormattingService(true)
    This , I guess handles the formatting. But when i try to access the value from the node attribute  it's giving an incorrect value.. This is quite surprising .. If
    If the currency specification is to correspond to the ERP system, will the attribute itself have a proper formatted value form R3 .Or is it that , we need some other handle to get the formatted value. ?
    Was i clear about  what the scenario is ?
    Regards
    Bharathwaj

  • 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.

  • Currency format in LAC

    Hi,
    We are working with LAC, and we have an issue.
    When we create an auction in SRM the currency format for the start price and the others is 1,234,567.89 (this is correct for us), but when we execute the applet (LAC) the format change 1.234.567,89
    The user in SRM has the correct format 1,234,567.89 then, Why in the applet the format is different????
    How can we change the format????
    We are working with EP then, we execute the transaction  bbp_auction since a Portal iview. Our single sign On between LAC and Portal was configurated, then we guess, we need to change the currency or number format in the Portal User, Is that correct?????
    What user do we need to change (currency format)????   SRM user????  Portal user???? LAC user????
    Thanks

    Hi Claudia,
    Check the following note :
    Note 666849 - Running LAC in non-US locales
    This may help you.
    Thanks,
    Pradeep.

  • Help needed to display character vaiable in currency format

    Hi Friends
    In a SAP Script I am passing a currency field to the subroutine as an i/p parameter and since it gets converted to character format in subroutine because of 'itcsy' , ihave deleted the trailing zeroes and decimal points from the field and performed calculations on the field, now i need to pass this char field back to SAP script but i need to display that field in currency format with commas and decimal points in the script...how do i do that???
    Thanks
    Vishal.

    Hi Vishal,
    When you pass the currency amount into the perform, no need to remove the trailing zeros and the decimal point.
    Only thing you need to remove is the comma seperator as it gives a runtime error during calculation.
    To convert it back to the format with comma, write the below command:
    WRITE v_Item_total currency '2' to v_item_char.
    CONDENSE v_item_char.
    Here v_item_total is a number which is converted to comma seperated number and passed to char variable.
    This char variable is then passed to the SCRIPT.
    regards,
    Gaurav.

  • How to use currency format set

    Hi All,
    I have to use currency format set to mask the amount values to their respective currencies ,
    i reviewed the Oracle XML Publisher Administration and Developer's Guide and followed all the steps mentioned there ,i m also quoting the same over here
    To define a Currency Format Set:
    1. Navigate to the Currencies page under the Administration tab. Select Create
    Currency Format Set.
    2. Enter a Name and a Code for the set. The Code is a unique identifier and cannot be
    changed later. Select Apply.
    3. The Currency Formats page will display for your newly created set.
    To add currency formats to the Currency Format Set:
    1. Select Add Currency Format to add a format to your set.
    2. Select a Currency Name from the list.
    Note: This list is generated from the FND currency table and
    should include all ISO currencies. Additional currencies can be
    added from the System Administrator responsibility.
    3. Enter the Format Mask you wish to use for this currency and select Apply.
    The Format Mask must be in the Oracle number format. The Oracle number format
    uses the components "9", "0", "D", and "G" to compose the format, for example:
    9G999D00 where
    9 represents a displayed number only if present in data
    G represents the group separator
    D represents the decimal separator
    0 represents an explicitly displayed number regardless of incoming data
    See Using the Oracle Format Mask, Oracle XML Publisher Report Designer's Guide for
    more information about these format mask components.
    After a currency format has been created, you can update or delete it from the Currency
    Formats page.
    i followed all the above step ,i need to use germany currency ,i have also used the format-currency command in my RTF template,but still its not working ,i used 9G999D00 for masking .
    Any hint would be very helpful ,thanks in advance .Please let me know if my question is not clear
    Thanks
    Pratap

    hi all
    Thanks ,this is resolved ,i just missed clearing cache ,after clearing the cache its working .
    thanks
    Pratap

  • Currency format combined with if else issue

    Hi all,
    Basically, I need to get the value from if else statement, then use currency format to format the currency according to their currency code.
    the following is my if else statement to show the A.PAY_PROMISE_AMT or A.PROMISE_AMT
    <?xdofx:if A.PAY_PROMISE_AMT <> 0 then
    A.PAY_PROMISE_AMT
    else
    A.PROMISE_AMT
    end if?>
    <?format-currency:value_*[this value I want to use is the value from the above if else statement];*currencycode; ‘false’?>
    could anyone help me to combine those two statement to get the result I want?
    Thanks in advance

    >
    I tried your solution, but I got some error.
    >
    some?
    try change
    <>to
    !=in my sample
    what if you try IF without xdofx?
    what will be result?
    say
    <?if:A.PAY_PROMISE_AMT!=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PAY_PROMISE_AMT)?> <?end if?>
    <?if:A.PAY_PROMISE_AMT=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PROMISE_AMT)?> <?end if?>
    <?format-currency: xdoxslt:get_variable($_XDOCTX, 'LVar');CURRENCY;'true'?>plz see
    Working with xdofx:if and xdoxslt variable error

  • Why the currency format in numbers is very limited into few countries???  I think this is a must have in next update of numbers ..

    I was doing a spread sheet for a business proposal to my colleague in Philippines, was very disappointed to know that the currency format in Numbers for Mac is very limited to few countries only...

    As Badunit suggests, in Numbers 2.3 you can turn on the preference that shows the full currency list.
    Put a value in a cell and then choose Philippine Peso.  Save the document.  Open the document in Numbers 3.0 (if that is what you are working with) and you will still have access to that currency.
    You might go to Numbers > Provide Numbers Feedback to let Apple know you need the option to use more currencies in Numbers 3.
    SG

  • Currency format problem while exporting as excel

    Hi
    I have to create a report for which the currency format should be $#,##0.00 and -$#,##0.00 for negative numbers.
    In the text form field of rtf template, I have selected number format and removed the portion ;($#,##0.00) from $#,##0.00;($#,##0.00).When I view the report as HTML the numbers are showing in proper format.($#,##0.00 or -$#,##0.00).But when the report is exported as excel ,the negative number format changes to ($#,##0.00) in red color.
    Can anyone tell me how avoid this problem?
    Thanks in advance
    Naveen

    I think this is an Excel issue - you can right mouse click in Excel the column header and "Format Cells&gt;Text"
    You could also append a ' character to your numbers in BI Answers ie: '6035784010491980 which should give you the correct format in Excel.
    eg. CONCAT( '''', CAST ( '6035784010491980 AS CHAR) )
    There is also an MS Office plug in available for OBIEE this may give you further options.

  • BInput Data mismatch with currency format

    i am working with fs10 transaction
    I want to sum up the balance amount with respect to all
    companycode and post SUM to the bseg table using Batch input.
    i defined sum variable as below and coded.
    data : sum like glt0-hsl01.  (currency format)
    After all SUM operation.
    I have done like this to diplay SUM in report first(to check SUM output)
    SUM = SUM * 100.
    write : sum decimals 0.
    >>>>Now in report output i get value '17,222-'
    if u see in  fs10 screen we are getting same value.
    but when i try to post in Batch input.
    i have done like this below.(before posting i have checked
    for negative value )
    if sum < 0.
    sum = sum *100.
    compute sum = abs( sum )
    now...
    perform open_group................
    perform bdc_field using 'bseg-wrbtr'  (currency format)
                                    sum.
    when i execute this BI i get error in Amount(Sum)value
    display screen. (saying something differs in length )
    how to match the field.
    ambichan.

    Hello,
    Go to the Domain of the Field BSEG-WRBTR, which is WERT7. There you see the Output length as 16. So you decalre a local variable in BDC which is of CHAR16 in length to hold the value of WRBTR.
    Hope this helps you.
    Regds, Murugesh AS

  • Print PO Price in Currency Format.

    Hi Everybody,
       I want Print PO Price in currency format in alv report how do i get all countries currency values.
       anybody tell me.
    thanks,
    s.muthu

    Hi Muthu
    We can do it using the fields in populating the field catalog. Explore the existing fields of the same.
    Another way to handle is declare the amt field as char and write the amt to this field using option CURRENCY. The the problem with this method arrives when you want to do totals and stuff.
    Below code can help you understand in writing a field to another with currency option.
    data: l_curr(20) type c,
          l_amd type kbetr value '3333.23'.
    write l_amd to l_curr currency 'USD'.
    write:/ l_curr.
    write l_amd to l_curr currency 'JPY'.
    write:/ l_curr.
    To know the currency of a country you can use table T005.
    Kind Regards
    Eswar

  • Need to update the FSG currency format at form 999,999,999,99.99(default) to 99,99,99,999.99 (Indian)

    Hi All,
    I need to change the currency format in App's GL FSG report. It's by default comes 999,999,999,999,99.999 form this i need to change into Indian currency format (99,99,99,99,999.99).
    I tried to changed the format in column set but it doesn't changed.
    I am working in Apps R12 on RHEL5.5 64bit OS.
    Thanks in Advance.
    Regards
    Chander

    I'm not sure I understand the question. Are you saying you want the bold part of your path (currently hard-coded) to be in a variable instead? That would look something like this:
    $file_server = Read-Host "Enter the file server IP address"
    $guid = '{231A178D-DC6C-4186-9575-9C64F07DA5B5}'
    (Get-Content "C:\TEMP\GPO\source\5\$guid\gpreport.xml") |
    ForEach-Object { $_ -replace "99.999.999.999", "$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\gpreport.xml"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\Backup.xml") |
    ForEach-Object { $_ -replace "99.999.999.999", "$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\Backup.xml"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Documents & Settings\fdeploy1.ini") |
    ForEach-Object { $_ -replace "99.999.999.999", "$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Documents & Settings\fdeploy1.ini"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\Drives\drives.xml") |
    ForEach-Object { $_ -replace "\\99.999.999.999", "\\$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\Drives\drives.xml"
    (Get-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\files\files.xml") |
    ForEach-Object { $_ -replace "\\99.999.999.999", "\\$file_server" } |
    Set-Content "C:\TEMP\GPO\source\5\$guid\DomainSysvol\GPO\User\Preferences\files\files.xml"

  • Currency Format in Crystal Report Version 10.5 (Free With Visual Studio)

    Hi ,
    We are using free version of crystal report that comes with VS2008.
    We are in the need to display the amount in the following format and we are not able to do so. Here is what we need to achieve
    10000000---- Need to display as 1,00,00,000 
    1000000---- Need to display as 10,00,000
    100000  -
    Need to display as 100,000
    10000    -
    Need to display as 10,000
    Please let us know what currency format we can use or what is the other technique to resolve this issue.

    you should be able to format as a number with thousand delimiters. right click Format - > number tab
    if not display as text
    @amount
    totext(youramountfield, 0,",")
    Ian

  • Currency format in Spreadsheet tables uses period's instead of comma's

    Xcelsius 2008 SP3.  I have inserted a spreadsheet table into my model, the columns are formatted in a currency format with $ and the thousand's separator that is displaying in the table is a period instead of a comma.  Has anybody else seen this problem?

    Hi,
    yes, I`ve had the same behavior. As a workaround, you have to change the format of the cells.
    Go into the properties of the cells:
    -> Right mouse click
    -> format cells
    -> category
    -> number
    -> change something, e.g. the number of decimal places to show
    Then you will have to map the component again to the same cells under "Display Data".
    And now, the currency information will be shown correctly.
    Regards
    Victor

  • Currency format in Workflow

    Hi All,
    I am a functional consulatnt and had created a wokflow its working fine the only exception being that the mail is trigerring with a wrong currency format.
    Like i have set my system settings under SU3 to the 2nd radio button but still the format is shown as 3.065,29  USD.
    In SBWP i can see the text as 3,065.29 USD but when it is going to the outlook its comming up with 3.065,29  USD.
    We are working in 4.6C.
    ASAP help is really appreciated.
    Thank You.

    Try changing the User data of WF-BATCH, Under "Defaults Tab" change the Decimal Notation to
    1,234,567.89
    It must work, in SBWP it will be taking your user settings - Decimal notation. Since all the background jobs are run via WF-BATCH it will take that value.
    Thnx,
    Sudhir.

Maybe you are looking for