Splitting string and eleminating middle of the string

Hi,
I have string '619 E SHIP CREEK AVE # 301', where this string I have to remove the 'AVE' and keepp the remaing in the value, any help would be greatly appreciated.
Thanks,
Gladson

This one you can do with my "complex" solution :-)
select x, substr(x, 1, instr(x,'AVE',-1)-1)||substr(x,instr(x,'AVE',-1)+4, 9999) new from x;
X                             NEW
619 E SHIP CREEK AVE # 301    619 E SHIP CREEK # 301
619 E AVEBURY AVE # 301       619 E AVEBURY # 301

Similar Messages

  • HT1338 hello, i have mac os x version 10.6.3 and i want to update to os x lion and could use I cloud, so could you help me to do it because I have already done like it says here and inthe middle cut the downloading so couldn't, thanks, mariano

    Hello,
    I have mac os x, version 10.6.3 in my macbookpro  and i want to update to os x lion and could use I cloud, so could you help me to do it because I have already done like it says here and inthe middle cut the downloading so couldn't, thanks, mariano

    If you have 10.6.3 you need to update to 10.6.8 first. So, http://support.apple.com/kb/DL1399

  • My wife and I split up and I was given the iPad but she is still know what I am doing on it. Supposedly when I got the iPad there was a program that we set up so we could know what is happening on the iPad how do we stop that? She can still see my text

    My wife and I split up and I got the iPad. But she still knows what I am doing on it. Even though I changed my apple i.d password and everything. She knows who I am talking to what I am doing on fb, my iMessage, emails, how do I get my privacy back without losing all my apps, book and movies I paid for?

    Sorry, but you are describing many different problems all in one go.  Have you changed your FaceBook account and the passwords for all your email accounts ?
    You say you have changed all the passwords for all the accounts you use, including your Apple/iTunes account if you have one.  If this hasn't done the trick I suggest you restore your iPad to factory conditions, set it up again from scratch, and download the things you've paid for again.  You will not need to pay for things bought through your iTunes account again.

  • Elements 9 editor screen splits apart and desktop shows through the gap- Help

    I run elements 9. on a mac. Never really had a problem before. Today I decided to open a photo from iphoto to edit in photoshop. Neve been a problem
    before but now the various panels of the editor screen have split apart and the desktop shows through. The same thing happens when opening a photo from inside the Organiser. Hope someone can help to get it all back together.  At the time I was trying to design some Christmas cards.

    Thanks so much- I didn't realise it was an option-must have clicked it by mistake. I can see now how it can be used but the project box at the bottom is off the screen.

  • Capture the Invoice Split Reason and update it in the invoice header text

    Hi All,
    We have a requirement where we need to capture the invoice split reason and update the reason in the one of the invoice header text.
    Problem is the routine where the split criteria is being determined is called a number of times, so how will we determine at what time of time do we need to capture the split reason. I mean at what iteration of the routine will we know that the split value is the right value.
    Is there any way to determine the number of iterations of a routine written for split?
    Require your valuable inputs for this issue....
    TIA
    Regards,
    Sharadendu

    Hi,
    Is your invoice split reason maintained in the header or item level?
    Try coding your logic in user exit MV45AFZZ and update header text using text id and save it in header text using
    FM [SAVE_TEXT|http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm].
    Before this logic use FM [READ_TEXT|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm] to determine if the header text is already updated. If yes,exit else save your HEADER_TEXT using SAVE_TEXT.
    This code can be written under FORM_USEREXIT_SAVE_DOCUMENT_PREPARE.
    Regards,
    Amit
    Edited by: Amit Iyer on Sep 1, 2009 8:46 PM

  • Pls. explain what is “Split number” and the “Capacity ID” 10000426

    When I switching the network activity to TECO, the system throws an error “There are CATS records for the object to be deleted”. However we have transferred all the CATS records, but in CATSDB table found “Split number” as 1 and there is “Capacity ID” 10000426.
    Can anyone explain what is “Split number” and how to check the created “Capacity ID” 10000426
    Thanks in advance.
    Regards,
    Harisha

    Hi
    A "split" is a resource assigned to your network activity
    You are assigning 1 or more individuals to perform that activity
    In CJ20N view the splits using the Personnel Tab of the Network Activity
    Each person assigned to undertake that Activity is a split
    So the first person assigned will be split 1 and the second split 2 and so on
    If I remember correctly the Capacity ID is the internal no of the Person you have assigned to that Split (but I may be mistaken and it moght be the actual HR Mini Master No)
    With regards to your particular issue OSS note 894300 may help
    Hope this helps
    Steve

  • Pls. explain me  u0093Split numberu0094 and how to check the created u0093Capacity IDu0094

    When I switching the network activity to TECO, the system throws an error “There are CATS records for the object to be deleted”. However we have transferred all the CATS records, but in CATSDB table found “Split number” as 1 and there is “Capacity ID” 10000426.
    Can anyone explain what is “Split number” and how to check the created “Capacity ID” 10000426
    Thanks in advance.
    Regards,
    Harisha

    Hai Lokesh,
    Here is help from my side.
    <b>Schedule the job so as to run the report for every 1 hour or what ever you want.</b>
    Before that:
    <b>Juat add the below logic:</b>
    Get the Text data into a ITAB1.
    LOOP AT THAT ITAB.
      SELECT SINGLE PRIMARY KEY FIELDS
          FROM DATABASE_TABLE
        WHERE f primary keys of text data EQ DATABASE_TABLE-PRMARY KEY FIELDS.
    IF SY-SUBRC EQ 0.
       SELECT SINGLE ORDER_NO
          FROM ORDER_TABLE
      WHERE ORDER_NO EQ ORDER_NO.
    IF SY-SUBRC NE  0."If Order already not created
       "* write the code to create Order
      "* Store this record into other ITAB2.
    ENDIF. 
    ENDIF.
    Finally,
    Get a new ITAB3 where it contans data in ITAB1 BUT NOT IN ITAB2.
    Delete itab1 from presen.Server
    Upload itab3 into presn.Server
    Hope this helps you.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama chary.Pammi

  • Splitting String and SubString in C#?

    Hi, I have this string with names and their branches like this:
    Label/Sublabel/SubLabel2/SubLabel3.
     Where the string  before "/" is a superlabel of its corresponding sublabel. 
    --Label
    --------Sublabel (sub label of Label)
    -------------- SubLabel2 ( sub label of Sublabel)
    ---------------------SubLabel3 (sub label of Sublabel2)
    ....and so on.
    I have two arrays Label and SubLabel namely. I want to put split values into these arrays as the following manner.
    Label = All the super labels must enter this array.
    Sublabel = all sublabels must enter this array.
    Label nests Sublabel , Sublabel nests Sublabel2, Sublabel2 nests Sublabel3 and Sublabel3 probably will nest Sublabel4 and so on.  I need a way to find out which label is a Superlabel of its corresponding sublabel. A superLabel is a key to find out its
    Sublabel.
    so, far I have this code only to split the string.
    string str = "Label/SubLabel/SubLabel2/SubLabel3";
    string[] names = str.Split('/');
    foreach (string name in names)
    Console.WriteLine(name);
    How do I put the split values into two separate arrays for Label and SubLabel ?

    In your code you wanna put folder names into different arrays right?
    string str = "Label/SubLabel/SubLabel2/SubLabel3";
    string[] names = str.Split('/');
    foreach (string name in names)
    Console.WriteLine(name);
    In this example there is 1 Label and 3 SubLabels, am I right?
    string str = "Label/SubLabel/SubLabel2/SubLabel3";// List for Label List<string> labelList = new List<string>():// List for SubLabelList<string> subLabelList = new List<string>():
    string[] names = str.Split('/');
    foreach (string name in names)
    Console.WriteLine(name); if(name.ToLower().Contains("sublabel") subLabelList.Add(name); else labelList.Add(name);
    In the end you fill two List array with your label names. I think you are asking for that I do not misunderstand your question.

  • Split string into its number and alphabetic​al components

    I have a string constant "There are 100 pens and 200 pencils in the box".i want to split it into two parts one consisting of array of numbers i.e. 100 and 200,while the second part should display "There are pens and pencils in the box".
    How should i proceed?

    That looks like homework.
    What have you tried so far and where did you get stuck?
    LabVIEW Champion . Do more with less code and in less time .

  • How to split intiger and string

    String str="abc1,ss10";
    String strArr[] = str.split(",");
    here i want to split string and intigers separatelly, for example 'abc1'
    i want to split this...i want to display only charecters.....
    plz help me

    You would probably need some kind of regular expression to do that. But it really isn't a JavaMail question, is it? You would get a much better answer if you posted the question in the Java Programming forum.

  • Split string into two based on end of word and max length

    I have the following procedure, which is passed a comma separated string as it input, and it has to split it into two, and the split has to occur at the end of a word, and the first split part can't be more than 15 in length.
    Is there an more efficient way of achieving this? I have a loop in my main code that calls this procedure and in effect a nested loop has been created here.
    e.g. Hello, everyone, welcome, to, split, string' would be split into 'Hello' and 'everyone, welcome, to, split, string'
    create or replace procedure split_str
                   (pi_str  in  varchar2,
                    po_str1 out nocopy varchar2,
                    po_str2 out nocopy varchar2) is
      i number;
    begin
      if (len(pi_str) <= 15) then
        po_str1 := pi_str;
        po_str2 := NULL;
      else
        i := 1;
        loop
          exit when len(SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1)) > 15;
          po_str1 := SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1);
          po_str2 := SUBSTR(pi_str, INSTR(pi_str, ',', 1, i)+2);
          i := i+1;
        end loop;
      end if;
    end split_str; 

    You want to find the last space character before the 15th character.
    x := INSTR ( SUBSTR ( pi_str, 1, 15) , ' ' , -1)Then the first string is SUBSTR(pi_str,1,x) and the second string is SUBSTR(pi_str,x+1)

  • 5.0 won't work - extensions message is "localized string not found".  When I force it to try to load a new window it shows a gray screen with the bookmarks on top then immediately closes and wants to report the error. Has been this way since 5.0 came out.

    I first tried downloading Safari when the 5.0 update came out last year.  When I choose the app in the dock, I get the blue top bar (Safari, File, etc) but nothing else loads.  I uninstalled the app and tried again several times, but no success. For over a year now I've used Firefox as a result.  Today I thought I'd try again, but same results.  When I choose "new window" in the file menu, I get a small gray window with my bookmarks on top, then in a few seconds, the app quits unexpectedly and the report an error screen appears.  I've unchecked all the languages in the information area for the app, cleared all history, cookies, and cache.  Still the extensions tab in the preferences area has "LOCALIZED STRING NOT FOUND" in 4 places.  It won't show what that means when I click the "?".  Will I ever be able to use Safari again?

    Perform the suggestions mentioned in the following articles:
    * [[Firefox is already running but is not responding]]
    -> Profile in use
    * [http://kb.mozillazine.org/Profile_in_use]
    Check and tell if its working.

  • I recently had a friend pass away and wanted to grab the photos and read the imessages we exchanged, but i deleted the string.  is there anyway to recover this imessage stream?

    I recently had a friend pass away and wanted to grab the photos and read the imessages we exchanged, but i deleted the string.  is there anyway to recover this imessage stream?

    There are two methods to recover deleted imessages.
    1. Restore them from a previous iTunes or iCloud backup.
    iOS: How to back up and restore your content:
    http://support.apple.com/kb/HT1766
    <Link Edited by Host>

  • Split String FM

    Hello,
    Does anyone know a standard string FM that split string at an absolut place and consider if the N place is blank or not ?
    My meaning is likely:
    str = 'test one two three'.
    I would like to split str at the 10th place but because it's in a middle of word split it in the 8th place ..
    str1 = 'test one'
    str2 = 'two three'
    and not
    str1 = 'test one t'
    str2 = 'wo three'
    I know that VB has few methods like that, I'm hope abap has it also ..
    Thanks in advance,
    Rebeka

    Hi Rebeka,
                    Please check the following code. This would help. FM 'TEXT_SPLIT' does it correctly.
    DATA: text(50) TYPE c VALUE 'test one two three',
    text1(20) TYPE c,
    text2(20) TYPE c.
    CALL FUNCTION 'TEXT_SPLIT'
      EXPORTING
        LENGTH             = 10
        TEXT               = text
       AS_CHARACTER       =
    IMPORTING
       LINE               = text1
       REST               = text2
    check sy-subrc = 0.
    write :   text1 ,
              text2.
    Reward points if useful.
    Regards
    Abhishek

  • HELP URGENT:; Splitting strings in servlets

    hi ...
    I am trying to access the below servlet from another servlet in iplanet . I have to access a file and arrange the '|' delimited data in the file in a table format like in html ...
    I have used my own function inside the servlets which splits a string based on character ...But I always get
    Internal error: exception thrown from the servlet service function (uri=/servlet/ReportsDataServlet): java.lang.NullPointerException, Stack: java.lang.NullPointerException
    at ReportsDataServlet.split(ReportsDataServlet.java:82)
    at ReportsDataServlet.doPost(ReportsDataServlet.java:56)
    at ReportsDataServlet.doGet(ReportsDataServlet.java:14)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:483)
    The sample code is shown below....I get the same error when i tries with stringokenizer as well....Pls help me fix this.....
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, Se
    rvletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    cont=getServletContext();
    out.println("<html><head><title>Reports Data</title></head><body bgcolor=DBD0E2>");
    String repType = request.getParameter("Rep");
    String mon = request.getParameter("month");
    String day = request.getParameter("day");
    String year = request.getParameter("year");
    String repName = repType+"."+mon+"-"+day+"-"+year+".txt";
    BufferedReader in = new BufferedReader( new FileReader("/home/lnayar/baais/xmlServlet/"+rep
    Name));
    String st;
    st = in.readLine();
    cont.log(st);
    int c =0;
    out.println("<table border=\"3\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\"><tr><td>L
    ATA</td><td>WC CLLI</td><td>WC NAME</td><td>ADSL_LOCATION</td><td>ATM FLAG</td><td>ATM RELIEF DATE</td><t
    d>FRAME FLAG</td><td>FRAME RELIEF DATE</td><td>GOLD FLAG</td><td>GOLD RELIEF DATE</td><td>OVERLAY INDICAT
    OR</td><td>COUNT</td></tr>");
    while (st != null)
    c++;
    st = in.readLine();
    StringTokenizer stt = new StringTokenizer(st);
    out.println("<tr>");
    while (stt.hasMoreTokens())
    //out.println("<td>"+stt.nextToken("|")+"</td>");
    out.println("<td>hello</td>");
    out.println("</tr>");
    while (st != null)
    c++;
    st = in.readLine();
    out.println("<tr>");
    Enumeration en = split(st,"|");
    while(en.hasMoreElements())
    out.println("<td>"+en.nextElement()+"</td>");
    out.println("</tr>");
    cont.log("out while");
    out.println("</table>");
    out.println("</body></html>");
    public Enumeration split (String str, String delim)
    Vector v = new Vector();
    int pos_1;
    int pos_2;
    //Set initial delimiter positions...
    pos_1 = 0;
    pos_2 = 0;
    //Start chopping off bits from the string
    //until left boundary reaches the length of string
    while ( pos_1 <= str.length() )
    pos_2 = str.indexOf(delim, pos_1);
    if ( pos_2 < 0 )
    pos_2 = str.length();
    String sub = str.substring (pos_1, pos_2);
    pos_1 = pos_2 + 1;
    v.addElement(sub);
    return v.elements();
    d deeply appreciate if soeone could take a look at the code and tell me exactly where i am going wrong ..... Its URGENT ...
    Thx
    klv

    But there is the while statement which filters null
    values..Which is useless in your case, because you proceed to change the value of st to something else which you don't check for null.
    At any rate, what you have to do is this:
    1. Look at the stack trace to find the line number where the error occurs.
    2. Look at that line in your code.
    3. Look at each object variable in that line. Find out how it became null and fix that.

Maybe you are looking for

  • Windows 2008 server with a Z77A-GD65 m/b?

    Hi, I picked up a Z77A-GD65 last evening assuming I could install Windows 2008 server on it.  Upon trying, the install DVD doesn't even see the hard drives. Any suggestions?  Is this m/b not compatible with Win 2008 servers? Thanks! --Ben

  • My blackberry wont synch with my mac anymore

    I downloaded OS X Mountain Lion and now I can no longer sync my Blackberry Bold with my Contacts or Calendar. I have the most up to date version of the Blackberry Desktop Software for Mac but it still will not transfer any records. Help!!!

  • How to use classlocator plugin?

    Hello, I've downloaded classlocator plugin from this URL: http://sf.gds.tuwien.ac.at/00-cat/loc/classlocator/ This plugin should index all the jar files at NWDS. After setting it I have an option to locate a class but it doesn't show any jar files. D

  • Export/import memory ID in OO

    I tried to use the conventional way of EXPORT itab TO MEMORY ID 'itab' and IMPORT itab FROM MEMORY 'itab' but it is not working in object oriented environment. How to write the correct syntax in object oriented environment? Thanks

  • Why does iphone has common volume control for ringer as well as Alarm?

    Why does iphone has common volume control for ringer as well as Alarm? which is quite unusual. For Exp, In case i lower down my ringer for some reason instead of silent and forget to increase before i sleep, my morning alarm also remains at the same