Search for a particular string in a field

Hi all,
let us say I have some characteristic name in field ATNAM. Now I want to search if the name in the field matches the pattern CO*GLI i.e., the name should have CO at the beginning and GLI at the end and can have anything in the middle.
Please help me. Waiting.............

hi u can use this code for that
<b>data: field(120).
data: char1(2), char(3).
data: len type i.
len = strlen( field ).
len = len - 2.
char1 = field1+0(2).
char2 = field1+len(3).</b>
This will work for u, please award points

Similar Messages

  • How to search for a particular word in a string?

    How to search for a particular word in a string?
    thanks for your help....

    This works fine.
    public class Foo {
        public static void main(String[] args) {
        String s = "Now is the time for all good...";
        String s2 = "the time";
        System.out.println(s.contains(s2));
        System.out.println(s.contains("for al"));
        System.out.println(s.contains("not here"));
    }output:true
    true
    falseYou must have something else wrong in your code.
    JJ

  • How to search for a particular pattern in a string

    Hi,

    Hi ,
    How to search for a particular pattern in a string?
    I heard about java.util.regex; and used it in my jsp program.
    Program I used:
    <% page import="java.util.regex"%>
    <% boolean b=Pattern.matches("hello world","hello");
    out.println(b);%>
    I run this program using netbeans and am getting the following error message.
    "Cannot find the symbol : class regex"
    "Cannot find the symbol : variable Pattern "
    How to correct the error?

  • Search for a space within a text field

    Hi All
    I am trying to search for a sapce within a text field but sofar not being very successful. I have used:
    FIND search_str
               IN text_str
               MATCH COUNT  lv_mcnt
               MATCH OFFSET lv_moff.
    where search_str = TYPE c VALUE ' '.
    I am looking a way of searching a character within the string using ABAP (like INSTRING in other languages). If you have similiar codes - Could you please post me a copy - Thanks

    HI
    Check this..
    DATA string7(30) TYPE c VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH string7 FOR 'X'.
    WRITE: / 'X', sy-subrc UNDER 'SY-SUBRC',
                   sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 'itt   '.
    WRITE: / 'itt   ', sy-subrc UNDER 'SY-SUBRC',
                       sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '.e .'.
    WRITE: / '.e .', sy-subrc UNDER 'SY-SUBRC',
                      sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '*e'.
    WRITE: / '*e ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 's*'.
    WRITE: / 's* ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    Thanks ,
    Praveen

  • Search for a particular email message

    How do I search for a particular email message, or set of email messages, by sender, topics, etc. on the iphone?

    When searching for email messages from within Mail or when using Spotlight, you can search the To, From, and Subject fields. Search "All" searches all three of these fields. The text, or body, of messages is not searched.

  • How can I search for a particular color in an image?

    Hi,
       I am working on images of colored balls.
    I want to search for the particular color (of the ball) and select them .
    How can I do it?
    Your suggestions will be helpful.
    Thanks
    dsk

    Hi Dsk, 
                   you can apply color threshold and extract the required color in the image. Try color threshold in vision assistant.
                  see  here
    Thanks as kudos only

  • How to search for a particular word in notes app (ios6)

    Sir,
    I can search for a note but i couldnt search for a particular word in a long note in notes app.
    (ios 6)
    is there a way to do it,or is there any app that has this 'search for word' functionality ?

    thank you for your quick reply sir.
    i am asking for other independent notable apps(not notes app) which has this functionality .

  • How to search for a pattern string in entire registry and delete all the keys and subkeys that contain the pattern (C# or VB)?

    I want to search for a pattern string in the entire registry and need to delete all the keys and sub-keys that contain the pattern. How can I implement this in VB Script or C#? Appreciate if you can give some sample examples. Now every time, I am manually
    searching for the pattern in registry and deleting one by one.
    Thanks Prasad

    There is no built in way to do this. You'll end up having to enumerate all keys and values in the entire registry and comparing each one for a pattern using Regex or similar.  This is going to be really slow but there isn't much else you can do about
    it (other than parallelize the enumeration).  Also note that you won't have permissions to all keys for read and/or write access so you'll need to skip over those using exception handling.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • How to search for a particular word in a long document?

    How to search for a particular word in a long document?

    What program are you using to read the document?
    Good luck.

  • When I am searching for any particular song or album from my shared ITUNES folder, the search is conducted  in the apple store and not on the shared library. How to search for the song in the shared library

    I am using IPAD Mini.When I am searching for any particular song or album from my shared ITUNES folder, the search is conducted  in the apple store and not on the shared library. How to search for the song in the shared library

    Search for shared library is impossible, as far as I know.  Searches supported - are local and internet.

  • When I do a search for a particular song in the iTunes store, how can I change the view for the results?

    I have the latest version of iTunes.  Today I did a search for a particular song.  In the past, I used to get a list of the song and the various artists who recorded it, and I could click the little arrow and play a preview of that song before I decided to buy it.  Today the results didn't display that way - instead, I got a page with probably 50 or 100 songs all spread out across the page, and the "writing" was all overlayed so you couldn't quite tell what you're supposed to see!  I want to go back to the "list" view but couldn't find anywhere to change the view preference.  Any idea how?

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]
    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Next Generation Java Plug-in 1.6.0_16 for Mozilla browsers
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • Search for a particular user

    I have configured LDAP authentication and mapped few LDAP user groups to BOXI. When an user group is added all the user will also be mapped to BOXI. For the users mapped the distinguished name is added as one of the alias.
    The requirement is to search for a particular user in the BOXI using the distinguished name(DN), hence need to query on the alias name or ID. I tried the query something like but didn't worked.
    SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_KIND='User' AND SI_ALIASES.1.SI_NAME like '%DISTINGUISHED_NAME%'
    IF the DN is like cn=userName,ou=users,ou=group1, dc=myorg, dc=com and the query is written as it works.
    SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_KIND='User' AND SI_ALIASES like '%userName%'
    Could you help in writing a query on the user alias.
    Thanks in advance.

    Here is yours for all posts, sorted chronologically from oldest to newest in descending order and showing 100 entries per page...
    http://forums.sdn.sap.com/search.jspa?userID=3743484&rankBy=1&threadID=&q=&objID=&dateRange=all&numResults=100
    You can play around with the available parameters a bit to tune it further.
    Cheers,
    Julius

  • How to search for subset of string

    Hi,
    I'm trying to implement Oracle text in 8i and 9i to search for a given string or a subset of string.
    For example, if the given string="Database Technology", I would like intermedia to first search for the exact string - "Database Technology",
    if not found, then search for either "Database" or "Technology".
    I'm only able to search for the exact string ("Database Technology") so far by using the contain clause. I'm not able to get Oracle Text to return me any records that also contains "Database" or "Technology" if the exact match "Database Technology" cannot be located.
    Any help is very much appreciated.
    thanks.
    elain

    You need to use the ACCUM operator. It raises the score based on the the frequencies of more than one word. Here are the contents of my TEXT1 test table:
    TEXT
    database
    server
    database server
    database blah blah database
    database blah blah server
    select score(1), text1.* from text1 where contains(text,'database ACCUM server ACCUM database server',1) > 0 order by score(1) desc;
    and here are the results:
    SCORE(1) TEXT
    68 database server
    34 database blah blah server
    2 database blah blah database
    1 server
    1 database
    You may want to put a multiplier on the "database server" phrase's score to increase the score on when the complete phrase is found. That looks like this, for example:
    select score(1), text1.text from text1 where contains(text,'database ACCUM server ACCUM database server*3',1) > 0 order by score(1) desc
    Tom Best

  • How to search for the particular ABAP Object

    Hi,
    I am using the SAP 4.6C machine, I need to search for the particular ABAP Object. Plz can anyone help me in this.
    Regards,
    Pralhad P. Teggi

    You'll get a better response if you ask a meaningful question.
    If you want to scan for Business Objects (BOR) use transaction SWO1
    For ABAP classes / objects use a combination of transactions SE24 / SE18 / SE19 and /or SE80
    (SE 18 /  SE 19 are for Badi's)
    Cheers
    Jimbo

  • Total number of records when we do search for a particular item in Istore.

    Hi
    I need the total count of the records when we search for a particular item.
    I wrote a sql query using like condition which is match short and long description but in some cases it is failing.
    Can you guide,how to solve this issue.
    Thanks,
    Sabitha

    Sabitha,
    the mismatch could be due to the Fuzzy search profile option.
    Please check if fuzzy search has been enabled.
    Thanks
    Pradeep
    www.oracleappstips.com

Maybe you are looking for

  • How to find Invoice number linked to FI accounting document number ??

    Hello All, I have been looking around for all possible combinations to find the link between FI accounting document number (BSEG-BELNR) and Intercompany Invoice number (for which billing corr. to STOs' or POs' is done). The requirement is that during

  • New iPod nano cases from the DigitalLife Expo NYC

    For those not able to make it to the DigitalLife Expo in NYC... RainyDayMagazine was there reporting live today. http://www.rainydaymagazine.com/RDM2005/Destinations/RDMDestinationsDigitalLife0 5.htm We paid special attention to folks show iPod nano

  • Airport Express + macpro + WinPC

    Hi Mac newcomer with a new mac laptop, a windows laptop and an airport express. what i am trying to do is simple: - share internet connection through AE + wired router (done!) - at the same time, network the two laptops wirelessly to share files (fai

  • How to cehck the restricted values in Query desingner

    HI , I have a infoobject restricted with some values in the query desingner. NOw I want to check the restricted values ( which are there as an interval shown below the infoobejct in the query desingner). I can check it by going to change mode in the

  • How simple is the Bluray authoring in Final Cut Studio?

    Hello! I've been reading posts on Bluray authoring with Final Cut Pro. Just got the upgrade to Final Cut Studio and saw some video at the apple site about bluray. Frankly, I don't want to spend money with a Windows authoring software for Bluray. So,