Find symbol "#" and delete.

HI All,
I am getting the sting itext as "abcd#efgh#ijkl#mn" in my field "SGTXT" i want to remove the # symbol in my report for the particular field i am just wondering that do i have any instruction in so that i could find the symbol "#" and delete it in my
string. so that i could use.
OR is there any other way  i could do the same.
Thanks,

I'd recommend to use the following command for [replacing|http://help.sap.com/abapdocu_70/en/ABAPREPLACE.htm] control characters (that's most likely what the '#' in your string are):
replace all occurrences of regex '[[:cntrl:]]+' in SGTXT with ` `.
This will replace all consecutive control characters with a single space. If for some reason you should really have a hash mark character that you want to replace, you could change the search pattern to '\[\[:cntrl:\]#\]+' (doesn't hurt to weed any control characters should they be present). If you really want to delete them use a simple '' as replacement text.
I'd recommend not to use the function module, because the input parameter is very limited (character field of length 40), the function module is not released and it removes all spaces in the string (probably not wanted); furthermore, why use a function if you can get it done with a single statement...
Cheers, harald
p.s.: You might want to check the field contents in the debugger. There you could identify if the hash mark is truly the hash mark character '#' (i.e. hex code 23, see for example [here|http://www.asciitable.com/]) or a control character (which SAP shows in output as '#', though it's actually a different character).

Similar Messages

  • I have a number of duplicate files in various folders on my Air - is there  way to find them and delete them?

    Mac Air 1.7 GHz i5  4GB Mavericks 10.9.5
    I have a number of duplicate files in various folders on my hard drive.  Is there an easy way to find them and delete the dups?
    Thanks

    EasyFind – Spotlight Replacement

  • Cannot find symbols and characters table in Excel.

    Hi, could you please help me with finding symbols ( arrow up and down etc.) and characters in Excel. I tried all menues but couldn't find them.
    Thank you in advance.

    Is that what you are talking about?
    To display the outline symbols, on the Excel menu, click Preferences, and then click View. Select the Outline symbols check box.

  • Cannot find symbol and streams

    I am making some progress with implimenting the icaste jar file to control the serial port. My code is below. I have a problem with the statement osOut.write(bData,0,0); at the bottom of the code. cannot find symbol
    I am trying to write one byte to the serial port, I don't understand the use of the outputStream being used here from java.io , If I knew how the access worked on a lower level perhaps I could figure it out.
    In an AVR microcontroller for example, you set up the hardware on the chip to output a byte you place in a buffer, when there is data to read you have an interrupt set to jump to an isr routine that receives a byte and puts it in your own memory space or array. The hardware has a buffer it uses to hold some number of bytes and error flags to find out if you have a buffer overrun.
    Not sure if that concept is what is going on here or not.
    import com.icaste.JCommSerial.*;
    import java.io.*;
    public class newtest {
         * @param args
        public static void main(String[] args) {
            byte[] baData = new byte[1];
            baData[0]= (byte)255;
            String Errorstring = "None";
            System.out.println("Testing Serial port");
            SerialPort myPort = new SerialPort();
            try {
                myPort.openPort("COM1:", 2000, 2000);
            } catch(SerialPortNotFoundException e) {
                Errorstring="Serial port not Found";
            } catch(SerialPortInUseException e) {
                Errorstring="Serial port in use";
            } catch(SerialPortException e) {
                Errorstring="Serial port unable to complete operation";
            } catch(Throwable e) {
                Errorstring="unknown error";
            try {
                myPort.setBaudRate(9600);
            } catch(SerialPortException e) {
                Errorstring="Unable to set baud rate";
            try {
                myPort.setDataBits((byte)8);
            } catch(SerialPortException e) {
                Errorstring="Unable to set data bits";
            try {
                myPort.setStopBits(SerialPort.ONESTOPBIT);
            } catch(SerialPortException e) {
                Errorstring="Unable to set stop bit";
            try {
                myPort.setParityMode(SerialPort.NOPARITY);
            } catch(SerialPortException e) {
                Errorstring="Unable to set parity";
            try {
                OutputStream osOut = myPort.getOutputStream();
            } catch(IOException e) {
            try {
                osOut.write(baData, 0, 0);
            } catch(IOException e) {
                Errorstring="write byte failed";
            System.out.println("Error = "+Errorstring);
       

    Ok, I can finally put this question to bed. My main error was not knowing what the line of code actually was. After 4 hours of reading http://www.yu.edu/faculty/arosnfld/java/javanotes-3.1/c5/s3.html and a nice email from the tech at icaste, I finally understand what is going on and what it all means.
    If you would like to see what I am up too you can check out the DMX light prototype moveie I made a few weeka ago. It is using a program called freescale and a DMX controller connected to a USB port. The serial port can be configured to operate a USB port from windows point of view and that is my next quest to study how a USB port connection works on the hardware side.
    Thanks for the help and links, I wish there was more time in the day, and night to cram all this stuff in my head.
    Quicktime Movie (kind of big) http://www.acousticlights.com/ledmovie.m1v
    import com.icaste.JCommSerial.*;
    import java.io.*;
    public class newtest {
         * @param args
        public static void main(String[] args) {
            SerialPort myPort = new SerialPort();
            String Errorstring = "None";
            System.out.println("Testing Serial port ");
            try {
                myPort.openPort("COM1:", 2000, 2000);
            } catch(SerialPortNotFoundException e) {
                Errorstring="Serial port not Found";
            } catch(SerialPortInUseException e) {
                Errorstring="Serial port in use";
            } catch(SerialPortException e) {
                Errorstring="Serial port unable to complete operation";
            } catch(Throwable e) {
                Errorstring="unknown error";
            try {
                myPort.setBaudRate(9600);
            } catch(SerialPortException e) {
                Errorstring="Unable to set baud rate";
            try {
                myPort.setDataBits((byte)8);
            } catch(SerialPortException e) {
                Errorstring="Unable to set data bits";
            try {
                myPort.setStopBits(SerialPort.ONESTOPBIT);
            } catch(SerialPortException e) {
                Errorstring="Unable to set stop bit";
            try {
                myPort.setParityMode(SerialPort.NOPARITY);
            } catch(SerialPortException e) {
                Errorstring="Unable to set parity";
            try {
    //Get an OutputStream from JCommSerial and reference it by the name osOut.
    //assuming you already created a JCommSerial object called spPort
    // and opened it!
                OutputStream osOut = myPort.getOutputStream();
    //Write your byte to the port
    // the write() function takes an int that is then converted
    // to a byte for transmission.
                int iData = 255;
    // Send 254 bytes of data to the serial port
                while (iData >0) {
                    osOut.write(iData);
                    iData--;             
            } catch(Exception e){
                System.out.println(e.toString());
            System.out.println("Error = "+Errorstring);
    }

  • Looks good in design and preview mode, online there is box in lower right corner! How to find box and delete it?

    www.nssgranite.com
    Online, scrolling down and to the right, there is a white box that is linked to a different web site of mine. I don't want that box to be there, but I can't find it in design mode nor preview mode when working with the Muse program. Where is it?? I want to delete it!!

    Thank you. However, I went in, expanded every single layer and did not see anything that was missing it's "eye". I clicked and unclicked everything that was a rectangle and found one rectangle that didn't seem to have representation on the screen. I deleted this rectangle from the layers box, uploaded the site to the internet hoping for the best, and unfortunately this did not solve the problem.
    I wonder, should I just create a new page from scratch to replace this page?
    I don't know if you've seen my other question, but this isn't the only problem I am having with my Muse site. The layout is distorted on all but a select size of screen, and most likely I am going to have to revamp things quite a bit to make them work on the average computer display.
    Thank you for any further suggestions because I am totally open to other thoughts on this!!

  • How to find, select and delete duplicate images fro LR catalog?

    I'm on a MacPro, Leopard, LR v1.4.1
    How do you FIND duplicate files and remove them from the catalog?
    I had 12 images outside of a subfolder on a job. When I did a "synchronize folder" action it added those same 12 files to the catalog. I then physically moved the files into the correct folder - replacing the ones of the same name inside. Now I have 2 images of the same name in the catalog. I know I an choose them one at a time & Remove, but I can see this happening on a larger scale where I would want to Find All Dupes, then remove them.
    Same thing would happen if you imported from a folder or card that hadn't be formatted & forgot to check the "don't import suspected dupes" box.
    thanks!

    "I then physically moved the files into the correct folder"
    Precisely how? You didn't use Explorer/Finder, did you? Once images are in Lightroom, use Lightroom for moving files between folders. The best way to remove duplicates is to avoid having them in the first place.
    To get rid of existing ones, one way is to select those folders and save the XMP (Metadata > Save....) and then remove those folders from LR. Then import them again. Alternatively sort them by capture time and go through eyeballing them - use the reject flag to identify duplicates and then the delete rejects command.
    John

  • I have 22 episodes of "Tigger and company" in que in my iTunes account by accident that I do not want to download.  I go into my "purchases" to delete and the are not there.  Any ideas on where to find them and delete them so they will stop being qued?

    Please advise on how to remove "purchases" in iTunes that were done so in error - that haven't been downloaded to your account - and you want to stop them from being downloaded and remove them from the "que" of what is available for downloading.  I have checked the "purchased" tab on my account and history to see if can delete from there and aren't listed.  

    First of all, you should always save you photos on computer like any other digital camera.
    Backup on iCloud or iTunes only backup your Camera Roll. The other photos should be already on the computer.
    Note: Photos are not saved in iTunes, it's only a conduit between your iPhone and your photo managing software on computer.
    What computer do you have?

  • My I POD yellow band is huge and I don't know what the content is - How do I find out and delete it please ?

    My I POD is at least 6 years old - functions well - 60 GB version
    I only use it for music and PodCASTS which uses little room say 5 GB
    However, I have a yellow " OTHER " band which is impossible to me as I have not recorded anything else,
    However it is taking up some 40GB of space so the I tunes web site tells me!!
    What is this please and importantly HOW do i get rid of it please?
    Thanks
    Richard

    Other could also be files that are being stored on the iPod if you are using it an external disk.  You would be able to browse out to these files (if they exist) on your Windows XP machine by choosing Start -> My Computer and selecting your iPod in the list of drivers.
    Other would also be corrupted files or firmware.  To resolve this problem, you'll need to restore the iPod to factory settings in iTunes.
    Restoring iPod to factory settings
    B-rock

  • How do I find out and delete VIs that are NOT CALLED? I want to clean up my project.

    Over the last few years, many VI's have accumulated that are no longer called from anywhere within my project. The project is a main GUI plus two other VIs launched by VI server plus many hundreds of VIs. I am not using source control. Any easy way to do this?

    Andrew_Scott_SPCi.ca wrote:
    Over the last few years, many VI's have accumulated that are no longer called from anywhere within my project. The project is a main GUI plus two other VIs launched by VI server plus many hundreds of VIs. I am not using source control. Any easy way to do this?
    First BACK UP!
    Yes create a Tree VI (a VI that contains the top-level VIs unsed in the app this includes the dynamcis).
    Then crate source Distribution (in the project it is where you create buold-specs) and configure the Source Distribtion to presevere the hiarchy.
    When you buld the Source Distribution it will pick-up every thing used by the tree and relink everythin in the new place with all of the dead code missing.
    You may have to repeat the process after testing since there is always another dynamic VI somewher that gets missed.
    After you are satified THEN delte to old stuff, DONE!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Field symbols and delete internal table.

    Hi,
    I wish to implement <fs> in this case:
    LOOP AT intable ASSIGNING <fs> WHERE condition
    IF condition1.
        DELETE intable
    ANDLOOP
    I know that if the condition1 is verified, the <fs> will be unassigned but in this case I lose the loop.
    Any Idea? ... Or is it impossible to handle?
    Thanks in advance.
    Regards,
         Giovanni

    If you know the standard table name in the start routine , then you can create a dynamic structure after adding a field flag, then you can use that as 
      call function 'LVC_FIELDCATALOG_MERGE'
        exporting
          i_structure_name = p_table
        changing
          ct_fieldcat      = i_fcat
        exceptions
          others           = 1.
      if sy-subrc = 0.
        loop at i_fcat assigning <fcat>.
          <fcat>-tabname = p_table.
          <fcat>-fieldname = 'FLAG'
          ....  " after giving other attributes for the flag field
         append <fcat> to i_fcat.  
        endloop.
        call function 'LVC_FIELDCAT_COMPLETE'
          changing
            ct_fieldcat = i_fcat
          exceptions
            others      = 1.
      endif.
      call method cl_alv_table_create=>create_dynamic_table
        exporting
          it_fieldcatalog = i_fcat
        importing
          ep_table        = i_content.
      if sy-subrc = 0.
        assign i_content->* to <fs>.
      endif.

  • Finding and deleting duplicate files

    I apologize in advance if I didn't search effectively enough, but having found no discussion of my problem, here it is:
    Is there a way to find, select and delete duplicate files on my hard drive? I know they exist, and would like to see them listed so I can delete This would be text, photo and movie files. Thanks in advance.
    Peace,
    SredniVashtar
    P.S. I'm using ilife 08 which has produced a lot of occult duplicate clip files. If anyone knows why mac eliminated the "create a still frame" option, I'd love to hear it...

    Go to http://macupdate.com/ and search "duplicates". There are some different utilities for photos, movies and tunes. Although Spring Cleaning will do all, I would stay away from that one or be VERY careful what you delete. Make sure they are only user files in your Home, not system files or Library files.
    -mj
    [email protected]

  • Find and delete .DS_Store files

    I have a 2008 server where some mac clients connect. They create .DS_Store, ._.TemporaryItems and other files that starts with "._".
    I want to find them and delete them every night.
    What kind of script can I run.
    Thank you so much for your help.

    I know this is an old thread, I just came across this problem myself when I was moving my files back to PC from Mac.  Here is the approach I took:
    # Check to see what files are in the directory, you may want to save this to a variable or CS
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Select
    Name, Directory,
    Length
    # See how many files exist that meet the criteria
    ls
    -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Measure-Object
    # Use the -Force switch to get past the permissions restrictions on the hidden files
    ls
    -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Remove-Item
    -Force
    # Rinse and repeat for the .DS Store files
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like ".DS*"}
    | Measure-Object
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like ".DS*"}
    | Remove-Item
    -Force

  • Is there a way to listen tracks from my harddrive and delete them directly?

    Hello Everybody,
    I have a simple thing i like to do, but i can't figure out how to do it..
    I have a lot of music on my external harddrive, and i want to listen to a track and if i don't like it i want to delete it.
    I don't like using itunes, because a lot of tracks are not part of an album and then i can never find them again. I use traktor to browse to my folders, but from that program i can't delete the tracks. Then i have to search for the track in finder..and delete it from there.
    Is there a way to listen to my tracks from my harddrive and delete them on the spot?
    kind regards,
    Marco

    Rocam wrote:
    i cannot delete a track from itunes and directly from my harddrive at the same time...
    Well you can place it in the Trash, then delete the Trash all at once.
    Right click on the song in the Library and select Delete.
    This next window can be prevented to show again by checking the Do Not Ask Me Again box
    Bam, click the Move to Trash and it's in the Trash,
    when your done for the day, before you remove any media, you click Finder > Empty Trash and they are all gone at one time.
    This method is better in case you make a mistake, you can grab it out of the Trash and put it back.
    I think the Delete key on the keyboard is even faster than the right click selection, you'll have to find out.
    You also can use something like QuickKeys and scheduale a sequence of mouse click events so a simple keystroke like Control D can delete the song to the Trash.

  • Can not find symbol

    i am wrting a bean which has methods and i am passing that bean
    object to the method of another class but when i compile the second class i get the error can not find symbol and the method name of bean
    which i want to acces in second class.

    i a using Role.java bean in RoleManager.java the files are as follows
    and when compiling the RoleManager.java i get the above error by showing method getOrderby() can not find symbol
    /******** Role.java (bean class) ************************/
    package com.tattva.pms.employee;
    import java.beans.*;
    public class Role implements java.io.Serializable
    /** Holds value of property code. */
    private String code;
    /** Holds value of property type. */
    private String type;
    /** Holds value of property description. */
    private String description;
         /** Holds value of property orderby */
         private String orderby;
    /** Creates new Role */
    public Role() {
    /** Getter for property code.
    * @return Value of property code.
    public String getCode() {
    return code;
    /** Setter for property code.
    * @param code New value of property code.
    public void setCode(String code) {
    this.code = code;
    /** Getter for property type.
    * @return Value of property type.
    public String getType() {
    return type;
    /** Setter for property type.
    * @param type New value of property type.
    public void setType(String type) {
    this.type = type;
    /** Getter for property description.
    * @return Value of property description.
    public String getDescription() {
    return description;
    /** Setter for property description.
    * @param description New value of property description.
    public void setDescription(String description) {
    this.description = description;
         /** Getter for property code.
    * @return Value of property code.
    public String getOrderby() {
    return orderby;
    /** Setter for property code.
    * @param code New value of property code.
    public void setOrderby(String orderby) {
    this.orderby = orderby;
    /****************************RoleManager.java*************************
    package com.tattva.pms.employee;
    import com.tattva.pms.employee.*;
    //package com.tattva.pms.dept;
    import com.tattva.pms.database.*;
    //import com.tattva.pms.dept.*;
    import java.sql.*;
    import java.util.*;
         * Insert the type's description here.
         * Creation date: (5/22/02     1:53 PM)
         * @author: Sachin Bhansali
    //public class DeptManager
    public class RoleManager
         * The Declaration of the fields
         * to be used.
         * Decleration of Global variables
    //private ConnectionPool ovPool = null;
    //     private QueryManager ovQuery     = null;
         //private ResultSet ovResultSet     = null;
         private int rowCount          = 0;
    /** Creates new DeptManager */
    // public DeptManager()
         public RoleManager()
              super();
         * Creates new JobDtlManager
         * Commented constructor
    /* public DeptManager(ConnectionPool conPool)throws SQLException{
    ovPool = conPool;
    ovQuery = new QueryManager(ovPool);
    conPool = null;
         * throws exception PMSException and the general Exception
         * @param DeptBean contaning the details.
         // public int addDept(DeptBean dept)throws PMSException, Exception
         public int addRole(Role role)throws PMSException,Exception
              ConnectionPool ovPool = null;
              Connection ovCon = null;
              Statement ovStmt = null;
    String sqlStr = null;
    // The SQL query String
         /*     sqlStr = "Insert into DEPARTMENT_MST Name (V_CODE,V_NAME,V_LOCATION,V_FUNCTIONALITY, V_CREATED_BY) values ('"
                             + dept.getDeptCode() +"','" + dept.getDeptName() + "','" + dept.getDeptLoc() + "','" + dept.getDeptFun() +
                             "','" dept.getCreatedBy()"')";
         sqlStr = "Insert into ROLE_MST Name (V_CODE,V_TYPE,V_DESCRIPTION,N_ORDERBY) values "+
                        "('"+role.getCode()+"','"+role.getType()+"','"+role.getDescription()+"','"+role.getOrderby()+"')";
    //start of try block
                   try{
                        ovPool = new ConnectionPool();
                   // ovCon = ovPool.createConnection("DeptManager: addDept(DeptBean dept)");
                        ovCon = ovPool.createConnection();
                   ovStmt = ovCon.createStatement();
                        rowCount = ovStmt.executeUpdate(sqlStr);
                   return 0;
                   }catch(PMSException pmsEx){
                        throw pmsEx;
                   }catch(SQLException sqlEx){
    return sqlEx.getErrorCode();
                   }catch(Exception e){
                        //throw new PMSException("addJob() SQLException Wrapped! " + e.getMessage());
                        throw new PMSException("addRole() SQLException Wrapped! " + e.getMessage());
                   }finally{     
                        role=null;
                                  //dept = null;
                                  if(ovStmt != null)
    ovStmt.close();
                                  ovStmt =null;
                                  ovPool.close(ovCon);
    ovCon = null;
                                       ovPool =null;
    //end of try block
    }

  • My start up disk is almost full, but I have deleted everything I can find - I think that when I upgraded my software it has saved the old one - anyone know how I can find and delete it?

    Hi All,
    Late last year I upgraded from tiger to leopard (very out of date I know) but ever since I have been getting warnings that my startup disk is full.  I have deleted loads including pictures and itunes but still get the same mesage.  I think when I upgraded the old version was stored somewhere and this might be causing the problem.  Does anyone know where I would be able to find and delete - or alternatively have any other suggestions for what the problem may be?
    Many thanks

    WOW
    80GB is a very small drive. 
    Sorry Noondaywitch, but omni disk sweeper isn't going to install in the space remaining, without more problems. 
    My Suggestions
    1.  Get a large (400GB+) USB hard drive
    2.  Copy all the contents of your home directory to the USB drive.
    3.  Delete all your files from your home directory on your computer after making sure everything transferred ok.
    4.  Perform a clean (destructive) install of Mac OSX and then the applications you need.
    5.  Check how much space you have left.
    6.  If there is less than 50% of the HDD space left (35GB or so), then consider replacing the HDD with a new larger one.  If it's a white intel mac book, then this is very easy, and instructions how to do it are included in your 'everything else' wallet with your OSX DVDs etc.
    7.  If you can't replace the HDD, then it's time to consider a new machine i'm afraid.
    Hope this helps
    Justin

Maybe you are looking for