FM to remove comma

Hi All,
I am facing a problem with comma,
The number is coming with comma like 12,000.00
Need to remove the comma for my internal calculation.
Can any one can suggest me any Function module
Available for this.
Regards,
Rajib

Hi,
lv_text = 12,000.
CALL FUNCTION 'STRING_REPLACE'
  EXPORTING
    pattern                   = ','
    substitute               = space
  changing
    text                      =  lv_text
EXCEPTIONS
   WRONG_STRING_LENGTH       = 1
   OTHERS                    = 2.
reward points if useful.
regards,
santosh

Similar Messages

  • Dashboard Prompt - Integer field (material number) - remove commas

    Hi all,
    We have a problem with one number field that added as a prompt in the dashboard. This is an integer field contains Material numbers shows commas and we need to remove commas. Problem is we cannot cast it because we need to keep it as ineteger field to sort the column. Please advise to correct this either repository area or in the dashboard prompt sql statment that applicable to an **integer** field to remove commas.
    Appreciate all your help!!
    Thanks,

    Thank You Svee. I have already tried override and treat number as number but that still showed the commas.
    What I was missing was clicking on save as the system-wide default. I never tried that before and this worked. I appreciate your help.

  • Need to remove Commas REgular Expressions?

    How can I use java to remove commas from a number.
    1,000 string
    need it to be
    1000
    can I pass it through some sort of regular expression?

    I was attempting to do it with regular expressions to learn how to do them better.
    Thanks for your good comment.
    nupevic

  • Removing commas from on address line!!

    I need to remove comma's from an address field:
    substr(s_claim_periods.latest_prop_addr(CLAIMS.cla_refno),1,255) AS D,
    i have tried my usual method of
    translate (CONTACT_ADDRESS, ',' ,' ')
    but im having problems incorporating it with the substr command!!

    you could also use replace
    replace (adr, ',')as in
    SQL> with test as
      2  (select 'address,address,address,address,address' adr from dual
      3  )
      4  -- End of Testdata; here is the actual query:
      5  select adr
      6       , replace (adr, ',')
      7    from test
      8  /
    ADR                                     REPLACE(ADR,',')
    address,address,address,address,address addressaddressaddressaddressaddress

  • Removing commas from report result

    Hello gurus,
    Is there a way to remove commas from data values in the BEx reports?
    I used NODIM() to remove $ signs and units. We need to remove the commas as well.
    Thank you,
    Malli

    hi,
    in query properities you should have option to show unit on the top of column only and in key figure properities should be option to choose how many decimal spaces you want to be visible on report (this option you have in rsa1 -> infoobjects -> your key figure -> BEx reporting tab)
    Regards,
    Andrzej

  • How to remove comma in 1,007

    hi champions,
                              i hv to remove comma in 1,007.....plz help me.I HV TO USE IN ALV.
                              looking forward to an early reply.
           with regards,
           ravi gupta.
    Message was edited by:
            ravi gupta

    Hi,
    In ALV display , we have an option for removing the unit splitting by selecing an option 'no_unit_splitting' in the layout.
    After  selecting this layout option,the structure of layout  has to be passed in the
    ALV function module.
    Check out the code below.
    DATA:  ls_layout   TYPE slis_layout_alv.
    ls_layout-no_unit_splitting = 'X'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         i_callback_program             =  sy-repid
      I_CALLBACK_PF_STATUS_SET       = l_status
       i_callback_user_command        = 'USER_COMMAND'
      I_STRUCTURE_NAME               =
       <b>   is_layout                      =  ls_layout</b>
          it_fieldcat                    =  lt_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
       it_sort                        = it_sort
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
       i_save                         = 'U'
      IS_VARIANT                     = 'U'
          it_events                      = gt_events
      IT_EVENT_EXIT                  =
        is_print                       = gd_prntparams
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab                       = it_dlpl
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    Thanks & regards,
    Sreenivasulu P
    Message was edited by:
            P Sreenivasulu

  • Removing commas in fmt:formatNumber

    Hi
    just wondering how to remove commas with numbers outputted within a fmt:formatNumber tag.
    So for example instead of showing 1,000 I want 1000 to be outputted.
    Thanks in advance

    I found out after a bit of testing just have to add
    pattern="#"

  • Removing commas

    hi experts,
    is there any possible way removing commas when we define it as a keyfig
    number particularly for this field (Ex:bill no),now it is difficult to define
    it as characterstic
    thanks
    venu

    Hi Venu,
    I am not sure about your issue. But I had faced similar issue with commas coming for key figure and following is how i fixed it.
    If you are getting comma in a key figure then you need to go to SU01. Put the user id for which you are having the problem.Then go to defaults  and change the decimal notation.
    Thanks,
    Rakesh

  • Removing Commas and Spaces from Field

    I have a table called TableD1 in a database with a field called "Range".
    The ranges are like 1-1000; 1001-2000; etc. up to like 1000000-200000.
    That is how they are supposed to look, they are not numeric fields, just general, containing a low, a dash and a high all in the same field.
    I just discovered that quite a few of the entries have included commas and spaces, like 1-1,000 or 100000 - 200000.
    I need to write a Query that will remove all of the commas from the data in TableD1's "Range" field, then all of the spaces.
    I imagine they are some kind of Update statements but because of the potential to blow up the whole thing, I'm reluctant to experiment.
    Does anyone know what code I should use?
    Thank you in advance for any help.
    Gee

    Making sure you've taken a backup. Pull the data into temp table and do the testing. once you satisfied with the output then do the update on the main table.
    create table #temp
    Range varchar(100)
    insert into #temp values('1-1,000'),('100000 - 200000')
    select replace(replace(Range,',',''),' ','') from #temp
    --update #temp set Range=replace(replace(Range,',',''),' ','')
    Validate the the output of the select statement.
    --Prashanth

  • Removing comma (,) from string

    Hello Friends,
    I have a string something of this nature
    Sting : ',3456,45454,,45454,'
    Need to have just comma seperated value : '3456,45454,45454'
    Tried with replace but getting - '34564545445454'
    select replace ( ltrim(RTRIM(replace(',3456,45454,,45454,', ',,', ','),',')),',', '') from dual;
    Appreciate your help .
    Thanks/Kumar

    Hi, Kumar,
    kumar73 wrote:
    Hello Friends,
    I have a string something of this nature
    Sting : ',3456,45454,,45454,'
    Need to have just comma seperated value : '3456,45454,45454'
    Tried with replace but getting - '34564545445454'
    select replace ( ltrim(RTRIM(replace(',3456,45454,,45454,', ',,', ','),',')),',', '') from dual;Do you want to remove ','s at the beginning of the string, but leave them in the other places?
    If so:
    LTRIM (string, ',')LTRIM removes the given character(s) from the <b>L</b>eft side (that is, the beginning) of string. That's all you want here. (Was your string generated by SYS_CONNECT_BY_PATH? This is a very common problem.)
    RTRIM removes the given character(s) from the <b>R</b>ight side (that is, the end) of string. I don't think you want that; you certainly don;'t need it in the example you gave.
    REPLACE removes the given characters anywhere in the string. You definitely don't want that. If you did, there would be no point in also using LTRIM or RTRIM.

  • How to remove commas from xvbap-kwmeng field

    Hi All,
    Can you guys/gals help me ??
    I am having a issue with comma in xvbap-kwmeng field, I have value 1,662.000,
    How can I get rid of comma.
    and also please be aware that, I may have 1,662,123.000 situtation as well.
    How can I remove all comma's from by xvbap-kemeng field.
    Thanks
    Anitha.

    Hi,
    Check whether TRANSLATE statement works for you
    TRANSLATE xvbap-kwmeng USING ', '.
    In single quote use comma followed by a space after that use  CONDENSE  xvbap-kwmeng NO-GAPS.
    Regards,
    Selva

  • Removing Commas and after zeros

    Hi Experts,<br />
    <br />
    If user enters the values like 56.879.809,00 for me it should take 56.879.809 if user enters the value as 56.879.809,00 use error message.I want to delete the data including comma as well as zeros ",00" in value.This is in Module pool program designing.How to build the logic for this help me for this solution.<br />
    <br />
    <span style="color:red">Moderator Message: Please continue with the previous post Validating the particular value for a particular currency.</span>
    Edited by: Suhas Saha on Sep 29, 2011 1:02 PM

    assign ur value to a variable (lv_gross1)
                    lenght = strlen( lv_gross1 ).
                    search lv_gross1 for ','.
                    if sy-subrc eq 0.
                      if sy-fdpos > 0.
                        move lv_gross1+0(sy-fdpos) to lv_gross.
                      endif.
                    endif.
    it will remove ,00 from ur number.
    Thanks,
    Giridhar

  • Autocorrect removes commas?

    I've noticed for a while now that sometimes when I type a comma, the autocorrect removes it again after I type the next word. Sometimes it replaces it with an extra space so there are two paces between the words, sometimes it's just gone. Is this happening to anyone else? I'm finding it quite annoying.
    (this form, by the way, doesn't cooperate well with iPad typing, it won't allow me to add letters in between what I've already typed. Seriously Apple? Your own website is incompatible with Apple products?)

    ...so many ways to fail.
    Glad you got it working.
    Jerry

  • REPLACE statement removing commas from a money convert... I do NOT want it to do this

    I am using a case statement to remove the '-' from a negative number and place a '(' there instead. 
    The negative side of the CASE statement is as follows:
    REPLACE(CONVERT(varchar, CONVERT(money, SUM(Begin_Balance)), 1), '-', '(') + ')'
    The positive side is:
    CONVERT(varchar, CONVERT(money, SUM(Begin_Balance)), 1)
    The data output for the positive portion is 100% correct. Here is an example of the output I receive.
    (18271.15)
    (25000.00)
    82,490.00
    45,000.00
    Why is the replace statement stripping my commas?

    >> I am using a case statement to remove the '-' from a negative number and place a '(' there instead. <<
    So many horrible fundamental errors in one sentence! 
    1.  CASE is an expression, not a statement. An expression returns a scalar value of a known data type, A statement changes the schema. 
    2. In SQL, all display formatting is done in a presentation layer, never in the database.
    3. We use the ANSI/ISO Standard  CAST()  and not the old Sybase/Unix CONVERT today
    4. We use DECIMAL() and not the old Sybase/Unix MONEY. This thing does not work; it fail to do correct math; Google it! Do a data audit and see if you can go to jail for this. 
    5. SQL is not COBOL. The COBOL language treats all data as strings. STOP DOING THAT IN SQL! This language uses abstraction in the database and the presentation does the job that your old PICTURE clause used to do. 
    Can you get a 2-3 week intro course to SQL and modern programming form your company? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Removing commas from numbers

    his has a couple of items in it....
    In Numbers, I formatted a phone number column imported from a Text file, but it put in commas, like the phone is a number: 4157933161 is 4,157,933,161. Can I get rid of those commas?
    Also, I couldn't import a .txt file (a mailing list from Experian) into Numbers. When I did open the file with Numbers, Numbers put it all in 1 cell - yikes. So I had to go back to my old pc, import the .txt file (easily...) and then take that .xls file and load it on my MAC in Numbers - good golly you have got to be kidding. What am I missing. How do I import a .txt file (it actually is comma seperated but marked as an .txt file - MS Excel had no problem)
    This has to do with printing Pages or say pages from the Web. Can you print just a selection of say a Pages doc. Say I select /highlight one paragraph of a 50 page document and want to just print that, on MS in the Print page there is a box "selection" which commands the printer to only print what you selected/highlighted. Customer Care at Apple said he did not know of anyway to do this...yikes again.

    In Numbers, I formatted a phone number column imported from a Text file, but it put in commas, like the phone is a number: 4157933161 is 4,157,933,161. Can I get rid of those commas?
    Find / Replace is your friend.
    Find "," Replace by nothing.
    Also, I couldn't import a .txt file (a mailing list from Experian) into Numbers. When I did open the file with Numbers, Numbers put it all in 1 cell - yikes. So I had to go back to my old pc, import the .txt file (easily...) and then take that .xls file and load it on my MAC in Numbers - good golly you have got to be kidding. What am I missing. How do I import a .txt file (it actually is comma seperated but marked as an .txt file - MS Excel had no problem)
    Comma Separated Values files are correctly treated if their name extension is .csv.
    This has to do with printing Pages or say pages from the Web. Can you print just a selection of say a Pages doc. Say I select /highlight one paragraph of a 50 page document and want to just print that, on MS in the Print page there is a box "selection" which commands the printer to only print what you selected/highlighted. Customer Care at Apple said he did not know of anyway to do this...yikes again.
    He is perfectly right. There is no such feature.
    As we may print a given range of pages it's not a true problem.
    We may insert temporary page breaks to do the trick.
    And of course, if you prefer MS you may stay with it !
    Yvan KOENIG (from FRANCE mercredi 22 octobre 2008 11:20:29)

Maybe you are looking for