Format number without commas

hi
i have a webi report , in which i am using a year filter to restrict some values.
so i need to show what is filtered , i used the below formula to show which year is filtered.
=If(DrillFilters([Year])<>"")=0 Then "All Year" Else DrillFilters([Year])
it is showing like 2,009 while selecting the year 2009,
but i don't want commas between these numbers,
i need like 2009 without commas
how to format this number in above formula.
regards
Dineshkumar

Instead of :
Else DrillFilters([Year])
You must write the next code:
Else   Replace(DrillFilters([Year]) ; "," ;" " )
The replace function will replace all commas so your numbers will be shown:
2009 instead of 2,009
Edited by: PadawanGirl on Jan 17, 2011 6:11 PM
Edited by: PadawanGirl on Jan 17, 2011 6:13 PM

Similar Messages

  • 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

  • How can I see changes in table with insertrow();postchanges()without commit

    Hi friends;
    I use jdeveloper 10.1.3.1 with jheadstart 10.1.3.1.
    I create two view object.In the first page I create table with one view object.
    In the second page I create table (with tableselectmany) with other view.
    I select many rows in second page and in the managed bean,
    I insert selectted rows atributes to first pages tables attributes.
    I use this code.
    public String commandbuttonaction(){
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    BindingContainer bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)
    bindings.get("DeptIterator");
    int i=206;
    while (rowSetIter.hasNext()){
    Key key = (Key) rowSetIter.next();
    pr_dcib.setCurrentRowWithKey(key.toStringFormat(true));
    RowImpl prRow = (RowImpl) pr_dcib.getCurrentRow();
    String AM="model.AppModule";
    String CF="AppModuleLocal";
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    ViewObject emps = empSvc.findViewObject("EmpsView1");
    Row newEmp = emps.createRow();
    newEmp.setAttribute("Manager",new Number(1));
    newEmp.setAttribute("Department",new Number(1));
    newEmp.setAttribute("Depno",new Number(3));
    emps.insertRow(newEmp);
    try {
    newEmp.validate();
    catch (Exception ex) {
    System.out.println("validate catch");
    try {
    empSvc.getTransaction().postChanges();
    catch (Exception ex) {
    System.out.println("post catch");
    Configuration.releaseRootApplicationModule(empSvc,true);
    i=i+1;
    In this code I only postchanges() in first view and dont want to commit.
    But I cant see changes row in the page .If I press save I see transaction completed succesfully message.
    But in database not insertted any rows.
    If I write commit() after postchanges() code I see rows in the table .But I dont want to commit.Only post
    my changes and if necessary I press save button in page.
    How can I see changes in the page without commit???Thanks for all....

    You should NEVER use statements like this in managed beans:
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    This will create a separate application module instance, not shared by the the web pages. That's why you do not see the changes.
    Instead, you can use the following code:
    ApplicationModule am = (ApplicationModule)JsfUtils.getExpressionValue("#{data.MyAppModuleDataControl.dataProvider}");
    where MyAppModuleDataControl shoud be replaced with the name of your am data control.
    Steven Davelaar,
    JHeadstart Team.

  • "CSAP_MAT_BOM_MAINTAIN" can read material which is created without commit?

    hi:
      i want to create a material first with "BAPI_MATERIAL_SAVEDATA",then i want to add this material as a component
      to a existing BOM with "CSAP_MAT_BOM_MAINTAIN".
      1 I create the material using "BAPI_MATERIAL_SAVEDATA" without "BAPI_TRANSACTION_COMMIT".
      2 I use "CSAP_MAT_BOM_MAINTAIN" to add the material to a existing BOM.
      Before this test,i think "CSAP_MAT_BOM_MAINTAIN" will raise an exception:
      "The material XXX does not exist or is not activated"
      But the result is:Material is created successfully and the BOM is added a component with a commit implicitly.
      How can "CSAP_MAT_BOM_MAINTAIN" read the material which is not committed to the DB?
      BTW:Even if "CSAP_MAT_BOM_MAINTAIN" raise a exception,i can use "BAPI_TRANSACTION_COMMIT" to rollback both the
      created material and the changed BOM.
      I am confused!!
      Following is the sample code of this case:
    *& Report  Z_TESTYM23
    REPORT  z_testym23.
    DATA mat LIKE bapimathead-material VALUE '000000000000002814'.   "created material no
    DATA bom LIKE csap_mbom-matnr VALUE '000000000000002794'.
    DATA change_no LIKE aenrb-aennr.
    create ECN in sap
    PERFORM ecn_create.
    create material without commit
    PERFORM mat_create.
    *-- maintain BOM
    PERFORM maintain_bom.
    *&      Form  MAT_CREATE
          CREATE MATERIAL
    FORM mat_create .
      DATA headdata LIKE bapimathead.
      DATA clientdata LIKE bapi_mara.
      DATA clientdatax LIKE bapi_marax.
      DATA itab_makt LIKE TABLE OF bapi_makt.
      DATA wa_makt LIKE bapi_makt.
      DATA return LIKE bapiret2.
      headdata-material = mat.
      headdata-ind_sector = 'A'.
      headdata-matl_type = 'ROH'.
      headdata-basic_view = 'X'.
      clientdata-base_uom = '2X'.
      clientdatax-base_uom = 'X'.
      wa_makt-langu = sy-langu.
      wa_makt-matl_desc = 'TEST'.
      APPEND wa_makt TO itab_makt.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          headdata            = headdata
          clientdata          = clientdata
          clientdatax         = clientdatax
        IMPORTING
          return              = return
        TABLES
          materialdescription = itab_makt.
      CHECK return-type <> 'S'.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      MESSAGE  return-message TYPE 'E'.
    ENDFORM.                    " MAT_CREATE
    *&      Form  MAINTAIN_BOM
          Maintain BOM
    FORM maintain_bom .
      DATA i_datum(10).
      DATA i_stko TYPE stko_api01.
      DATA t_stpo LIKE TABLE OF stpo_api03.
      DATA w_stpo LIKE stpo_api03..
      WRITE  sy-datum TO i_datum.
      w_stpo-item_categ = 'L'.
      w_stpo-component = mat.
      w_stpo-comp_qty = '2'.
      APPEND w_stpo TO t_stpo.
      CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
        EXPORTING
          material    = bom
          bom_usage   = '1'
          valid_from  = i_datum
          change_no   = change_no   "correct no:'500000000053';incorrect no:'500000000153'
          i_stko      = i_stko
          fl_complete = 'X'
        TABLES
          t_stpo      = t_stpo
        EXCEPTIONS
          error       = 1
          OTHERS      = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.   "Rollback BOM and material
      ELSE.
        CALL FUNCTION 'BUFFER_REFRESH_ALL'.          "Remained process of function:BAPI_TRANSACTION_COMMIT
        WRITE: / 'Everything is OK',
               / 'CHANGE_NO: ',change_no,
               / 'MATERIAL NO: ',mat,
               / 'BOM: ', bom.
      ENDIF.
    ENDFORM.                    " MAINTAIN_BOM
    *&      Form  ECN_CREATE
          Create ECN
    FORM ecn_create .
      DATA change_header LIKE aenr_api01.
      DATA object_bom LIKE aenv_api01.
      change_header-status = '01'.
      change_header-valid_from = '2007/06/01'.
      change_header-descript = 'test'.
      object_bom-active = 'X'.
      CALL FUNCTION 'CCAP_ECN_CREATE'
        EXPORTING
          change_header            = change_header
          object_bom               = object_bom
          FL_COMMIT_AND_WAIT        = 'X'
         FL_NO_COMMIT_WORK        = 'X'
        IMPORTING
          change_no                = change_no
        EXCEPTIONS
          change_no_already_exists = 1
          error                    = 2
          OTHERS                   = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " ECN_CREATE 
      Regards
      Ming

    I did another test as following:
    *& Report  Z_TESTYM23
    REPORT  z_testym23.
    DATA mat LIKE bapimathead-material VALUE '000000000000002816'.   "created material no
    create material without commit
    PERFORM mat_create.
    *&      Form  MAT_CREATE
          CREATE MATERIAL
    FORM mat_create .
      DATA headdata LIKE bapimathead.
      DATA clientdata LIKE bapi_mara.
      DATA clientdatax LIKE bapi_marax.
      DATA itab_makt LIKE TABLE OF bapi_makt.
      DATA wa_makt LIKE bapi_makt.
      DATA return LIKE bapiret2.
      headdata-material = mat.
      headdata-ind_sector = 'A'.
      headdata-matl_type = 'ROH'.
      headdata-basic_view = 'X'.
      clientdata-base_uom = '2X'.
      clientdatax-base_uom = 'X'.
      wa_makt-langu = sy-langu.
      wa_makt-matl_desc = 'TEST'.
      APPEND wa_makt TO itab_makt.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          headdata            = headdata
          clientdata          = clientdata
          clientdatax         = clientdatax
        IMPORTING
          return              = return
        TABLES
          materialdescription = itab_makt.
    CALL FUNCTION 'MARA_SINGLE_READ'
       EXPORTING
        KZRFB                   = ''
        MAXTZ                   = 0
         matnr                   = mat
        SPERRMODUS              = ' '
        STD_SPERRMODUS          = ' '
        OUTPUT_NO_MESSAGE       =
      EXCEPTIONS
        lock_on_material        = 1
        lock_system_error       = 2
        wrong_call              = 3
        not_found               = 4
        OTHERS                  = 5.
    IF sy-subrc <> 0.
       CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
       MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
      SELECT COUNT(*) FROM MARA WHERE MATNR = MAT.
      WRITE SY-DBCNT.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      WRITE return-message.
    ENDFORM.                    " MAT_CREATE
    SY-DBCNT = 1 and i can alse rollback the material

  • 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

  • XSLT transformation format-number into strange characters

    Hi, Experts,
        When I excute following code to translate a string number DEBIT TYPE C(60) into xml, the result has strange characters.
    <xsl:value-of select="format-number(sap:if(string(number(DEBIT))!='NaN',DEBIT,0),'0.0000000000')" />
        If DEBIT is empty, the correct result should be:
    0x3000 0x2E00 (0x3000)*10       = 0.0000000000
        but actually, the result will be following in some cases:
    0x3000 0x2E00 (0x0F77)*10
        in some cases the result will be
    0x3000 0x2E00 (0x2600 0x2300 0x3000 0x3B00)*10
        What I mean in some cases, I ran the same code on different NW system. I also changed the user profile by NW menu System->User Profile->Own Data, the result won't change whether I use American Comma-Dot or European Dot-Comma.
        Can anyone give some advice on the code? Or there is some patch to solve it?
        Thanks and Regards
    Davin
    Edited by: Davin Wang on Jul 17, 2008 3:15 PM

    Hi Davin,
    do chk the condition it is not correct
    <xsl:value-of select="format-number(sap:if(string(number(DEBIT))!='NaN',DEBIT,0),'0.0000000000')" />
    do chk it
    Thanx
    Sampath

  • Displaying a number with commas in gid

    Hi EveryOne,
                       This is Ram Prasad.I want to display a number with commas in the grid (eg:1,000).In the grid it is shown as 1000.I wan to add commas for this number to be shown in the grid display template.Can any one help on this.

    That's an odd format, so I assume you mean 1 million to be displayed as:  1,000,000 ?
    http://help.sap.com/saphelp_xmii115/helpdata/en/Applet_Reference_Details/ParameterReference.htm#Number Formatting
    #,##0 should provide you with a comma as the thousands separator for all numbers in this column of your iGrid.

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

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

  • 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

  • Display numbers without commas

    I need a way to display a numeric column without commas.  We have a list of seven digit ID numbers that I want my users to be able to copy and paste into config files.  I can get rid of the decimal points easily enough, but not the commas.   Has anyone figured out a way to do this yet?

    Hi,
    For ID number with fixed-length, I suggest you to use Single line of text column instead of number column.
    If you use Single line of text column, you can easily avoid the commas problem.
    Hope the information can be helpful.
    -lambert
    Posting is provided "AS IS" with no warranties, and confers no rights.

  • Format iPod without losing files

    hi everyone,
    I'm new to apple, I bought a white macbook about a week ago..it's fantastic..
    before doin' that I had a windows-based notebook, so my iPod is windows-formatted, how can I mac-format it without losing data?
    grazie
    F

    You can't, restoring/reformatting will erase the hard drive. If you want to save the content prior to restoring there's a manual method of copying songs from your iPod to your Mac at this link: Two-way Street: Moving Music Off the iPod
    If you prefer something more automated there are also a number of third party utilities that you can use to retrieve the music files and playlists from your iPod, this is just a selection. Have a look at the web pages and documentation for these, they are generally quite straightforward. I use Senuti but check the others out and choose whichever you are happy with.
    Senuti Mac Only
    iPodRip Mac Only
    PodWorks Mac Only
    iPod.iTunes Mac Only
    PodView Mac Only
    iPod Access Mac and Windows Versions
    YamiPod Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions

  • Covert number to comma separated number

    I have to covert number to comma separated number
    Please let me know how to do this.
    Example :
    Input: 10000 Output: 100,00
    Input: 1000 Output: 10,00
    Input: 1000044 Output: 100,00,44

    Like this
    with t as
    ( select 1234 a from dual union all
      select 1234456 from dual union all
      select 123 from dual union all
      select 12 from dual union all   
      select 124579652 from dual union all
      select 12235 from dual
    select to_char(a,'999,99,99,99,99,99') formatted
      from t Regards
    Arun

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

Maybe you are looking for

  • Invoice Correction Request with reference to Billing plan

    Dear SDN frnds, I'm having one query in Invoice Correction Request (ZBOC) creation, While creating with reference to billing document of billing plan type (ZCI), the net value in Invoice Correction Request is '0' and the net value is not modifiable d

  • Install new hard drive, restore from Time Machine, File Vault Problems

    Hello all, I spent way too much time on this seemingly simple task, so I thought I would share my experience with others so they can avoid some pitfalls when upgrading a hard drive in a system that uses File Vault 2 encryption. The basic goal here is

  • SQL editor with tree view

    We are working on some extraordiary long SQL stored procedure. Due to the shear size and IF/ELSE nesting it is very tedious to understand the logic . What I am looking for is an SQL editor with tree view, where we can see IF/ ELSE, LOOP etc block as

  • ANN: Webinars (free): Rich Media PDFs with FM-to-Acrobat TimeSavers/Assistants

    One-hour webinars (free), starting 10am PDT: Multimedia Assistant, March 11 Learn how you can embed/link to audio or video files (filmed or software demos) from PDFs created in FM, without the tedious work of inserting the link/file and defining play

  • TREX 7.0 Compatible with NetWeaver 7.01 ?

    Hi Experts, Currently I have an NW 7 EHP1 ABAP system and a TREX 7.0 system connected using RFC connection. When trying to create indexes in TREX using Enterprise Search, below error occurred: TREX 7.00 RFC Server Not supported TREX_RFC_SERVIC It see