Format Number Function

Hello All,
I am facing a problem in Message Mapping. In the Arithmatic Category we have used the function Format Number. The Number Format  is 0.0
Decimal Separator is (BLANK)
In this case If I input any value say 8 or 8.0 then the output should be 8.0. However, I am getting 8,0(COMMA Separator) as the output. This causes the Mapping to Fail.
This problem occurs on one landscape where as on the other landscape it works fine and gives the output as expected.
Can anybody help me on that?? Am I missing anything in configuration or are there some special settings for it??
Kindly help.
Regards,
Rohit K

Hi
if you put the decimal separator as blank then it will use the . as a decimal separator.
and when you use the ny other symbol in the decimal separator then it will use that sysmob as decimal separator.
so please check in ur format number properties what u ahve given.
Thanks
Rinku

Similar Messages

  • Is the XSLT format-number function supported by XMLType.transform()

    I am trying to use the XSLT format-number function in a stylesheet via myXMLType.transform(myXSL) without any luck. For example, <xsl:value-of select="format-number($myNum,'#,###.00')/>. This works ok under the java based XSLT engine.
    Is format-number supported by XML DB?
    I am running 9.2.0.5.
    Cheers
    Anthony

    I have upgraded to 10g and found that this now works.
    Cheers
    Anthony

  • Format Number function in PI 7.10 SPS 7

    Hi,
    for those of you who used the FormatNumber function inside the Message Mapping, there is a quite strange change.
    You must enter a decimal delimiter. Inside release 7.00 this was not a must. The error message you will receive from the mapping is a little, well, unusefull:
    Check result for Message Mapping: MM_OSRBG_PP_SFC_TECO_RFC_REQUEST | http://osram-os.com/rbg/pp/sfc/teco/xi013:
    Target field mapping '/ns0:MT_OSRBG_PP_SFC_TECO_RFC/ROW/ORDERID' incomplete; reason: char should be not empty
    Well on my side the lead to several problems, because I had to assign fixed number length (without decimal digits).
    The only solution I had on this is to build an own user function in java doing the same.
    These are the two parameters given to the function:
    numberString
    numberFormat
    You have to import this:
    import java.text.*;
    And that's the code:
    int numberInteger = Integer.parseInt(numberString.trim());
    DecimalFormat piNumberFormat = new DecimalFormat(numberFormat);
    return piNumberFormat.format(numberInteger);
    BR Markus

    Hi Jan,
    Thanks for updating the forum with your finding. But uncheck the box "Mark this thread as a question" so that i does not look like a question.
    VJ

  • XI / PI Format Number issue

    Hello,
    When I process the value 782.785 through format number 0.00 I'm expecting a value 782.79 but the standard Format number function returns 782.78. Standard function appears to round to a higher digit only if the value is greater than 5 like '.786' to '.79' and not rounds up the value for 5.
    What could be done to achieve this functionality? is it possible without a UDF ?
    Thanks for your help!
    Larry.

    Round up and Round down requirements is not fully feasible to implement using standard function. Use this logic in your UDF...
    If you declare input as string and return the value also string for the decimal number then below logic
    String str = "782.666";
      double d = Double.valueOf(str);
      DecimalFormat de = new DecimalFormat("###.##");
      return (Double.valueOf(de.format(d))).toString();
      Note: if you declared  input as double or float and return the value double then the below logic will work.
    double d = 782.666;
    DecimalFormat de = new DecimalFormat("###.##");
    return  Double.valueOf(de.format(d));
    Hope that helps.

  • Format-number,decimal not giving desired output for PO Print report XSL-FO

    Hi All,
    My requirement was to get the Unit price in european format which is 10.000,00
    Iam getting it as 10000,00 but the client needs the thousand's seperator.
    if have used the decimal seperator but iam getting the Unit Price value as 'NAN' when i submit it for an international language like Italian or Spanish
    This is what i have done
    set the decimal format
    <xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>
    <xsl:value-of select="format-number(UNIT_PRICE, '#.###,####', 'euro')"/>
    This gives the desired output when i select the US language.
    While submitting through the conc request
    If i change the Numeric char to '.,' by clickin on Language settings..It works great
    I have tried to use the replace function but the syntax is not correct
    format-number(replace('UNIT_PRICE',',','.'), '#.###.###.###,####', 'euro')
    Any Help would be greatly appreciated.
    Thanks
    Mirza

    Hi Mirza,
    I'm struggling having the same problem. Have you found any solution?
    Best regards
    Kenneth

  • Format number not working correctly in XML Publisher Report

    Hi,
    I have requirement to print sum(column1) with number format with commas on the header.
    I tried giving <?format-number:sum(//CURRENT_COST);'99G990D00'?> this formula is sum current cost column and displaying as 140.253.123.00 but i want to display the same as 140,253,123.00
    i even tried <?xdoxslt:xdo_format_number_l(sum(CURRENT_COST),'999G999D99','EN-us')?> but its even giving the same result as  140.253.123.00
    Please let me know if anyone had the same issue.
    Thanks.

    Hi,
    You can't mix the XMLP extended functions (ie anything prefixed with xdofx) with xsl functions (see user guide - Extended SQL and XSL Functions).
    You could look at using the Choose statement or doing a set of IF statements
    ie <?if:CURRENCY='JPY'?>format...<?end if?><?if:CURRENCY...<?end if?>
    If you go with the multiple IF statements you will probably need to use <?if@inlines:CURRENCY='JPY'?> otherwise you will get carriage returns (see IF statements in boilerplate text in the user guide).
    Thanks
    Paul

  • Is there a ¿ is number function ? in the  link editor

    Good afternoon all,
    I would like to test if a character is a number or a string .  ¿ How can I do it ? .  I can not find any function in the link editor .
    Thanks in advance,

    If you use the number() function here are the results you will get:
    number("300") returns 300
    number("abcde") returns error
    number("301abcde100") returns 301
    number("abde300") returns error
    a better way to test for a number only vs an alphanumeric string is to use the format function like this:
    format(300,"#") returns 300
    format("300","#") returns 300
    format("abcde","#") returns error
    format("301abcde100") returns error
    format("abde300") returns error
    regards, Steve

  • XSLT Processor Bug? format-number() on large numbers

    For numbers 100,000,000.00 and higher, I'm getting extra digits and rounding errors.
    How can I use some custom Java code in the XSL stylesheet so the correct value is displayed (i.e. w/o rounding)? I'm getting a value of 100000000.00 and I need to insert the commas. Sometimes the correct value is displayed, other times, additional numbers are appended and the amount is rounded.

    The XSLT processor uses java.text.DecimalFormat under the covers as the XSLT 1.0 specification suggests. I would imagine any problems with format-number() actually boil down to problems with java.text.DecimalFormat.
    You can use Java Extension functions to perform custom Java in your stylesheet.
    See the file .\extfunc.html in the root directory of the XML Parser for Java V2
    distribution.

  • Problem using number function

    Hi!
    I used Publisher Desktop to design RTF template for FSG report.
    I had to make comparison between two values in XML I got from FSG and based on their values show or hide a field in the report.
    I used following commands to get values in variables:
    <?variable:prihod?><?translate( /MasterReport/fsg:RptDef/fsg:RptLine[@LinCnt='l100090']/fsg:RptCell[@ColCnt='c1004'],’,’,’’)?><?end variable?>
    <?variable:rashod?> <?translate(/MasterReport/fsg:RptDef/fsg:RptLine[@LinCnt='l100091']/fsg:RptCell[@ColCnt='c1004'],’,’,’’)?><?end variable?>
    then I used following choose to decide wether to show or not the values:
    <?choose: ?>
    <?when: @LinCnt='l100090'?><?end when?>
    <?when: @LinCnt='l100091'?><?end when?>
    <?when: @LinCnt=’l100092’?><?if: boolean(number($prihod) >= number($rashod))?><?fsg:RptCell[2]?><?end if?><?end when?>
    <?when: @LinCnt=’l100096’?><?if: boolean(number($prihod) < number($rashod))?><?fsg:RptCell[2]?><?end if?><?end when?>
    <?otherwise: ?><?fsg:RptCell[2]?><?end otherwise?>
    <?end choose?>
    It worked just as I planned but then I uploaded it to EBS.
    I generated XML from FSG.
    Then I invoked XML Report Publisher for that XML.
    But it ended with error with following message:
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert 0.00 to number.
    The value I'm checking with number function is 0.00.
    Now I don't understand where is the problem.
    My computer is set to Croatia-Croatian, whole text in word is set to Croatian.
    I uploaded the template with Croatia-Croatian.
    When invoking XML Report Publisher I choosed Croatia-Croatian.
    And locally it works and on the server it's not.
    Any ideas?

    I also tried now one trick but it didn't help and I ended even more confused.
    Originally number is in xml in following format:
    First I removed all the comas from the number because I read that group separators tend to confuse the xslt number function.
    Now I went one step further and I changed remaining decimal divider from dot to coma.
    Uploaded new template to EBS.
    Repeated the procedure and only difference is that now error says:
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert 0,00 to number.
    I was sure that decimal separator was cause of the problems but now I'm not so sure anymore.
    Any ideas?

  • How to combine format number and if statement?

    Hi,
    I'm using XDO 5.6.1 under apps.
    My issue is to display a number only if it is not equal to zero.
    Otherwise, i need to display it in european mask using format_number function.
    I tried all the condition statements (if, choose) and they work perfectly.
    <?xdofx:if MAR_SUM=0 then '' else MAR_SUM end if?>
    format number works fine too.
    format-number(MAR_SUM,"### ###.00", "Euro")
    But i did not succeeded to combine if and format number
    <?xdofx:if MAR_SUM=0 then '' else format-number(MAR_SUM,"### ###.00", "Euro") end if?>
    The result is always a blank field, even MAR_SUM is not nul.
    I can not use Word format number bacause it do not work with my mask.
    Please help me, .
    Thanks.
    Pierre.

    Thanks a lot Tim,
    It helped me a lot. I'll simplify my tags using those tags.
    I have another issue concerning cell highlight.
    I have two loops in a table and when I insert <?if@row:position() mod 2=1 ?> <xsl:attribute name="background-color" xdofo:ctx="incontext">#DDDDDD</xsl:attribute>, in order to use cells highlight, my subtotals disappear at the end of my loop.
    Could I send you a email with an example, (and how to contact you)?
    Thank again for your response again.
    Regards.
    Pierre

  • How to Format number in RTF template?

    Hi,
    In RTF template i am using Format_number for custom requirement. when i am using below conditon <?format-number(ENTERED_CR,'##,##0.00')?> number is getting formatted if above 1000 only. My requirement is 1). 444 should format like 444.00 2). 444.55 should format like 444.55 only. Can anyone suggest on this ASAP.

    in the next time use BI Publisher forum - BI Publisher
    <?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
    output:
    444    ->  444.00
    444.55 ->  444.55

  • Format of Functional Specification

    What is the format of Functional Specification.

    Hi refer belwo
    Function Specs Format:
    Document Control
    Change History
    Issue No
    Date
    Name
    Change
    Initial Draft
    Authorizations
    Role
    Name
    Signed
    Date
    Business Process Lead (customer)
    Functional Analyst (specification author)
    Technical Lead
    Developer (if known)
    Select program type below and then use menu option tools > unprotect to
    open other fields for input
    Type
    Table of Contents
    Document Control 1
    Overview. 3
    1.1 Short Description. 3
    1.2 Business Process. 3
    1.3 Terminology. 3
    1.4 New Custom Objects Required. 3
    1.5 Impacted SAP Transactions/Tables. 4
    Process Decomposition. 5
    2.1 Process Flow. 5
    2.2 New Tables/Structures Required. 5
    2.3 Sub-Process Description. 5
    2.4 Error Handling. 5
    2.5 Security Considerations. 5
    2.6 Database Considerations. 5
    2.7 Conversion Implications. 5
    2.8 Batch Processing. 6
    2.9 Functional Test Requirements. 6
    Overview
    1.1 Short Description
    1.2 Business Process
    1.3 Terminology
    1.4 New Custom Objects Required
    Include all new tables, key new fields/domains, new lock objects, new
    match-codes, new transaction codes, new authorization objects, new
    function groups, reports and module pools (transaction programs). Don't
    specify all includes, function modules, routines etc. here.
    Type (table, transaction etc.)
    Description
    Naming convention
    1.5 Impacted SAP Transactions/Tables
    List SAP objects updated/impacted by this specification (do not include
    read only impacts)
    Object(s)
    Type (table, transaction etc.)
    Description of Impact
    Process Decomposition
    2.1 Process Flow
    2.2 New Tables/Structures Required
    Specify new tables and structures required. If appropriate, you may
    defer detailed field list/specification to the technical specification
    (e.g. for secondary tables and structures).
    Table id
    Description
    Type
    Master, transaction, customizing, staging
    Expected size
    Maint. dialog
    None, SM30, custom
    Fields
    Key
    Domain/data element names
    Domain format (if new)
    Description
    2.3 Sub-Process Description
    2.4 Error Handling
    Specify what to do if a condition passes AND fails (e.g. - what happens
    if a customer record is found, or is not found). Specify messages and
    type.
    Specify any special error logging or table storage, including use of
    standard application log where appropriate.
    Field
    Validation
    Message type/no.
    Message text
    2.5 Security Considerations
    2.6 Database Considerations
    2.7 Conversion Implications
    2.8 Batch Processing
    2.9 Functional Test Requirements
    Consider all the conditions that need testing for this enhancement and
    document below. For each logic branch in theory both (or more)
    conditions of the branch should be tested. For each scenario that could
    impact program execution, all situations must be tested.
    No.
    Test condition
    Expected result
    Data set-up reqt.
    Dependencies

  • Lack of flexibility in the format PLSQL functionality

    Hi,
    Is there any plans to increase the functionality of the format PLSQL function? Compared to TOAD, it is extremely limited. The TOAD formatter alone is enough to keep our organization from switching to SQL Developer.
    Darryl

    You got that in bold: it's announced on this forum and on sqldev's homepage... http://htmldb.oracle.com/pls/otn/f?p=42626:37:260789750723810::NO:::

  • Format-number doesn't work with XSL and DW preview

    Hi All
    I'm creating XSL files to transform XML into HTML. However,
    the number formatting doesn;t seem to work in Dreamweaver. For
    example, if I specifiy:
    format-number(price,'$###,###.00'), I should get $7596.99. I
    actually get 7596.990000000001 in my Preview (no currency symbol,
    too many decimal places). If I do the same thing in another XSL
    editor (Xseleerator) I get: $7,596.99.
    This is REAL PAIN, as every time I do anything with number
    formatting, I need to open the XML and XSL in another product just
    to check the formattng.
    Can anyone shed any light on this?
    Thnaks
    Mark

    Try to declare the variable out side of the region
    <script> var tp1;</script>
    <div spry region ... >
    tab panel stuff
    <script type="text/javascript">
    tp1 = new Spry.Widget.TabbedPanels("tp1");
    </script>
    </div>

  • Format Number in XML Publisher

    Hi
    I am developing a RTF template for EXCEL output report. I am trying to format a number value in this report
    <?xdofx:if to_number(QUARTER_QUANTITY) > -1 then QUARTER_QUANTITY end if?>
    in the above line of code how could we format QUARTER_QUANTITY field (i need 9,999, 999 format)
    I have tried both
    format-number:fieldname;’999G999D99’
    format-number(number,format,[decimalformat])
    nothing worked for my.
    Can some one please help me to resolve this issue.
    thanks
    Raj

    Hi Raj,
    Were you able to solve this problem? I am running into the same problem where I want the number to dsiplayed with 2 decimals. When I view the output in Excel format , it cuts off the last zero for eg 18.30 becomes 18.3 If i use any other Output format like HTML trailing 0s are preserved. How do I solve this
    Thanks

Maybe you are looking for

  • Customer is on credit hold

    When we are at quotation level we have no idea that customer is on credit hold. then customer call back to giveathe PO>and they want parts brought in ups red because it is a break down situation just to find out that the customer is on hold,when we g

  • Research Resources and Rules of Engagement

    Hi experts and wanna-be experts: Welcome to the Utilities space on SCN. Before anything else, read The SCN Rules of Engagement Update 09/09/2012 - search enhancements are available in SCN: Custom Google Search for SCN content http://bit.ly/new-scn-se

  • Downloaded version 4 & lost - Australia only - web-maps-video etc

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/829769]</blockquote><br> I downloaded version 4 of firefox - I now do not have on my start up page - Australia only or the line with:- web - video - maps - pictures etc. How

  • Yellow warning signs with ! in it

    I am working in imovie-- do not know what I did-- but in my project libary one of my movies have the yellow warning sign with ! in it--- when I try to watch the movie all that comes is --sourse clip is missing, sign. Please help me as I want to keep

  • Installation of 20120110 Firmware on Color Laserjet CP1518ni Fails

    I'm trying to install the version 20120110 Firmware update using the Mac OS X installer, but the install always fails. Instead, the printer prints a page with the following text: "--=/Begin UP Signed File Fingerprint\>=--  Fingerprint Length: 000527