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

Similar Messages

  • 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

  • How to remove commas from number in Bex analyzer

    Hello gurus,
    I am having a requirement where i need to show the number without separating with commas. for example 23,34,780 as 2334780 in the report for a particular column only. I know that it is possible using the macros but i am unaware of the VB code.
    I have created the same using  the BEX Analyzer of BI 7 by creating the workbook and maintaining the properties for that columns. But right now i am working in BW 3.5 when i tried the same in this i am getting the run time error and disconnecting from the SAP.
    So now i have decided to go with the Macros pls help me with the VB code.
    Regards

    Thanks for ur reponse Danny.
    I have edited the macro and paste the below code changing the column number.
    Sub Macro3()
    ' Macro3 Macro
        Application.Goto Reference:="Macro3"
        Columns("R:R").Select
    Selection.NumberFormat = "#############"
    End sub.
    But its not working, still i am getting the commas in between the key figure. kindly let me know if i need make any other change bcoz i havent work on macros VB code earlier.
    Regards
    Edited by: KK on Jun 16, 2009 2:17 AM

  • How to remove the comma from string

    Hi,
    I Have string like below :
    String some1="123,44.22";
    I want to remove comma from string and final output should be 12244.22.
    public class getOut{
    public static void main(String args[]){
    String some1="123,44.22";
    getChars(int 0,some1.length(),char[] dst,0);
    can somebody in the forum give me idea how to remove comma from the String and
    have a string without comma.
    Thanks
    Jack

    int idx = oldString.indexOf(',');
    if(idx >= 0)   
          newString = oldString.substring(0, idx) + oldString.substring(idx + 1);or for jdk 1.4 and later
    str = str.replaceAll(",", "");

  • 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="#"

  • How to remove the '#'symbols for infoobject movement types in bex reporting

    Hi All,
      I have a problem in Bex reporting. The problem is when ever executing the report  that time some of the characteristic values is shown in layout '#' Symbols. i want to remove the '#' valuse in report.
    is it possible please give me step by step procedure for how to remove the '#' Symbols in reporing layout.
    this is very urgent please help to me on this issue.
    Thanks & Regards,
    Guna.

    Hi Guna,
    To achieve this issue, we need to replace the value of ‘#’, we need to change the description while retrieving the data from tables. So we need to write some ABAP code in SE38. Go to RSA1 transaction and go to Info objects tab. Then go to context menu for ‘cProject Key Figures’ as shown below. Click on the ‘Object Overview’ to get the overview of all the info objects. Here you can see the field names which are used to know the table names.
    In SE11, type the table name in ‘Database Table’ field. Now press ‘F4’, then you will get the next screen to select one of the P/Q/S/T tables.
    Now click on the button rounded in the below screen to view the data in the table.
    Now click the execute button or press ‘F8’ to view the records.
    Now go to Tcode: SE38. Create a source code and give some program name for that source code. To write code, you need access key. Contact your BASIS for this.
    Now write the below code for that particular table in which you want to change the value ‘#’ to description ‘Blank’. In the below source code, we are updating particular table, setting the field as ‘Blank’ where it is null or no value. Here the field will automatically get updated to ‘#’ if there is no value or null.
    update /BIC/PXXXXX set /BIC/ZXXXX = 'Blank' where /BIC/ZXXXXX is null or /BIC/ZXXXX = ''.
    if sy-subrc eq 0.
    write 'successful'.
    commit work.
    else.
    write 'unsuccessful'.
    endif.
    OR
    If this # is because of the missing master data than,
    right click that IO -> maintain master
    you will see first row as a blank.
    whatever value you maintain in this row that will come in the report for all Not assigned # values of the master data in the report.
    maintain it according to your requirement, save and activate the master data
    Hope this helps u...
    Regards,
    KK.

  • How to Remove svn:needs-lock property in subversion

    Hi All:
    I am having problems with subversion and JDeveloper. We were using TortoiseSVN in 10g, and I am trying to exclusively use JDeveloper svn in 11g (11.1.1.4). We have a common business components .jar file that defines all our entities and allows everyone to use these entities already defined.. After losing a bunch of entities through a mistaken delete, we put the svn:needs-lock property on all the entity definitions of this .jar file. The problem appears to be that JDeveloper svn does not lock the assoc.xml file even when I lock the upper levels, which prevents me from changing names and organizing by function our associations. This leads to question #1, is this a known issue? The assoc.xml file is not visable through JDeveloper 11.1.1.4, so I cannot manually lock it.
    So I am wanting to remove the property svn:needs-lock from the entities so that I can use JDeveloper svn since we have discovered that there is a problem using JDeveloper svn with TortoiseSVN. Files seem to become corrupt. This leads to question#2, Does anyone know how to remove the svn:needs-lock property using JDeveloper snv?
    When I display the properties, there is no remove functionality, just "delete". When I click on delete, I am asked if I want to delete the ENTITY and all its files. That is not what I want to do. I know how to delete svn:needs-lock in TortoiseSVN, but hoped to do it in JDeveloper. Is there a way, or is this functionality missing from JDeveloper SVN?
    Mary
    UofW

    Hi:
    Thank you for your response...after using both TortoiseSVN and JDeveloper svn, I have found that neither one handles locking properly. Even though the functionality is in both, there are a variety of problems that I have run across that have wasted an awful lot of my time. It really shouldn't take an entire day to commit something to a repository, but that is what I have found to be the case because of all the problems I am running into. Perhaps now that I have removed the locking, things will be simpler. And I did use TortoiseSVN to remove the svn:needs-lock property from the files.
    I prefer to use JDeveloper svn since the tool integration with svn has worked better for us with the automatic filtering, etc.
    I was hoping to get a response from one of the JDeveloper 'aces' as to whether it is a known problem that the assoc.xml file doesn't get locked and cannot get locked manually in JDeveloper svn AND is someone at JDeveloper aware that there appears to be no way to remove svn properties after they are added on a file....
    ....Any aces out there reading this forum?
    Mary
    UofW

  • How to Remove the underline from the selection screen parameter

    How to remove the underline from a selection screen parameter ?

    >
    Anoop Menon wrote:
    > hi Avinash,
    >
    > I am not able to understand the use of the 'comment line properly.
    >
    > The last part of the statement which says modif id is confusing.
    >
    > Please clarify..... I am unable to activate my code when I put the selection screen commebnt statement.
    Use this and update it to your requierement !
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 1(30) comm.
    PARAMETERS test(1) type c.
      SELECTION-SCREEN end of line.
    INITIALIZATION.
      comm = 'test'.

  • How to remove /delete a particular character in a String

    Hii
    i have this problem.In order to specify the number of decimal palces for a double type variable,i have used the
    NumberFormat class.
    My code ;
    Double x=234566.4 ;
    NumberFormat n1= NumberFormat.getInstance();
    n1.setMaximumFractionDigits(2);
    n1.setMinimumFractionDigits(2);
    String st=n1.format(x);
    out.print(st) ;
    is giving me 2,34,566.40 which I dont want I want to have it lik 234566.40
    since i will again put it in function Integer.parseInt/Double.parseDouble...so those commas are giving me errors.So can anybody suggest how to remove those commas from that string...It would be of gr8 help.thanx
    Arnab

    hi
    You can use StringTokenizer
    Your code
    Double x=234566.4 ;
    NumberFormat n1= NumberFormat.getInstance();
    n1.setMaximumFractionDigits(2);
    n1.setMinimumFractionDigits(2);
    String st=n1.format(x);
    out.print(st) ;
    StringTokenizer sT = new StringTokenizer(st,",");
    String newstring="";
    while(sT.hasMoreTokens())
    newstring += sT.nextToken();
    out.println(newstring);
    this may help out
    cheers
    rambee

  • 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 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 a number format mask ?

    I have to import some data form excel sheet. but the number in that sheet have been saveed as the following format mask 1,000.000(2,000.000,1,5000,00) as charchter
    but in may table that field is a number, so how can remove the format mask from the excelsheet?
    Thanks

    846640 wrote:
    I have to import some data form excel sheet. but the number in that sheet have been saveed as the following format mask 1,000.000(2,000.000,1,5000,00) as charchterI am wonder how to apply format mask in excel for the character cell.
    but in may table that field is a number, so how can remove the format mask from the excelsheet?So, while reading from excel how the values is coming in the variable i assume its coming with comma(,) than what happens if you try like below?
    variable_name:=TO_NUMBER(REPLACE(variable_name,',',''));
    -Ammad

  • 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

  • Firefox hangs on opening requiring force quit I have snow leopard mac It hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise m

    Firefox hangs on opening requiring force quit I have snow leopard Mac It even hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise me
    == This happened ==
    Every time Firefox opened
    == I tried to update firefox add-ons ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    Try a new profile. See [[Recovering important data from an old profile]]

  • ALV .  How to remove the sort buttons on toolbar in ALV report?

    Hi,experts
      As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?
      Thanks for your help .

    Hi guixin,
    1. Before calling REUSE_ALV_LIST_DISPLAY
    2. Write this code :
    data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.
    exclwa = '&OUP'.
    append exclwa to excl.
    exclwa = '&ODN'.
    append exclwa to excl.
    3. Then while calling the FM,
       pass this parameter also .
    IT_EXCLUDING     = excl
    It will work fantastic.
    regards,
    amit m.

Maybe you are looking for