How to remove Space

Hi  group,
I have one string with length 15 ,sometimes I am getting this fields with in between sapces and hyphen(-) ,how to remove these spaces and hyphen using JAVA in UDF.
Can any suggest

So is what you want some thing like pass all the numeric values in the 15 character long string..is it ?
if yes please use this code in UDF...
int len = input.length();
String output = "";
for(int i = 0; i < len; i++){
  if(Character.isDigit(input.charAt(i))){
    output+= input.charAt(i);
return output;
Thanks,

Similar Messages

  • How to remove space after paragrph in pages on ipad

    Can't figure out how to remove space after each paragraph in Pages for Ipad

    Settings > General > International > Region Format
    Set it to your country to format numbers and dates in the way your country does.

  • How to remove space below text?

    In the screenshot below, how to remove space below text? I simply added a text box using the type tool and I get that extra space bellow the letter "B" that I don't need. I want to remove that space to center the letter within the octogon.
    Thanks!

    You might consider giving the letter a negative baseline shift and aligning it to centre.
    That way you can adjust it so that its anchor point coincides with the centre of the hexagon.
    Like this:
    Another thing: You may find it easier working with type if you hide bounding boxes.

  • How to remove space from a variable in a smartform

    Hi,
    I have a problem in displaying a variable in a smartform..The variable shows some blank space that preceeds the data.
    for eg:,
    variable =        18.000.
    How to remove space before 18.000?

    To remove the decimal places for quantity and rate/quantity , use the syntax to restrict the number of digits after decimal places. The syntax is
    &symbol(.N)&
    where N is number of decimal places.
    Since you dont want decimals use &symbol(.0)&
    For the other case it depends on how the currency is represented , any way try using the syntex &symbol(T)&
    Please give me reward point If it is useful
    Thanks
    Murali Poli

  • How to remove space below the table in smartforms

    how to remove space below the table in smartforms

    maintain a loop counter for item say count
    and in text editer write
    if count > 6
      new-page.
    endif.

  • How to remove spaces at selection screen coming from logical database

    Hi Experties,
    When we hide some selection from the logical database.  The spaces still occupied and this make our selection screen looks awkward.
    How to remove the spaces left by hidden selection ?
    Regards
    Nislina

    Hi,
    I came across your un-answered question while searching for a solution on the similer problem. Though I couldn't fine a solution on SDN, but figured out one myself. Thought its a good idea to share it.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group4 = '003'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Here screen-group4 contains the sequence number of the select-options field starting from 000 onwards.
    You may like to assign points and close the question.
    Kind Regards,
    Khalid Mustafa

  • How to remove space before value in Excel

    Hi,
    Have to send mail with Excel attachment.
    for that SO_DOCUMENT_SEND_API1is using.
    Just concatenating data to Contentents_BIN Structure with cl_abap_char_utilities=>cr_lf to get record by record.
    But i'm getting space in seoncd record first cell along with value.same things for next records aswell.
    How to remove that space in excel attachment?

    Hi,
    Is the value right aligned? If you pass any whole number or decimal number values to the excel sheet, it will be displayed in right aligned format in excel sheet. What is the type of the value that you are passing to the excel sheet.
    Thanks & Regards
    Rocky

  • Help :how to remove spaces in string

    could any body please help me in removing spaces from string suppose i have written vivek chhabra and i want to remove spaces in this string and want a string vivekchhabra then how this could be done
    anybody help me please
    vivek

    String string = "Hello - This is a test!";
    String result = string.replaceAll(" ", "");
    System.out.println(result);This code results the following output:
    Hello-Thisisatest!

  • How to remove space from satrting

    help me please
    i have 16 digit field ,  so in output i have only 5 digit and left  11 digit is comming blank
    so please tell me how to reduse space form starting
    my field is coming like this   -- Rs:            78,999.00 
    so i want to reduse space between Rs and amount
    thanks

    you can either use condense statement
    condense <field name>.
    You can also use the following function module.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT         = <FIELD NAME>
    IMPORTING
       OUTPUT        = <FIELD NAME>.

  • How to remove spaces

    Assignee: cf_supp Status: Open, In Progress, Reopened, Test Deployment Pending, Production Deployment Pending, Ready for QA, Bus Analysis, Ready for Development and Deployment Complete Sorted by: Created descending, then Key descending
    the above is the paragraph that i am displaying in table from query but i am not able to remove spaces in between , i tried with trim and also with replace functions.
    Any help in this
    Thanks in advance

    the above is the paragraph that i am displaying in table from query but
    i am not able to remove spaces in between , i tried with trim and also
    with replace functions.
    There's always the old trick of continually applying a replacement function until you're done. It just might be of help here. I assume you will want to stop when there is only a single space between the words.
    <!--- variable to simulate a paragraph containing arbitrary space characters --->
    <cfsavecontent variable="paragraph">
    Assignee: cf_supp Status: Open, In Progress,
               Reopened,             Test Deployment Pending,   Production
                Deployment Pending,    Ready for QA, Bus
         Analysis, Ready for Development and Deployment
    Complete Sorted by: Created descending,              then Key descending
    </cfsavecontent>
    <p>
    <strong>Paragraph before:</strong>
    <pre><cfoutput>#paragraph#</cfoutput></pre>
    </p>
    <!--- Replace whitespace characters like linefeed, carriage-return, tab, space, etc., with a single space --->
    <cfset paragraph = REreplace(paragraph,"[[:space:]]", " ", "all")>
    <cfloop condition="true">
        <cfset old_paragraph = paragraph>   
        <!--- Replace two adjoining spaces with a single space --->
        <cfset paragraph = replace(paragraph,"  ", " ", "all")>
        <!--- Continue till there is no more replacement --->
        <cfif compareNoCase(old_paragraph, paragraph) is 0>
        <cfbreak>
        </cfif>
    </cfloop>
    <p>
    <strong>Paragraph after:</strong>
    <pre><cfoutput>#paragraph#</cfoutput></pre>
    </p>

  • How to remove spaces in the output of an PL/SQL report

    Hi,
    The requirement is to develop a SQL report.
    The sample code is like this
    Select 'Order Number Header Id' from dual; ( This is the heading in the output of the report.)
    Select order_number , header_id from oe_order_headers_all;
    The output is displaying as follows
    =======================
    'Order Number Header Id'
    1234 101
    2222 102
    3333 103
    =======================
    Now I am opening the report in excel, and there is a space appearing after the headings.
    So, how can I remove the additional blank line between the headings and the data.
    Thanks in advance
    Mani

    Mani B wrote:
    Hi,
    The requirement is to develop a SQL report.From which tool ur getting this report...? From oracle forms report..?
    >
    The sample code is like this
    Select 'Order Number Header Id' from dual; ( This is the heading in the output of the report.)
    Select order_number , header_id from oe_order_headers_all;
    The output is displaying as follows
    =======================
    'Order Number Header Id'
    1234 101
    2222 102
    3333 103
    =======================
    Now I am opening the report in excel, and there is a space appearing after the headings. if u use any third party tool like pl/sql developer or sql developer then u can export the data into xcel file.
    Sen

  • How to remove space between pages in Oracle Reports 6i?

    Hi,
    I have customized one oracle report (rdf). Earlier, the standard report was showing the ouput in pages i.e. there exists space beteen the pages. But I want my custom report in such a way that it should show me the result in one page i.e. there should be no space between the pages as user wants to spool the output into excel sheet (xls format) after getting the result output obtained from my custom report. Presently, when i spool the data into excel sheet, there is still the space exists between the pages like...few records will come then white space...then records.
    How can I remove this space, so that user can easily spool the data into excel without existence of white space.
    Any sort of help on this will be highly appreciated.
    Thanks & Regards,
    Sumir Chawla
    Edited by: Chawla on Jan 4, 2009 10:20 PM

    Hi,
    My report is running on Unix. When I checked the output file in unix where it is getting generated, i saw ^L characters wherever the space appears when i see the output in apps (notepad) , like after every page where I am able to see the space in my output, there ^L is appearing in output file in unix, so how can I avoid this.
    I tried to adjust the frames and repeatinf frames also, even i tried changing the properties also of main region (body), but nothing is working for me and still the same issue occurs. I am not aware of this. Please suggest me.
    Thanks a lot!
    Regards,
    Sumir

  • How to remove space between two fields in emergency primary contact.

    How Can I remove a space between the two fields.IN emergency primary contact there are certain field called "C/O" and a i have added one text for this field inside that.But it is taking a big space between the "C/O" field and the text view.Plz suggest how I can re,move this?Also How Can I add new transparent container  with the end user personalization in the emergency contact field.

    Hi Peddi
    In my structure pannel I have simpleSearchPanel below that only i have the two lov fields ex: emp_no and emp_name . how to set the spacer between this From which Region where can find the spacer bean what proerty do i need to set
    Thanks
    AT

  • How to remove space between the lines

    Hi,
    In my repoprt output I am getting space between the lines. I have changed
    the repeating frame and field -> vertical elasticity and horizontal elasticity to fallowing combinations.
    fixed, fixed.
    variable, fixed,
    expand, variable,
    variable, expand
    Then also I am getting space between the lines of my output.
    Could you help me in this?
    Thanks

    Change the Vertical Elasticity of fields and frames to Variable. If for some fields or frames you don't want to change the vertical elasticity, then remove extra space by adjusting the height of fields/frames.
    Also check repeating frames property 'Vert. Space Between Frames'. Default is 0.
    Hope this helps.

  • How to remove space bar?

    I have an aluminium keyboard for the 2009 iMac. I got a little liquid in the spacebar area, and whilst it's not sticky per se, I have to really hit the spacebar sometimes to get it to work, and since the rest of the keyboard is so 'soft', it makes typing really stilted and difficult.
    Can I remove the space bar?

Maybe you are looking for

  • Blinking buttons issue

    I have been using the button feature in Captivate 3 to insert navigation buttons. The buttons are being inserted on the bottom of the slide; however, whenever the tutorial progresses to the next slide, the buttons "blink/flash". These buttons are con

  • How to call  servlet from applet residing in Oracle9i forms bean area.

    Dear Members I have an applet which is calls a servlet for database operations. If access this from a browser it works fine as the applet is signed. But When i place this applet in a bean area of Forms in Oracle 9i. It gives access control exception.

  • Losing the 'pointer' on screen....

    Was just wondering what would cause the loss of the pointer on screen? I had several applications open (Photoshop, iphoto, Excel, iweb, and was connected to the internet), and when I was working between them all, the pointer kept disappearing and I w

  • Oracle 9i client and COM+ transaction = error

    Hello, I'm using Oracle 9i client with Microsoft COM+/ADO/VB 6.0 sp5 and MSDAORA provider. Trying Oracle 9i client on Windows 2000 Server or Windows 2003 Server or even my own dev. Pc (XP) results in error: " -2147168229 Cannot connect to the transac

  • Query in report output

    hi,   In reports can we split output screen in to two. it mean same output should come in two pages, if yes how to do. thanks, sujith Moderator message : Duplicate post locked. Edited by: Vinod Kumar on Sep 30, 2011 2:40 PM