Search program

<u>Selection-Screen:</u>
Parameter: String field to enter a text
Select-option: to enter program names (value help shall be available)
<u>Program:</u>
The user shall enter a text and select one or several program names. (Search help for the pro-gram names.)
The coding of the selected programs than are searched for the entered string (text).
(Nice to have, but not necessary: if the user makes a double click on a line of the result list (see below) it is jump into the ABAP editor and the coding is displayed in display mode).
<u>Output:</u>
Display in a ABAP list OR in a ALV list the program name, the line number and the coding / text auf the line, where the search term as found.
Please take notice of the ABC naming convention (find in ABC Wiki, when you enter „Namenskonventionen“ in the search field) for the program name and try to use the recommen-dation for the naming of program coding (GV_ for global variable, GT_ for global table etc.).
The following ABAP key words will help you, read the ABAP Key word help for more informa-tion.
READ REPORT
FIND or SEARCH
EDITOR-CALL
Search help: Function module REPOSITORY_INFO_SYSTEM_F4
or Table TADIR or view TRDIR
Anyone can please write code for this program
Message was edited by:
        RaghuRaj Tammaly

TABLES : trdir.
SELECT-OPTIONS : so_name FOR trdir-name.
DATA : itab LIKE trdir OCCURS 0 WITH HEADER LINE.
DATA : fval type trdir-name.
SELECT * FROM trdir INTO TABLE itab WHERE name IN so_name.
LOOP AT itab.
WRITE : / itab-name.
ENDLOOP.
AT LINE-SELECTION.
get cursor value fval.
EDITOR-CALL FOR REPORT fval DISPLAY-MODE.

Similar Messages

  • In need of a search program

    I need a desktop search program that can be set to search only one specific folder (or a specified group of folders) and extract files from within subfolders in those folders. The "result" summary must allow the files to be dragged and dropped or copy and pasted.
    The situation is that I have a lot (hundreds) of folders, each with four subfolders and these subfolders each have from one to three jpeg files (all different filenames). I'd like to collect these all in one place where I can sort them and place them such that they will be more readily accessable.
    They are so difficult to get at now, not knowing the filename.
    Can someone help me find such a program?
    Mootgramp

    Try the excellent freeware Easy Find - VersionTracker or MacUpdate.

  • Search program for E-series phone (E61)

    Hi,
    I had the Nokia Search program until a while ago when it somehow refused to do anything without an internet connection. I used it mainly to search through my contacts by details other than name. Actually, that is all I´m looking for now - if I want to look for anything online, I can use the browser - I rarely do that on my mobile anyway - and I don´t have that much stuff on my memory card, so I don´t need a search program to find what I need.
    So, all I want to do is to be able to search for contacts by any details that are not in the contact name like
    - address
    - company
    Can anybody point me to a good search program to use for that purpose?
    Thanks a lot!
    Regards,
    Hendikoischnur
    Message Edited by hendikoischnur on 10-Aug-2009 11:52 AM
    IT will paint our future - either green or black
    * ecosia, the eco-friendly search engine (powered by Yahoo/Bing/WWF);
    * Searching for pics online? Try ecocho.eu or treehoo.com
    * For those who don´t want to miss Google: Try znout.de - it´s Google running on green energy
    * CO2-free chatting: Try Jabber-server.de (running on 100% waterpower)

    Hi mgoksoy,
    1) Through the ranking system here, you can become a wise man just by asking a lot of questions, so don´t assume I´m a mobile expert
    2) There is no built-in search function in the E61, so I had a "third-party app" - albeit from Nokia - to start with. It just keeps asking for an internet connection and if I say No to its connection request, it just quits, it won´t search the local content anymore.
    3) Since the problem has nothing to do with my phone memory being messy, but with the app just refusing to search anything without being online, I don´t see how a hard reset would help matters.
    Regards,
    Hendikoischnur
    IT will paint our future - either green or black
    * ecosia, the eco-friendly search engine (powered by Yahoo/Bing/WWF);
    * Searching for pics online? Try ecocho.eu or treehoo.com
    * For those who don´t want to miss Google: Try znout.de - it´s Google running on green energy
    * CO2-free chatting: Try Jabber-server.de (running on 100% waterpower)

  • Somehow my laptop has a USELESS search program called Sweetpacks installed. How do I get rid of it?

    Somehow this completely useless search program called Sweetpacks installed on my computer. I can no longer type a search into my address bar! When I try, now Sweetpacks pulls up completely useless information that is entirely unrelated to the search. For example if I type "facebook" without including the ".com", Sweetpacks pulls up a generic search results page including "Face Cleanser" and "Notebooks". I want it gone! I want to use only Google. I have deleted the add-on in Firefox, and searched my desktop programs. According to my computer this Sweetpacks does not exist! I have changed the default search settings on Firefox back to Google, yet it still reverts to Sweetpacks. Help me get rid of this virus!

    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://windows.microsoft.com/en-US/windows7/products/features/windows-defender]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • File searching program

    I don't known how to write File searching program. Please instruct me!!

    Hey the following program is my File searching program.That is absoutly correct but it take many time.So it is not useful to my project.I still need some knowledge.
    package filereplace2;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import javax.swing.filechooser.FileSystemView;
    import java.io.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2006</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class find {
        frmFileReplace fre=new frmFileReplace();
          int Count=0;
            public void findFolder(File f) {
             String path = null;
             //      System.out.println(f.getPath());
                 path = f.getPath()+f.separator + fre.inName;
            //     System.out.println(fre.txtPath.getText());
           //     System.out.println(path);
          //    System.out.println(fre.inName);
                 try {
                     FileReader fr = new FileReader(path);
                     Count+=1;
                     System.out.println("In File Found:"+Count+"="+path);
                     fre.copy(new File(fre.txtPath.getText()),new File(path));
    //            System.out.println(FileSystemView.getFileSystemView().getSystemDisplayName());
                     //System.out.println(path);
                     //           System.out.println(f.getPath());
                     //           System.out.println(fr.toString());
                 }catch(IOException io){}
        //         catch (FileNotFoundException fne) { //System.out.println(fne);
                 //        File[] fOnlyList=FileSystemView.getFileSystemView().getFiles(f,false);
                      //  System.out.println("FILE ONLY");
               try{
                   File[] fileList = f.listFiles();
                   //  System.out.println("List Files");
                   for (int b = 0; b < fileList.length; b++) {
                       //     System.out.println(fileList);
    // System.out.println(fOnlyList[b]);
    if (fileList[b].isDirectory()) {
    // System.out.println("In isDirectory:"+fileList[b]);
    findFolder(fileList[b]);
    }catch(NullPointerException npe){}
    //return path;
    public void findRoots() {
    //FileChannel fc=new
    File[] roots = File.listRoots();
    for (int i = 0; i < roots.length; i++) {
    // System.out.println(roots);
    // System.out.println(roots[i].getPath());
    // File f1 = new File(roots[i].getPath());
    if (FileSystemView.getFileSystemView().isFloppyDrive(roots[i])) {
    continue;
    findFolder(roots[i]);
    System.out.println("Finish Searching");
    Message was edited by:
    ThawDar

  • When I go to the Windows Icon and click on it to do a search programs

    HP p7-1210 DesktopWindows 7 Home Premium 64 bit Service Pack 1 Pavillon Series
    When I go to the Windows Icon and click on it and then go to "Search" to do a search programs & files it does not work.
    Please help! 

    lg-d,
    Welcome to the HP Forum.
    You have probably discovered by now that the issue you are (were?) facing is a problem with the Windows Index.  Sometimes the service falters, sutters, fails to engage.
    Please see the following to get you started:
    Improve Windows searches using the index: frequently asked questions
    Sometimes all it takes is to open the Index and add or remove a location to get things rolling again.
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • CDESK: Start userdefined search program and recieve DIRs

    Hello,
    We want to use as user specific search program in the CDESK:
    We defined the menu button created in BADI DESK_TBM_ADDINADD_NEW_FUNCTIONS, in BADI CDESK_TBM_ADDINPROCESS_NEW_FUNCTIONS, the program gets started.
    I tried to fill the parameter DOCUMENTS in the method PROCESS_NEW_FUNCTIONS, but the DIRs are not viewed in the CDESK.
    Is there any possibility to fill the Tab "Document list" in the CDESK via the BADI ?
    Thanks,
    Stefan.

    Hello,
    after calling
    PERFORM refresh_sap_list IN PROGRAM saplcdesk
          TABLES lt_draw
          USING 'X'.
    It works.
    Stefan

  • E90 and Nokia Search program

    Sorry about all the posts all of a sudden, but I'm new to this device and things may not be as obvious as they are to some...
    I installed the free Nokia Search program using the "Download!" program on the phone. Going by the web site and some screenshots, it's supposed to put a text field onto the "Today" screen as a plugin, allowing quick access to a handful of search engines.
    Problem is, it doesn't. Why?
    The E90 is listed as compatible.

    I have just installed this prog on my E90 and it does not seem to be the same facitities as shown on the web site.
    http://europe.nokia.com/A4568517
    I cannot find My Content Search?
    Here in Finland there are Local search Web and Image search
    A Maps Viewer..that refuses to load via WiFI WLAN..it will only access the server via Internet Service.

  • How do I create a simple search program to search java console log

    I wanted to know how can I write a simple program to return a particular value from the java console.
    Let me give u a brief.
    There is an application that I use, say "XYZ".Every time I perform an action on "XYZ" a log gets created in the java console. One such thing in the log I want to search is "ANI" and the program/script shud return the value adjacent to it.
    Log Example:
    NumCTIClients:0 CallType:CALLTYPE_PREROUTE_ACD_IN
    ConnectionDeviceIDType:CONNECTION_ID_DYNAMIC
    ConnectionCallID:4 ConnectionDeviceID:"0"
    ANI:"9782755100" DNIS:"0006"
    DialedNumber:"8002755010" CED:"1"
    RouterCallKeyDay:145000 RouterCallKeyCallID:34320231
    CallVariable1:"1234567" CallVariable2:"0"
    CallVariable3:"0006" CallVariable5:"26000 123-45-6789
    Not Valid " CallVariable6:"1001123-45-6789
    26000000000038404LPCFAA" CallVariable7:"THIBAULT,
    JOHN C. " CallVariable8:"CISCO
    TESPHE " )
    Now my understanding is that whenever java logs in the console it appends at the top, i.e, first record stays on top of the log sheet.
    Now this script/program shud look up the top-most line which reads ANI and return the corresponding value which in the abv ex. was "9782755100"
    I wud also want a small button when clicked wud copy the "9782755100" to the clip board
    Edited by: SasK on Feb 9, 2008 6:09 PM

    dillmann74 wrote:
    Hello all,
    I am looking for a way to terminate a program when the user enters stop. I am using textpad, and I am running windows xp home. Here is where I need it....
    System.out.print( "Enter employee name:" );
    String nameOfEmployee = input.next();
    System.out.println();
    I need to be able to enter stop in the enter employee name area to terminate the program.
    Thank you all for your advice.Do you know about if statements?
    If not check out the java tutorials here
    if you do then I don't understand your question.

  • Urgent  : can help me in my search program( mofication of my program)

    Requirements:
    <u>Selection-Screen</u>:
    Parameter: String field to enter a text
    Select-option: to enter program names (value help shall be available)
    <u>Program</u>:
    The user shall enter a text and select one or serveral program names. (Search help for the pro-gram names.)
    The coding of the selected programs than are searched for the entered string (text).
    (nice to have, but not necessary: if the user makes a double click on a line of the result list (see below) it is jump into the ABAP editor an the coding is displayed in display mode).
    Output:
    Display in a ABAP list OR in a ALV list the program name, the line number and the coding / text auf the line, where the search term as found.
    <u>My Program coding</u>
    TABLES: trdir,rs38m.
    PARAMETER      : pa_text(30) type c.
    SELECT-OPTIONS : so_name FOR trdir-name MATCHCODE OBJECT ZSH_EXAMPLE.
    data:   begin of jtab occurs 0,
            line(300),
            end of jtab.
    data  : wa like jtab.
    DATA : rata LIKE trdir OCCURS 0 WITH HEADER LINE.
    DATA : repid type sy-repid.
    DATA : fval type trdir-name.
    DATA : cnt type n.
    DATA : off type n.
    SELECT name FROM trdir INTO rata WHERE name IN so_name.
    append rata.
    ENDSELECT.
    WRITE: /02 'PrgName', 53 'Text',95 'Line No'.
    uline.
    LOOP AT rata.
    read report rata-name into jtab.
    jtab-line = rata-name.
      append jtab.
      search jtab for pa_text.
      if sy-subrc = 0.
      WRITE : /02  rata-name, 50 pa_text,90 sy-tabix.
      endif.
    ENDLOOP.
    *LOOP AT jtab.
    *ENDLOOP.
    AT LINE-SELECTION ******************
    AT LINE-SELECTION.
    get cursor value fval.
    Set parameter id 'RID' field  rata-name.
    EDITOR-CALL FOR REPORT fval DISPLAY-MODE.
    *read
    *find
    *search
    The problem is that i can display the list of program which contains the given string....
    but when I double click on the program name... its not displaying  the code of particular particular program .
    so anyone help me to modify my program or send me a new code

    REPORT  ZSEARCH_HELP
    DATADEKLARATION *****
    TYPE-POOLS: slis.
    TABLES: tadir.
    Tables
    DATA: gt_output TYPE TABLE OF zstruct_output.  (here create a search help in se11)
    Structures
    DATA: gs_output TYPE zstruct_output.
    Fields
    DATA: gv_mess TYPE text60.
    Constants
    CONSTANTS: gc_s TYPE msgty VALUE 'S',
               gc_r3tr TYPE pgmid VALUE 'R3TR',
               gc_prog TYPE trobjtype VALUE 'PROG'.
    SELECTION SCREEN *****
    SELECTION-SCREEN: BEGIN OF BLOCK sel WITH FRAME TITLE sel_txt.
    SELECT-OPTIONS: s_repid FOR tadir-obj_name.
    PARAMETERS: p_seatxt TYPE string.
    SELECTION-SCREEN: END OF BLOCK sel.
    SELECTION SCREEN VALUE HELP *****
    REPID_LOW
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_repid-low.
    call search help
      PERFORM prog_search_help CHANGING s_repid-low.
    REPID_HIGH
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_repid-high.
    call search help
      PERFORM prog_search_help CHANGING s_repid-high.
    AT LINE-SELECTION *****
    AT LINE-SELECTION.
    line selection -> double click functionality
      PERFORM jump_into_coding USING gs_output-prog gs_output-line.
    INITIALIZATION ******
    INITIALIZATION.
      sel_txt = 'Date selection'(001).
    s_repid-sign = 'I'.
    s_repid-option = 'CP'.
    s_repid-low = 'Z*'.
    APPEND s_repid.
    START-OF-SELECTION ******
    START-OF-SELECTION.
      CLEAR: gt_output[],
             gs_output,
             gv_mess.
    select data and determine where search string is used
      PERFORM select_progs CHANGING gt_output.
    END-OF-SELECTION.
      IF NOT gt_output[] IS INITIAL.  "found data
    display the found data
        PERFORM display_data CHANGING gt_output.
      ELSE. "no data was found
        gv_mess = 'No data was found'(003).
        MESSAGE gv_mess TYPE gc_s.
      ENDIF.
    SUB-ROUTINES *****
    *&      Form  select_progs
          Determine programs where the search string is used
    -->  pt_output   Output data
    FORM select_progs CHANGING pt_output LIKE gt_output.
      DATA: BEGIN OF ls_progs,
             prog TYPE programm,
            END OF ls_progs.
      DATA: lt_progs LIKE TABLE OF ls_progs.
    select all progams into a internal table
      SELECT obj_name
        FROM tadir
        INTO TABLE lt_progs
        WHERE pgmid = gc_r3tr AND
              object = gc_prog AND
              obj_name IN s_repid.
      IF sy-subrc = 0.  "selection was successful
        LOOP AT lt_progs INTO ls_progs.
    search coding of the programms for the search string
          PERFORM search_coding USING ls_progs-prog
                                CHANGING pt_output.
        ENDLOOP.
      ELSE.   "selection was not successful -> error message
        gv_mess = 'Search string not found in selected programs'(002).
        MESSAGE gv_mess TYPE gc_s.
      ENDIF.
    ENDFORM.                    " select_progs
    *&      Form  search_coding
          search every selected program for the search string
         -->PS_PROGS   Program name
         <--PT_OUTPUT  output data
    FORM search_coding  USING    pv_prog TYPE any
                        CHANGING pt_output LIKE gt_output.
      DATA: lt_coding TYPE TABLE OF string,
            lv_coding TYPE string.
      CLEAR gs_output.
    read coding into internal table
      READ REPORT pv_prog INTO lt_coding.
      IF sy-subrc = 0.  "Coding was read
    move program name
        gs_output-prog = pv_prog.
    search for search text
        LOOP AT lt_coding INTO lv_coding.
          SEARCH lv_coding FOR p_seatxt.
          IF sy-subrc = 0.
    move found line
            gs_output-line = sy-tabix.
            gs_output-text = lv_coding.
            APPEND gs_output TO pt_output.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " search_coding
    *&      Form  display_data
          display the result data
         <--PT_OUTPUT  result data
    FORM display_data CHANGING pt_output LIKE gt_output.
      LOOP AT pt_output INTO gs_output.
        WRITE: / gs_output-prog LEFT-JUSTIFIED NO-GAP,
                 gs_output-line,
                 gs_output-text.
        HIDE: gs_output-prog, gs_output-line.
      ENDLOOP.
    DATA: lt_fieldcat TYPE TABLE OF slis_fieldcat_alv.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name               = sy-repid
        i_internal_tabname           = 'GT_OUTPUT'
       I_STRUCTURE_NAME             = 'ZSTMP_SEARCH_PROG'
       I_CLIENT_NEVER_DISPLAY       = 'X'
       I_INCLNAME                   =
       I_BYPASSING_BUFFER           =
       I_BUFFER_ACTIVE              =
       CHANGING
         ct_fieldcat                  = lt_fieldcat
    EXCEPTIONS
       inconsistent_interface       = 1
       program_error                = 2
       OTHERS                       = 3
    IF sy-subrc <> 0.
       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
       I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
         it_fieldcat                       = lt_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
       TABLES
         t_outtab                          = pt_output
      EXCEPTIONS
        program_error                     = 1
        OTHERS                            = 2
    IF sy-subrc <> 0.
       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM.                    " display_data
    *&      Form  prog_search_help
          search help for program field
    -->  pv_repid  program name
    <--  p2        text
    FORM prog_search_help CHANGING pv_repid TYPE any.
    use standard function module
      CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4'
        EXPORTING
          object_type                     = 'PROG'
          object_name                     = pv_repid
        ENCLOSING_OBJECT                =
        SUPPRESS_SELECTION              = 'X'
        VARIANT                         = ' '
        LIST_VARIANT                    = ' '
        DISPLAY_FIELD                   =
        MULTIPLE_SELECTION              =
        SELECT_ALL_FIELDS               = ' '
         WITHOUT_PERSONAL_LIST           = ' '
        PACKAGE                         = ' '
          use_alv_grid                    = ' '
       IMPORTING
         object_name_selected            = pv_repid
        ENCLOSING_OBJECT_SELECTED       =
        STRUCINF                        =
      TABLES
        OBJECTS_SELECTED                =
        RECORD_TAB                      =
       EXCEPTIONS
         cancel                          = 1
         wrong_type                      = 2
         OTHERS                          = 3
      IF sy-subrc <> 0.
       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " prog_search_help
    *&      Form  jump_into_coding
          jump into the coding
         -->P_GS_OUTPUT_PROG  text
         -->P_GS_OUTPUT_LINE  text
    FORM jump_into_coding USING pv_prog TYPE program
                                pv_line TYPE any.
      EDITOR-CALL FOR REPORT pv_prog DISPLAY-MODE.
    ENDFORM.                    " jump_into_coding

  • Information Search Program on the Internet

    Hi all,
    Do you know any program written in Java that go on the internet
    and search for data that we specify. What kinda of java package
    am I supposed to look at if I want to write one.
    Thanks,
    TC

    yes sure..the following sode is a simple search engine that searches for the required keyword on the yahoo search engine.Hope it helps:
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class searchengine extends JFrame
    JTextField text;
    JButton search;
    JPanel background;
    String s;
    String Searcher;
    public searchengine()
         text=new JTextField();
         search=new JButton("Search YahOO");
         background=new JPanel();
         background.setBackground(new Color(250,255,205));
         background.setLayout(new BorderLayout());
    this.getContentPane().add(background);
         background.setLayout(null);
         Rectangle r=new Rectangle(20,20,150,30);
         text.setBounds(r);
         r.translate(0,40);
         search.setBounds(r);
         search.setForeground(new Color(240,230,140));
         background.add(text);
         background.add(search);
         search.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
         System.out.println(     text.getText());
              Searcher="http://search.yahoo.com/bin/search?p="+text.getText()+"&w=dir&fr=op&o=a&h=&g=0&n=20";
              String[] exp=
    {"C:\\Program Files\\Internet Explorer\\IEXPLORE",Searcher};
              try
              Runtime.getRuntime().exec(exp);
              catch(Exception e)
                   e.printStackTrace();
         setVisible(true);
         setLocation(400,200);
         setSize(200,150);
    addWindowListener(new WindowAdapter()
         public void windowClosing(WindowEvent w)
              hide();
    public static void main(String []args)
         searchengine s1=new searchengine();
         s1.show();

  • Search program on table

    Hi,
    there is example how to do search for prefix on table with program
    for example if i search for the word man*
    i want to get the manager us manager uk
    and not general manager 
    Regards
    Chris

    Hi Chris,
       You can see the following code snippet.
      select single name 2
        from adrc
        into l_name2
      where name1 LIKE 'MAT%'.
    Here the name 1 that starts with MAT.. will be fetched.
    Regards,
    Vimal.

  • Search program in 'PERFORM subroutine(program)'

    Hi,
    What is the best way to find the <b>program</b> name in PERFORM subroutine(<b>program</b>) in customized programs?
    I have been making use of RPR_ABAP_SOURCE_SCAN, but this std prog only allows (1)first level of drill down
    (1)Example:
    Main program ZABC.
    PERFORM sub1(ZSUBPROG).
    Subprogram ZSUBPROG.
    PERFORM sub2(ZSUBPROG2).
    For the above, i need to have the result returns me both subprogram <b>ZSUBPROG</b> and <b>ZSUBPROG2</b>.
    My second problem would be difficult to (2)merely extract the sub program name alone since there is a lot of pattern of syntax declaration for PERFORM xxx(ZXXX).
    (2) Example:
    a.   PERFORM xxx(ZABC)         .
    b.  PERFORM: xxx(ZABC),
                           xxx(ZEFG),      "perform xxx(ZEFG)
    c. PERFORM: xxx(ZABC), xxx(ZEFG)    .
    Pls comment is there is any std FM or any tools can help.
    Thanks in advance.

    hi,
    use trx. se84, i mean you can search for subprograms here
    A.

  • How to find all aliases?  Search program needed

    Whenever I try to browse certain types of Web sites with Firefox - and I'm not sure what the common denominator is, but it might be Javascript - the OS tries to connect to an AFP share point on another machine. There's no good reason for it to do this.
    This is apparently a common problem. Google for "AFP Connection Status" and you'll see a lot of reports of "stale" AFP pointers being generated by various Mac programs, which cause this sort of behavior ever after. Solutions invariably involve looking in directories associated with the application, like "Plugins", for stale link alias files.
    I've looked in the obvious places and I can't find it. Now, what I need to do is find (or write) a program which lists ALL the alias files in the system, or, preferably, all the aliases which point to an AFP share point. Because there SHOULDN'T BE ANY. Aliases are, these days, zero-length files with structured information in the resource fork containing the actual information about the file being pointed at.
    Can anyone help by pointing out such a program? The BSD "find" command hasn't been extended (yet) to search file metatdata, it seems, at least not according to the man page. I am no stranger to the Terminal, being an old FreeBSD hand, so UNIX-style solutions are welcome.
    Mac Pro (4-core)   Mac OS X (10.4.9)  

    Had to solve this one on my own. Hopefully people will see this when they Google for it, but this is a general solution to the problem of persistent "AFP Connection Status" popups that won't go away.
    The problem, as others have stated, is that there is an alias somewhere on the system that points to the missing share. The share won't be mentioned in a regular file; the share point's information is located in the resource fork of the alias. What's needed is a way to search the entire file system for any resource fork that mentions the share.
    Here is how to do that:
    # find / -type f -exec grep funkyshare '{}'/rsrc \; -print
    When this command finds the aliases - and there may be more than one - you can delete them.

  • Java search program

    can anyone please help??????????? If they can I would be ever so greatful.
    I'm trying to create a search engine within an app, where if you typed in a search (in a text box) it would search a folder and the files in it for any matching words. The more matching words in the file, the higher up it is listed in the search result.
    Now heres the tricky bit. I want the results to load up in a scroll area in the left hand side of the interface. And when you click on one of the result, the file loads up in the large right window pane (possibly text area). The files that load would be html files which may contain graphical images as well as text.
    Does anybody know of an example program such as the one described above with open source code that I may be able to look at for ideas, or possibly does anyone know how to guide in the right direction with example codes - I would be ever so greatful. Thank you.

    There may be a different searches each time so there would be no point in having a tree, as a tree would be fixed. The point of this is to make a search where all the results are listed on the left hand side, and when one of the results are clicked, the file is loaded on the right hand side - preferably html pages.

Maybe you are looking for