Remove blank spaces in a text field?

How can I remove blank spaces in a text field? Some text fields have a lot of blank fields that need to be removed so that I can report only on the text.
CRXI
Edited by: Burton Roger on Feb 10, 2009 5:48 PM

Ex:
"Hi,
I have a need for monthly service desk reporting.
Please provide data on single sheet.
Thank you"
I would like to shrink it down to -
Hi, I have a need for monthly service desk reporting. Please provide data on single sheet. Thank you"

Similar Messages

  • How to Remove Blank spaces in the text elements for a smartform

    Hi All,
    Can any one please help me out to remove the blank spaces in the text elements.
    We are printing Labels using the Zebra Printer and we have rotated the windows to 90 degrees.
    We are able to see out text and barcodes. But the issues is when we are printing the label. We are getting spaces in the Text and in the Text elements fields. I have tried to give &g_name(C)&. But it is not working even i worked with style sheet spaces no luck.
    Currently out text and fields are printing like this
    s h r i y a n
    material number
    1111  -001  -000
    They should print like
    shriyan
    1111-001-000
    According to the ZEBRA suggestions we are using the font helve.
    Plase help us it is very urgent.
    Reward point will be given.
    Thanks

    Hi,
    Just use Condense g_name inside the program lines.
    Just to see how it behaves put a hard breakpoint.
    Break Username. and check the condense statement.
    condense <your field> no-gaps.
    Create program lines ahead of printing. give the field you want to condense in the input and output parameters of the program lines.
    Use condense inside the program lines.
    Thanks,
    Vamshi.

  • Remove extra space value of the field  in text element

    Dear All,
    Can any one please help me out to remove the blank spaces in the text elements of SF.
    we are printing Label in which i want print  quantity of material. and i am using MSEG-MENGE for quantity of maetrial.
    But the issues is when we are printing the label. We are getting spaces  in the Text elements fields &MSEG-MENGE&.
    i am also check menge field within mseg table. in which menge field define as QUAN data type with length 13.
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&          
    UOM:&t_MSEG-MEINS&
    >
    My Output in SF:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:             960
    UOM:LBM
    MIGO.NO.:4900000025
    how to remove extra blank spaces in the text elements ( QTY:             960 )
    guide me.........

    Dear All,
    I am using  code block in SF before text element.
    In  The Text Element ...
    <
    MAT CODE:&t_MSEG-MATNR&
    DESC:&MAKTX&
    QTY:&t_MSEG-MENGE&
    UOM:&t_MSEG-MEINS&
    MIGO.NO.:&t_MSEG-MBLNR&
    PO.NO.:&t_MSEG-EBELN&
    LOCATION:&t_MSEG-WERK&&NAME1&
    >
    In programe Line ( code block )....
    <
    read table t_mseg index w_index.
    qty = t_mseg-menge.
    condense qty.
    SELECT SINGLE name1 FROM t001w INTO name1 WHERE werks = t_mseg-werks.
    SELECT SINGLE maktx FROM makt INTO maktx WHERE matnr = t_mseg-matnr.
    >
    My Output:
    MAT CODE:11000002
    DESC:Coarse Aggregate 10mm Sieve
    QTY:                                                      960
    UOM:LBM
    MIGO.NO.:4900000025
    Only problem in value of Quantity field .
    guide me.........

  • Removing Blank Spaces caused by Supressed data

    Hi All,
    How we can remove the balank spaces caused by supressed data in crystal reports.for eg
    Item Code:I0002
                   Timer
                   For Time Info
                   100
    ItemCode:I00003
                   Pen
                   20
    if there is txt added against pen as for Timer(For Time Info)
    it will leave blank space.How to remove blank space.
    Thanks,
    Neetu

    Hi Neetu
    I have tried replicating your requirement at my end using Xtreme Sample database below are the steps which I have followed.
    1)I have customer Id field,Customer name field field placed in details section.
    2)Click on Section Expert
    3)Click on Details.
    4)Check the second option as "Suppress(No Drill Down)".In front of that there is one icon as "X-2".Double click on that icon.
    5) Type the below formula
         if {Customer.Customer ID}=157 and {Customer.Customer Name} ="Aruba    
         Sport" then true
        else if {Customer.Customer ID}=148 and {Customer.Customer Name}
         ="Koala Road Bikes" then true
         else false
    6)Save and close.
    With this formula where condition matches the specific criteria it will suppress the section and there will be no blank spaces.The rest of the data will be shown.
    Hope it will help you.
    Regards
    Asha

  • CS6 Site Management window is blank? No input text fields or controls showing up?

    CS6 Site Management window is blank. No input text fields or controls are showing up. I have reinstalled CS6 Dreamweaver CS6 which is part of my Web and Design Suite, but that did not help.

    Welcome -
    See if this helps
    http://helpx.adobe.com/dreamweaver/kb/cant-select-some-items-site.html
    I seem to recall an "invisible icons' issue. Just for giggles, hover around the bottom left of the panel to see if some edit controls appear.  Just a shot in the dark.

  • PI removing blank spaces at the end of the lines in a plain text file

    Hi -
    I have an interface that transfers a file via FTP. I defined both the sender and receiver to transfer either Text or Binary but the interface removes every blank space I have after the last character. The file is a fixed lenght file.
    Example:
    Original file:
    Hello world(space)(space)(space)(space)(space)(space)(space)(space)(eol)
    where (space) is the space character and (eol) is the end of line char.
    File after it is received.
    Hello world(eol)
    I already defined the parameter Row.fieldFixedLenghts with 10164 which is the lenght of the lines of the file.
    Any ideas why it may be happening?
    Thanks,
    Carlos.

    Hi -
    I tried both the parameters:
    xml.fieldContentFormatting
    structure.fieldContentFormatting
    The received file still has the problem. All the blank spaces are cleared out.
    The file is a plain text file not an XML file. May this be the issue?
    Thanks,
    Carlos.

  • Removing leading zeros and leading blank spaces from an input field

    Hi All,
    I have an input field which is alphanumeric and i need to remove the leading zeros and blank spaces in it , but intermediate spaces should be kept .
    so i used the UDF
            String output = input.replaceFirst("^0+","");
            return output;
    but this code does not remove the leading blank spaces . Can anybody help in modifying this code so that even the leading blank spaces along with leading zeros  can be removed .
    Regards ,
    Loveena .

    lets say input is a
    then
    int len = a.length();
    for(int i;i< length;i++)
    if(a.substring(0,1).equals(" ") || a.substring(0,1).equals("0"))
    a = a.substring(1,len);
    return a;
    hope you got the logic so that you can enhance it better

  • Remove blank spaces in excel output file

    it is a BOM report and the output is into a excel file.
    problem with the excel file output is : i gives blank spaces sometimes after the number and sometimes before the number...
    so, how can i remove those blank spaces for the values.
    ive nearly 15 columns having values in each column.
    so, how to get rid of blank spaces for these values in the columns in the xls file. is there any fn..module or a command that i can put in the code.

    Hi,
        above mentioned FM canbe used to eliminate extra zeros   in char field. eg. material number.
      MATNR will contain 18 char.-000000000045678925.
      toget only 45678925 F.M -conversion exit can be used.
      for ur reuirement use SHIFT statement only.
    regards,
    Prashanth Maturu.

  • Remove blank spaces

    Dear Forum,
    Field bkpf-xblnr is 16 char. I need to remove the space before and after in case user does not enter at the first position.
    example, user enter the value bb1234567bbbbbbb during the entry screen in bkpf-xblnr where i will put 1234567 to another new variable in my program.
    May I know what can i do?
    Thanks

    Dear,
    we use a keyword in SAP ABAP called CONDENSE with an addition NO-GAPS to remove all blank spaces in a char type data object..
    so for you..
    condense bkpf-xblnr no-gaps
    will work
    more help at
    http://help.sap.com/abapdocu_70/en/ABAPCONDENSE.htm

  • How to remove blank space left from Images Word import

    Hi all,
    I'm working on a document which has been imported from Word, because of the conversion process a lot of images (that where pasted directly from Powerpoint in Word) didn't get converted properly and ended up in different part of the resulting Pages document.
    The issue is that the images were found somewhere else, but the space they were occupying in the document was left ..sometimes in that space I find a squared frame which I can easily remove but some other times I just find a blank space which is impossible to remove or select.
    This results in breaking the text for 10-13 lines. It is impossible to make the text filling this space. I can assure I cannot select this area with any tool (also by selecting 'make master objects selectable') and Im using the 'show invisibles' mode.
    Please any suggestion or advise?
    Im available to send a part of the document so anyone may check if wants to help me..
    Thanks a lot
    cheers

    Hi Jerry thanks for your possible help , please find below a part of the text Im working, the issue is at the end of page 16 where I highlighted in yellow the text, I cannot get rid of the space at page 16:
    Sorry if the document is in Italian and it is quite understanble for all you..
    http://www.wupload.com/file/2677565317/example_of_my_problem.pages
    I had to put it on wupload  because the file is 77MB, sorry!!!
    ..and I dunno why...the whole document is 264 pages and is 77,8 MB I thought that only 17 pages were less...
    I think thisis another BIG ISSUE thie FILE:.I think there is something hidden in it which is subtracting space...
    Actually whne I imported the original document from Word it became 100MB, then I got rid of all the images but still 77MB, in word it was just 12MB with images..
    Any more idea/suggestions about this size issue please?
    Thanks a lot to everyone
    cheers
    simo
    PS
    in some of the footnotes there are some citation I imported using Endnote x5, but this is not affecting too much the size, as before these citations when I imported the document were not

  • SAP Script -Removing Blank Space

    I am working on Customer Accounting Stmt.
    On First Page I have to display header window , main window , account and footer window
    Account window will be displayed on last page only.
    Account window is phisically present after main window.
    So blank space is getting created after main window.
    My question is how to remove this blank space?
    How to change the main window size dynamically?
    Or any other solution to this problem?

    Hi Vimal,
    Check this link
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=windowonlastpagescript&adv=false&sortby=cm_rnd_rankvalue
    Regards,
    Sravanthi

  • Removing pre filled responses in text field

    New to livecycle and I am creating a new form and have been simultaneously testing it. When i am entering information in a text field all of the information I have entering pre populates and I'm worried the end user will see this. I cant seem to remove this and ots vey distracting. How do I clear this?

    Hi,
    Can you describe further what do you mean by prepopulates when you enter info? Do you mean an auto-completion like pre-population? Or does the field get prepopulated BEFORE you key in any values in the text field? Or do you mean the text field ignores what is being typed in, and pre-populates with a default value?
    Regards,
    Ber

  • Work with text with blank spaces, how separate text?

    Hi:
    I have a problem in abap programming, I hope you could help me.
    I have a txt file, with a code and its description. I have this file uploaded to a sap internal table, in same field of internal table are code and description.
    The problem is next:  I need only the code, not the description, but length of code is not constant, and it is separated from description for at least two blank spaces. The code contains also a blank.
    Do you know how I can take only the code until these two blanks spaces? Any abap function, any idea..?
    Thanks in advance for your help.

    Hi,
    You could use split. if you code always contain a blank space then you won't have any problem.
    data: a(30).
    data: b(10).
    data: c(10).
    data: d(10).
    a = 'XY ABCDEF  EFGHI'.
    SPLIT a at space into b c d.
    Regards,
    Nitin.

  • How to remove blank spaces in the source code of my page?

    I created a page with the following code for testing:
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/>
         <dsp:droplet name="ProductLookup">
              <dsp:param name="id" value="xprod2046" />
              <dsp:param name="elementName" value="product" />
              <dsp:oparam name="output">
                   <dsp:valueof param="product.DisplayName"/>
              </dsp:oparam>
         </dsp:droplet>
    </dsp:page>
    It only shows the product name in the browser. But if I look at the source code of my page he created 61 lines in response to this code, where a line is the product name and the other 60 have nothing.
    I know how to remove these lines that the ATG creates no content because my project is full of these empty lines.
    Anyone ever had this problem and could help me?
    Thanks

    Hi ,
    Yup this is a problem ,
    you can use following ways :
    1- use jsp comments eg :
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/><%--
         ----%><dsp:droplet name="ProductLookup"><%--
              ----%><dsp:param name="id" value="xprod2046" /><%--
              ----%><dsp:param name="elementName" value="product" /><%--
              ----%><dsp:oparam name="output"><%--
                   ----%><dsp:valueof param="product.DisplayName"/><%--
              ----%></dsp:oparam><%--
         ----%></dsp:droplet><%--
    ----%></dsp:page>
    2- End tags at next line :
    e g :
    * <dsp:page
    * ><dsp:droplet name=”xyz”
    * ><dsp:oparam name=”output”
    * >Name: <dsp:valueof param=”abc”
    * /></dsp:oparam
    * ></dsp:droplet
    * ></dsp:page>
    3- Always use TAB instead of using SPACEBAR whie writing source code.
    4 - From JSP 2.1 onwards we have a page directive trimwhitespaces ( see if that works , i was not able to ), google for it for more info
    5 - You can modify your build scripts to remove white spaces from jsps while building EAR.(complex though, as you may not want to trim all white space.)
    6 - modifying the deployment descriptor.
    <init-param>
    <param-name>trimSpaces</param-name>
    <param-value>true</param-value>
    </init-param>

  • How can I remove blank space after month value while selecting to_char(sysdate)

    select to_char(sysdate,'dd-month-yyyy') from dual;
    when I give this query, I'm getting a blank space after the month value. How can I trim that?

    Or else try this one
    select to_char(sysdate,'dd-fmmonth-yyyy') from dual;
    Best of luck.

Maybe you are looking for

  • No longer wifi on 4S. IOS 6.1.3

    No wifi any more on iPhone 4S. I tried all solutions on web but nothing have worked! Please,i need HELP.

  • Analysis authorization - Authorizing Characterstic Values

    Hello all, We upgraded to BW (BI) 7.0 and thus have to use the new analysis authorization concept. While I have the documentation on how to create them and understand the, I'd like to know if there are any experienced users or experts who can assist.

  • Shipment Cost

    Hi Folks, I have a problem with Shipment cost Document having two line items in that . First line item showing the net value as "Zero"  and Second line item having some net value "xxxxx" . Now my issue why for line item " 1"  the condition type is no

  • ORA-01033 Error

    My Window NT V4.0 (SP6) was crashed during I am running DBA Studio and SQLPlus on the command line. I reboot the computer, and rerun the SQLPlus script, and DBA Studio and get error ORA_01033. No matter how long I wait, this error does not go away, e

  • Internet sales (Self registration)

    hi experts any one have material regarding Internet sales (Self registration)., if yes i request you to kindly forward to my mail id [email protected] Regards vinaykumar