How to remove representation of grammar correction of text (FM read_text)?

Hi ABAP Gurus,
I am working on a program that downloads data to Excel.
The data comes from the text using the FM read_text.
I tried to look at the data and it contains grammatical error like no spaces are provided after end of each sentence.
When I tried to view it, an ampersand sign (#) appeared in between of those words. See sample below:
This account should be used to hold the Raw Material related variances within Finished Product Variances.#This Account is being set-up as open item managed account to support the global requirement.
If you notice, the correct grammar entails us that there should be spaces after period (.) of the 'Variances' before the 'This' word. As a result when viewing such text, an ampersand appeared  using the old editor though the ampersand sign did not appear using the new text editor.
My case then is to remove the such appearance of ampersand but I cannot remove it since the abap code cannot determine it  as a character.
It helps me conclude then  that the ampersand sign that appeared in representation of grammar check (usually words are highlighted in red)  is not really a character. It is the representation of that crooked red line during grammar chek of the text.
I have to get rid of that ampersand since I am downloading the data to excel, otherwise it causes the data to move to another row in excel file.
Please help me.
Thank you.
Regards,
Onyx

What I have had to do, in one similar instance, is find the special characters that were being 'pasted in' by someone who was copying and pasting from a desktop file that had oddball hex characters in it...Here's the approach I took (to the best of my memory).
Look in debug and identify the hex value of the characters...
Turn off the unicode switch in porgram attributes, so you can declare type x.
Set fields like this: 
lc_hex1 type x value '09'.  "1 character hex field...put in the bad hex value you saw in debug...
declare as many of these constants as you need....
then ....
field-symbols <fs> type tline.
loop at itxt assigning <fs>.
if <fs> is assigned.
replace all occurrences of lc_hex1 with space into <fs>-tdline.
replace all occurrences of ... with space into <fs>-tdline.  "as many times as needed for each "bad" character.
condense <fs>-tdline.  "squeeze all the extra spaces out
endif.
endloop.
Then you might want to call something like RKD_WORD_WRAP to reformat to the length you'd like, breaking on word (space) boundardies.
Edited by: BreakPoint on Jun 25, 2010 8:15 PM  ... use replace all occurrences instead of do...enddo.

Similar Messages

  • How to remove/change a binding correctly?

    Hey,
    I'm trying to remove an aggregation binding of a table, because I want to set another one on it.
    I need something like this:
    if ( mytable.isBound())
    mytable.unbindRows()
    mytable.bindRows()
    ... but istBound() returns always "false", although it is bound and data are shown. The new binding is working well, but I think the old Binding remains at the model -> which causes (old) requests on a refresh.
    What is generally the correct way to call ".bindRows()" many times, without getting too many old requests?
    Or how can I remove a Binding totally from my model?
    Thanks and greetings,
    Joerg

    Hi Jörg,
    it seems you have to use the setModel() method also for removing a binding.
    Take a look at the documentation.
    setModel(oModel, sName?) : sap.ui.base.ManagedObject
      Sets or unsets a model for the given model name for this ManagedObject.
    The sName must either be undefined (or omitted) or a non-empty string. When the name is omitted, the default model is set/unset.
    So, this call should remove the previously bound model:
    myTable.setModel();
    Greets,
    ben

  • How to remove the last new line in text area ?

    I have a calculator Applet that shows the calculation in a text area.
    if i enter 2+6, the text area shows
    2+
    6
    and i have a clear last button, which deletes the last entry by user.
    in the example above, one hit of clear last, deletes 6. another hit should delete +.
    I can delete the numbers, but I don't know how to go back to the previous line and delete the operator.
    I may have other calculations in that text area above the current calculation. so replaceAll("\n","") would not work here.
    Please someone help me here.

    it's an applet, i am developing in Eclipse ( mac environment)
    so for deleting a number i used this code, and works fine
    String temp = t.getText();
                             String lastChar = temp.substring(temp.length()-1);
                             for (int i=0; i<numbers.length; i++) // deleting a number
                                  if (lastChar.equals(numbers)){
                                       temp = temp.substring(0,temp.length()-1);
                                       number = number.substring(0,number.length()-1);
                                       t.setText(temp);
    which t is the text area, and numbers is the string array of 0 to 9, and number is a string where i store the entered number
    so i thought for deleting an operator i should use something similar, where i need to go back to the previous line and delete it,
    String temp = t.getText();
                             String lastChar = temp.substring(temp.length()-1);
                             if(lastChar.equals("n")){
                                                            temp = temp.substring(0,temp.length()-3);// deleting n , \ , and the operator
                                       t.setText(temp);
                             } but it doesn't work

  • How to remove blue line grid over PDF text in Adobe?

    I was working on my Adobe and I pressed something like control + x or maybe a or maybe y and suddenly a small blue lines have appeared as a grid over my text. I turned off Adobe and turned it on again opening a new PDF file and the small blue line grid remains in other Adobe PDFs. What should I do? (Note I am using a MacBook Pro)

    Ctrl+U ...
    On Tue, Sep 23, 2014 at 11:40 PM, weird blue lines in pdf <

  • 5.0.1 - how to remove the mms icon in the text messaging section?

    I will NEVER use it and when disabled via settings it just grays out the icon and this takes up a considerable amount of the room I'd like to use to simply send a message. In the olden days when mms was disabled the icon would disappear completely which was helpful as I am often sending long texts

    Sorry for the spam!
    I just discovered the whole new section in the Interactive Report - Link Column - just needed to exlude the link.
    P.

  • How to remove an arc correctly?

    Can someone explain how to remove an ARC relation correctly?
    Deleted the arc in the logical model but when I do an "engineer to relational model" the ARC is not removed there.

    I'm afraid there is a problem that Engineer to Relational Model does not detect that an arc has been removed.
    Until this is fixed, you will need to remove the arc in the Relational Model as well.
    David

  • ThinkPad Yoga - Keyboard key stucks - how to remove it correctly

    Hi everybody, 
    this is maybe a simple and stupid question but I won't do anything wrong.
    One of my keyboard keys does not work correctly, I think there is something under the key which is blocking because when I press the key I feel a stronger resistance than on the other keys. Sometimes I need to press the key 3 or 4 times before the letter is written - realy annoying
    Obviously I should remove the key and clean it or remove whatever is under the key. Since my ThinkPad Yoga is quite new I don't want to damage it or lose my warrenty through "learning by doing"...
    So can anybody tell me how to remove a key from the ThinkPad Yoga keyboard correctly and reassemble it correctly as well? -> without any damage
    Reagards,
    Ben

    Thanks for the link, but don't you think there is a possibility to remove a single key and not the whole keyboard?
    I found this video for "ThinkPad keyboards" - however, like you mentioned the lift and lock keyboard is probably a special case.
    Does anyone know if the method from the video works for the TP Yoga also?

  • How can one turn off auto-correct on safari?

    How can one turn off auto-correct on safari?

    Right click on a word  in an editable area.
    Then choose  Spelling and Grammar.
    Click "Correct Spelling Automatically" to remove the tick mark if it is on to disable the feature.

  • How can I correct "hidden" text in a searchable PDF file?

    This seems like a simple question. However, the answers are invariably complex, do not yield the desired result, and often answer a different question entirely. I say all that just to warn people up front that the "problem" is easier than how many people and PDF application developers, including Adobe, typically understand it while the proposed "solutions" are invariably a total...well, botch is a reasonable word if a bit understated.
    Here is the actual problem:
    I have "searchable" PDF files created by scanning documents and running them through an OCR process. I create "searchable" PDF files in order to archive, index, and eventually enable searching for the documents scanned. A "searchable" PDF satisfies those criteria better than any other commonly used, "portable" archive format -- though I would be happy if someone could point out an obvious alternative I may have overlooked. I do not need perfect OCR results. If I need a document to edit or perhaps feed into a spreadsheet or database, I expect to be able to reprocess the page images in a given "searchable" PDF file to OCR and convert the contents to Word, RTF, Excel, or another file format as necessary with more care for the results than for the archived document itself. Therefore, the "searchable" PDF document is the scanned page images which compose it while the OCR generated "searchable" text is secondary, but still important. Therefore, each file must contain scanned page images of sufficient detail to be efficiently converted by OCR if possible and legible enough for whoever views the images to be able to work out what an OCR process may fail to understand. Once scanned, those pages are the "document" and therefore "immutable." However, OCR is imperfect. For a searchable document archive, it does not have to be, but some errors are significant in that they may prevent the document from being found by a search. Therefore, there must be a way to view and, if necessary, edit the "hidden" text in a "searchable" PDF without altering the visual display of a document or how it is printed. No strike-throughs. No visible "corrections." None of the stuff PDF editors want to insert into a PDF file when editing it. I do not want to edit the document without exporting it to a format appropriate for an editable document. I just want adequately "correct" hidden text in a "searchable" PDF file.
    I apologize for the length and redundancy in my description of the problem. However, past attempts to explain my problem and objectives as well as what I have seen in reply to similar queries across the Internet indicate that most people trying to answer this question come at it from the same point of view shared by most, if not all, PDF tool or application vendors. They seem to think that any desire to edit a PDF file is a desire to have a PDF word processor of some sort. Or, they assume that the OCR process employed may need tweaking of the means by which people apply it and then a process like "find suspects" is adequate to deal with any errors. But no, those are not what I am trying to accomplish and answers which address those topics do not answer this question.
    In short, which tool or application from any vendor will reveal the "searchable" hidden text in a PDF produced by any OCR or other process and then enable corrections to the hidden text without changing any document display parameters at all? Note, hidden text typically includes bounding box information denoting the portion of the image from which the text was recognized. That information must not be lost or changed when editing the "searchable" text.
    So, any tools or applications capable of doing this? If Adobe Acrobat XI Pro can (use of a trial copy demonstrated that the hidden text content can be reviewed, but editing did not work by any straight-forward means I could work out while trying out the application), fine. However, $500.00 list or even a $200.00 possible upgrade from a copy of Adobe Acrobat X Standard which came with my scanner is a lot of money for personal use when review and edit of the OCR generated hidden text in a "searchable" PDF file is the only function I require. Therefore, other suggested tools or applications which do what I need for less would be greatly appreciated.

    My "claim"? Actually I've made no "claim" such as you've mentioned.
    Simply stated your OP has foundational premises that presume as factual what is not.
    Here, we're in Adobe's hosted user forum for Acrobat.
    Any other application use is not material. 
    Acrobat XI provides 3 OCR methods.
    Searchable Image, Searchable Image (Exact) & ClearScan.
    Only the first two provide the "hidden" text output.
    (Glyphs have no stroke, no fill)
    From back to the Acrobat 3 product family the design functionality of Searchable Image and Searchable Image (Exact) has been to facilitate the use of Find / Search.
    The "hidden" text is can be touched up. Acrobat Pro provides the facility to view the hidden text.
    So you can see what the OCR output that correlates to the bit-map images of the characters that are present.  
    With Acrobat XI Pro use Tools - Protection -Remove Hidden Information
    In the Remove Hidden Information pane select "Hidden text" then "Show preview".
    The default for the preview is "Show Only Hidden Text".
    Back in the PDF --
    You'd select some of the hidden text and retype what you suspect is the correct string of characters.
    Save and return to the preview of the hidden text.
    If you got it right, good. Continue.
    If not, darn - try again.
    Plug 'n chug -- somewhere over the rainbow it'll be done eh.
    Full disclosure -- this is something I've done (enquiring minds don't you know).
    I've found it to be a rather Sisypean undertaking.
    So, "doable" but not practicable.
    This is to be expected because such touchups are not the concern / focus of the output from Searchable Image or Searchable Image (Exact) - (the names tell it all).
    To have touchup "editablity" of an OCR output using Acrobat make use of ClearScan.
    ClearScan replaces recognized character bit-maps with a character from an Acrobat internal font.
    The character strings can be selected to change to a generic, system available font.
    Something that is good to know when embarking on the "tweak the PDF" journey is that PDF (the file format / technology as defined by its ISO Standard, ISO 32000-1) does not tolerate "editing". PDF is decidely not a word processor file format and "editing" can quickly render a PDF unusable.
    Minor touchups can be made and your best "tool" for this is still Acrobat Pro. (Save As often and periodically "bank" the PDF via some file rename scheme.) 
    Be well...

  • How to remove clothes in photoshop cs5

    can anyone let me know how to remove clothes in photoshop cs5? Please help

    Or make a selection of the clothes and put on a model showing skin in correct area.
    Depending on the area that is to be created this may be the best option – provided lighting conditions, pose etc. fit at least somewhat.

  • How to remove magicjack plus osx  10.7.5

    Hello,
    I am new to Mac and I am not a Unix system programmer.
    I purchased a MagicJack Plus for my sister and I set it up using my new iMac for her. Now I would like to remove the setup software from my iMac as I do not like to leave extraneous software on my machine.  Also, MagicJack seems to be even more clueless than me, which I find VERY disturbing.
    I.  I viewed and attempted to execut instructions outlined in "How do I uninstall magicJack from my computer?" on MJ wesite as follows:
    Download CompleteUninstall.sh. After the download is complete, open a terminal window by navigating to /Applications/Utilities/Terminal.
    In the Terminal Window, navigate to your download directory (usually Downloads) by typing cd Downloads and pressing enter. Next, type chmod+x CompleteUninstall.sh and press enter. Now type ./CompleteUninstall.sh and press enter again.
    For reference the CompleteUninstall.sh script contains the following:
    #!/bin/sh
    # instalator files
    rm -rf ~/.magicJack
    rm -rf ~/MJInstlogs
    rm -rf ~/Desktop/Start\ magicJack.app
    # softphone files
    rm -rf ~/Library/Preferences/magicJack
    # WebKit cache
    rm -rf ~/Library/Caches/magicJack
    II.  This is results:
    Last login: Tue Apr 23 11:36:11 on ttys000
    Larrys-iMac:~ ldwalker$ cd Downloads
    Larrys-iMac:Downloads ldwalker$ chmod+x CompleteUninstall.sh
    -bash: chmod+x: command not found
    Larrys-iMac:Downloads ldwalker$
    The change ownership command failed, I presume because the path to the Unix Commands directory is not set? If so, how do I set it and then reset everything back to current defaults?
    Thanks in advance for any help you can provide!

    baltwo,
    Thanks VERY much.......this solved my problem. 
    I just cut and pasted the command into my terminal session.  I assumed the format was correct as the exact same command set format was used on several different web sites giving instructions on how to remove the magicjack software.
    Amazing how incorrect info gets propagated around the web!

  • How do I turn off auto-correct in MacMail?

    How do I turn off auto-correct in MacMail?

    Open a new message, the go to Mail/Edit/Spelling and Grammar and turn off autocorrect.

  • How to remove an XML file from Data Template in Data Definition Screen

    Hi,
    Issue: I have uploaded the file in Data definition in Data Template.
    How to remove it.
    Also what does each file type mean?
    XML Schema
    Data Template
    Preview file
    Bursting control File
    I have an XML file and XSL file. I need to have an output in XML.
    So I installed my XML file in data template in data definition.
    And XSL file in Templates.
    Am I correct?
    11.0.10.2
    Regards,
    Avijit

    Issue: I have uploaded the file in Data definition in Data Template.
    How to remove it.You cannot remove it but you can end-date it.
    Also what does each file type mean?
    XML Schema
    Data Template
    Preview file
    Bursting control FileThis is explained in "Oracle XML Publisher Administration and Developer's Guide Release 12" manual -- http://docs.oracle.com/cd/B34956_01/current/acrobat/120xdoig.pdf
    I have an XML file and XSL file. I need to have an output in XML.
    So I installed my XML file in data template in data definition.
    And XSL file in Templates.
    Am I correct?Correct -- See Chapter 2 "Creating the Template" and Chapter 5 "Data Templates and Chapter" in the same doc referenced above for details.
    Thanks,
    Hussein

  • SCCM 2012 SP1 - Evil Folders in Reporting Services - What Are They and How to Remove Them

    Hello All,
    There are a lot of sub-folders in the http://CentralSiteSCCM/ReportServer. They are like:
    <dir> Config_Mgr_CEN
    <dir> Config_Mgr_CEN.OLD.0
    <dir> Config_Mgr_CEN.OLD.1
    <dir> Config_Mgr_CEN.OLD.10
    <dir> Config_Mgr_CEN.OLD.100
    <dir> Config_Mgr_CEN.OLD.1000
    Only <dir> Config_Mgr_CEN is properly populated with the correct set of the default folders.
    Would you be so kind to advise on:
    What are they?
    How to remove them?
    What to do in order for them not to appear any more?
    Thank you very much in advance!

    Hi Mike,
    I ran into an issue when I did the SP1 upgrade where a majority of our reports were duplicated. I created a script to delete these duplicate reports and I've adjusted it to work for your situation. You can find the original thread here, if you're interested:
    http://social.technet.microsoft.com/Forums/en-US/configmanagergeneral/thread/dc9aa3b4-cea9-4a07-87ca-2795a2dbc04e
    You'll need to know your SCCM site code and the server name to run this script.
    # SCCM2012SP1-RemoveDuplicateSSRSFolders.ps1
    # This script will connect to SSRS on a specified server and delete all folders that end with .OLD.*
    # Used for SSRS cleanup after SCCM 2012 SP1 installation
    # Script must be run from an account that has access to modify the SSRS instance
    # 3/22/2013 - Mike Laughlin
    # Resources used in writing this script:
    # Starting point: http://stackoverflow.com/questions/9178685/change-datasource-of-ssrs-report-with-powershell
    # API Documentation: http://msdn.microsoft.com/en-us/library/ms165967%28v=sql.90%29.aspx
    # Previous script: http://social.technet.microsoft.com/Forums/en-US/configmanagergeneral/thread/dc9aa3b4-cea9-4a07-87ca-2795a2dbc04e
    # Define variables
    $SiteCode = ""
    $serverName = ""
    # Set the value of $noConfirm to $True only if you don't want to manually confirm folder deletion. Use with caution.
    $noConfirm = $False
    # Safeguard
    If ( $SiteCode -eq "" -or $serverName -eq "" ) { Write-Host "Enter the required information for the SiteCode and serverName variables before running this script." -ForegroundColor Red -BackgroundColor Black ; Exit }
    # Connect to SSRS
    $ssrs = New-WebServiceProxy -uri http://$serverName/ReportServer/ReportService2005.asmx?WSDL -UseDefaultCredential
    # Get a listing of all folders in SSRS
    $reportFolders = $ssrs.ListChildren("/", $True)
    # Find all folders containing .OLD.*
    $foldersToDelete = $reportFolders | Where { $_.Name -like "ConfigMgr_" + $SiteCode + ".OLD.*"}
    # Quit if no folders are found
    If ( $foldersToDelete.Count -eq 0 ) { Write-Host "No folders with .OLD.* found. Quitting." ; Exit }
    # Show a listing of the folders that will be deleted
    Write-Host "The following folders will be deleted from SSRS on" $serverName":`n"
    $foldersToDelete.Name
    Write-Host "`nTotal number of folders to delete:" $foldersToDelete.Count "`n"
    # Get confirmation before deleting if $noConfirm has not been changed
    If ( $noConfirm -eq $False )
    $userConfirmation = Read-Host "Delete these folders from" $serverName"? Enter Y or N"
    If ( $userConfirmation.ToUpper() -ne "Y" ) { Write-Host "Quitting, folders have not been deleted." ; Exit }
    # Delete the folders
    $deletedFolderCount = 0
    Write-Host "Beginning to delete folders now. Please wait."
    ForEach ( $folder in $foldersToDelete ) { $ssrs.DeleteItem($folder.Path) ; $deletedFolderCount++ }
    Write-Host "Folders have been deleted. Total number of deleted folders:" $deletedFolderCount
    Standard disclaimer: While this script worked just fine for me in my environment, I make no guarantees that it will work anywhere else. I've attempted to make this script as user friendly and generic as possible, but it may require slight tweaking to work properly.

  • Does anyone know how to remove pop up, malware and virus form OS X 10.9.5, there is a lot of pop up on my mac book air.

    Does any one know how to remove pop up and malware. There is a lot of pop up on my mac book air OSX 10.10

    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide and AdwareMedic.
    Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
    The following comes from user stevejobsfan0123. I have made minor changes to adapt to this presentation.
    Fix Some Browser Pop-ups That Take Over Safari.
    Common pop-ups include a message saying the government has seized your computer and you must pay to have it released (often called "Moneypak"), or a phony message saying that your computer has been infected, and you need to call a tech support number (sometimes claiming to be Apple) to get it resolved. First, understand that these pop-ups are not caused by a virus and your computer has not been affected. This "hijack" is limited to your web browser. Also understand that these messages are scams, so do not pay any money, call the listed number, or provide any personal information. This article will outline the solution to dismiss the pop-up.
    Quit Safari
    Usually, these pop-ups will not go away by either clicking "OK" or "Cancel." Furthermore, several menus in the menu bar may become disabled and show in gray, including the option to quit Safari. You will likely have to force quit Safari. To do this, press Command + option + esc, select Safari, and press Force Quit.
    Relaunch Safari
    If you relaunch Safari, the page will reopen. To prevent this from happening, hold down the 'Shift' key while opening Safari. This will prevent windows from the last time Safari was running from reopening.
    This will not work in all cases. The shift key must be held at the right time, and in some cases, even if done correctly, the window reappears. In these circumstances, after force quitting Safari, turn off Wi-Fi or disconnect Ethernet, depending on how you connect to the Internet. Then relaunch Safari normally. It will try to reload the malicious webpage, but without a connection, it won't be able to. Navigate away from that page by entering a different URL, i.e. www.apple.com, and trying to load it. Now you can reconnect to the Internet, and the page you entered will appear rather than the malicious one.
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
      Mac OS X Snow Leopard and malware detection
      OS X Lion- Protect your Mac from malware
      OS X Mountain Lion- Protect your Mac from malware
      OS X Mavericks- Protect your Mac from malware
      About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect everything targeting the Mac.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

Maybe you are looking for