Searhing

Hi all,
How do you make the below query to be able to return a record from the database when there is a full or partial match in vendor name field.
V.VNAMEL is a field for vendor name
Thank you
SELECT DISTINCT
V.VENDOR ,
R.ADDRNUM,
V.VNAMEL,
R.AADDR1,
R.ACITY,
R.ASTATE,
R.AZIPCODE,
R.APHONE,
TO_Char( (MAX(P.DATEPUR)), 'YYYY-MM-DD') as Purchase_Date
FROM VENDOR V,
VENDADDR R,
PLANHOLD P
WHERE V.VENDOR = R.VENDOR AND
P.VENDOR = R.VENDOR AND
(P.DATEPUR >= TO_DATE('2002-01-01','YYYY-MM-DD') )
AND V.VOBSOLET = 'N'

Thats what the % on both sides of the search string does. It allows for an infinite amount of characters before and after the word. As long as those letters appear together anywhere in the vendor name, it will be returned.
EX:
VENDOR NAME:  MICROSOFT
%MICRO%
%SOFT%
%MICROSOFT%All three of those search strings would return vendor Microsoft (and others depending on what else matched).

Similar Messages

  • Question about searh help exit

    Hi all
    Can we implement our owen serch help exit , for instance Z_SHL_EXIT, and put it in the search help exit og the sap standar search help , in order to change its behavior or to call another search help.
    let say that sap has a search help called CRAMA , but I want to delete some fields and add an extra field to it , then I can create an Z_CRAMA based on CRAMA after my requirement .
    I can not change the way of calling the CRAMA  and call Z_CRAMA.
    Now , would I be able from CRAMA SEARCH HELP EXIT call Z_CRAMA searh help and use it.
    Thanks in advance.

    For the particular field you have in mind, how is the elementary search help accessed?  Directly or via one of the collective search helps?  If via one of the collective search helps, you would be better off copying CRAMA, modifying it, then including it as an additional elementary search help with it's own title to differentiate it.  Once the users start using it, it will be the default tab that shows up first in the collective help.

  • Adding a new field in searh and result [ comb of 2 other fields ]

    Hi ,
    I have to add a new field in Opportunity Search and later OpportunitySearch Result. This field belongs to Opportunity Details -> parties Involved view , and is a combination of 2 fields there..Partner function and Main Partner (unchecked ). Details are as below..
    Can you please suggest easiest way for achieving this..
    Details of the Opportunity Search where I need to add a new search field
    Component : BT111S_OPPT
    Context Node : SEARCH
    View : BT111S_OPPT/Search
    Details of the new search field (Present In the Opportunity Details, there is a viewset for Parties Involved ) ..The new search field should be Employee Responsible but not the Main Partner ( kind of a substitute OR Secondary Employee Responsible )..2 employee responsible is permitted in partner determination..
    Component : BTPartner
    Context Node:  BTPartner
    View : BTPartner/Partner
    Attribute : Partner_fct
    Generic Object Type = 1Order
    +
    Component : BTPartner
    Context Node : BTPartner
    View : BTPartner/ Partner
    Attribute: MainPartner ( Not checked = 0 )
    Is there a simpler way without coding to achieve the above?
    The route that we have thought of is ...Let me know if there is an alternate simpler way...and If I am missing anything
    1.Create a custom field using EEWB ( I am not well aware of AET, and not aware how to enable this in our 
       environment as we upgraded to 7.0 recently ) For CRM Opportunity Transaction Type.
    2.This will be linked to the table CRMD_ORDERADM_H and the related structure
    3.Ask the technical team to populate this field from structure COM_DYNP_PARTNER_UI-PARTNER_FCT and COM_DYNP_PARTNER_UI-MAINPARTNER = 0 [(In Transaction crmd_order F1 on employee responsible points to structure COM_DYNP_PARTNER_UI and Mainpartner is a Boolean and hence main partner = 0 means that it is not the main partner ).
    4.Add the same field in the search-result as well.
    Thanks.
    Regards,
    Monica.

    Hello,
    I have looked at wiki below [http://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component]
    Kindly suggest ways to acheive adding new field in Opportunity Search ( employee responsible which is not the main contact like I mentioned ) which belongs to another component ...Can it be done without coding eg. adding to design layer.
    Can you please give steps to do the same.
    Thanks.
    Regards,
    Monica

  • Auto fill is no longer available. Now I have to type a website to visit it instead of clicking in the searh box.

    I now get "auto fill is not available for this page" consistently. I am no longer able to click on a previous search entry and go to that site.

    Do you have the Google Toolbar installed?
    Try re-installing the latest version of that toolbar. <br />
    See this for support information about the Google Toolbar.
    [http://www.google.com/support/toolbar/?hl=en]
    Or visit the Google Toolbar forum.
    [http://www.google.com/support/forum/p/Toolbar?hl=en]

  • How do I get my google search bar back in the middle of my page insead of the Blank searh engine that is on my start up page now

    Before I did the last upgrade with Firefox, I had the Google search bar in the middle of my start page. Now , after the upgrade, my Google search bar is up on a tool bar at top of the page and the when you type something in the large Firefox box in the middle of the page does nothing even though it has the Search box to the right of it. The restore last session is under that. I just have a large box in the middle of start page that does nothing. I wish that was my Google search box again.

    ''Restoring Google Search page as the home page''
    What you are looking at on the web page is a '''search form''', not a search bar. Mozilla changed the default home page to '''about:home''' which is supposed to be faster because it is on your computer, but they piled on a few ornaments. There is a space which is essentially advertising space for Mozilla, or to tell you that you have a previous session available below the search form area.
    You can replace that page with a real Google Search page http://www.google.com which like other Google pages has links at the top to other Google applications and tells you if you are logged into Google such as for GMail.
    "Alt" > Tools > '''Options''' > General >
    :When Firefox starts: "Show my homepage":
    :Home Page: http://www.google.com
    :Press "Ok" at the bottom of the options window.
    Specific information on installing a home page is in
    :http://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page
    ''Some problems with terminology''
    The '''search bar''' is part of your toolbars and you can bring up any search engine you want in it.
    Google has their own "Google Toolbar" extension, which you would do well to avoid.
    The large empty space on the '''about:home''' default home page, is to tell you that you have a previous session available. You don't need that notification you can bring up your "Previous Session" from the History menu, and after that you can bring up previous windows (or all of them also from same History menu).
    In fact if you would like to see the notification at the end of your session, enabling you to restore your current tabs see item #31 (#tabslost) in the following: ...
    You can make Firefox '''Firefox 5.0''' look like Firefox 3.6.18, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 5.0, or 4.0.1, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    ''If this answers your question please mark it as solved -- to remove from the unresolved problems.''

  • Searh help in ABAP webdynpro with Adobe form is flickering/blinking

    All,
    I have an WDA that has an interactive Adobe form for input. I'm calling the SAP standard search helps when clicked for value helps from the Adobe interactive form that opens up the search helps pop-ups in the web-dynpro style. But strangely, the portion of the search help pop-up window that is just over the Adobe interactive form is always flickering/blinking whenever something is typed or moved on the search help pop-up window. This seems to be a standard bug/issue with SAP. Has anyone encountered the same issue and have found a solution to that?
    Regards,
    Sam

    hi rock,
         try this: sometimes any event might be calle din the backend which is overrirding your adobe form which is causing you the flickering. check it
    ---regards,
       Alex B Justin

  • Why isn't the Searh box working??

    No matter what I type into the search box, I don't get ANY results.  Is it broke?

    I'm using IE 7.  The popup blocker is shup off.  I was finallly able to search by going to the main forum page and typing my keywords in there.  Then I was able to filter on down to Crystal Reports forum by using the left naviation.  Now...here's the stumper....this morning, the search box is working for me.  I guess it could have  been a temporary computer browser gltich on my end.  Thanks for your ideas anyway.

  • How do I hange my new tab from being yahoo searh to google search? I have this changed in IE 8 and works fine. I have removed Yahoo as a search engine in firefox but a new tab is still yahoo. How do I change this?

    How do I change my new tab from being yahoo search to google search? I have this changed in IE 8 and works fine. I have removed Yahoo as a search engine in firefox but a new tab is still yahoo. How do I change this using firefox 8

    Open Firefox -> Go to View -> Toolbars -> Chechmark on "Navigation Toolbar"
    this will bring back your address bar (where you type links to go to websites :P )

  • BP searh help for Bank control Key (with restricted values)

    Hi all Wise men
      Please suggest me a way to add search help to screen field (GT_BUT0BK-BKONT) table field( BUT0BK-BKONT ) with values 01,02,03,04,05 in Txn BP.
    Sorry Iam new to BDT events and BUPT Txn.
    Also Please suggest to which BDT event can I attach a search help through FM 'F4IF_TABLE_VALUE_REQUEST' .
    Thanks a lot
    Arjun

    u can refer to this standard program :BCALV_EDIT_08
    also u wont get the list of values automatically..
    declare a class :
    CLASS LCL_EVENT_HANDLER DEFINITION.
      PUBLIC SECTION.
        METHODS :
        handle_on_f4 for event onf4 of cl_gui_alv_grid
        importing e_fieldname es_row_no er_event_data,
    ENDCLASS.               "LCL_EVENT_HANDLER
    implementation of class
    here u pass ur internal table what u want to display as pop up for f4 help.
    *&       Class (Implementation)  LCL_EVENT_HANDLER
           Text
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *Method to handle F4 click.
      Method handle_on_f4.
    Function to create a popup and passing the values of internal table in it.
          CALL FUNCTION 'POPUP_WITH_TABLE'
            EXPORTING
              ENDPOS_COL   = 60
              ENDPOS_ROW   = 60
              STARTPOS_COL = 5
              STARTPOS_ROW = 5
              TITLETEXT    = 'pop up'
            IMPORTING
              CHOICE       = wa_grid-zfield
            TABLES
              VALUETAB     = ITAB
            EXCEPTIONS
              BREAK_OFF    = 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.
            RETURN.
          ENDIF.
      endmethod.                    "handle_on_f4
    ENDCLASS.               "LCL_EVENT_HANDLER
    hope this gives u some idea.

  • Regarding Searh option in table control

    Hello,
    I have one table control in which i have taken only one field of 132 length so that user enter the line wise comments in that table control.
    Now i want a search button for that table control so that user can enter any string to search in the table control.
    How to do that as i haven't seen any thing like this even in standard transaction also.
    Please give me some ideas fro doing that.
    with regards,
    nitin

    Hello,
    Thanx for your reply,
    I code like this.
    I_TXTTAB is my table control internal table.
    MODULE SEARCH. is my module for search
    Codes as follow
      CASE OK_CODE.
        WHEN 'FIND'.
          PERFORM SEARCH.
    TAB_SEARCH-TABNAME = 'TLINE'.
      TAB_SEARCH-VALUE = ROLE_TEXT.
      TAB_SEARCH-FIELDNAME = 'TDLINE'.
      APPEND TAB_SEARCH.
      CALL FUNCTION 'POPUP_GET_VALUES'
        EXPORTING
          POPUP_TITLE     = 'Find Text : Comment'(010)
        IMPORTING
          RETURNCODE      = RETURNCODE
        TABLES
          FIELDS          = TAB_SEARCH
        EXCEPTIONS
          ERROR_IN_FIELDS = 1
          OTHERS          = 2.
      IF RETURNCODE = 'A'. EXIT. ENDIF.
      READ TABLE TAB_SEARCH WITH KEY FIELDNAME = 'TDLINE'.
      ROLE_TEXT = TAB_SEARCH-VALUE.
      CLEAR L_TEXT_INPUT.
      L_TEXT_INPUT = TAB_SEARCH-VALUE.
      IF ROLE_TEXT IS INITIAL .
        EXIT.
      ENDIF.
      IF FILE IS NOT INITIAL AND
         I_TXTTAB IS NOT INITIAL.
        DESCRIBE TABLE I_TXTTAB LINES TXT_LINES.
        L_IND = COMMENT-CURRENT_LINE.
        READ TABLE I_TXTTAB INTO W_TXTTAB INDEX L_IND.
        FIND ALL OCCURRENCES OF L_TEXT_INPUT  IN W_TXTTAB IGNORING CASE RESULTS RESULTS.
        IF SY-SUBRC = 0.
          SET CURSOR FIELD 'W_TXTTAB' LINE L_IND.
          FLAG = 'X'.
        ENDIF.
    This code finds the text string but it is not taking my cursor to that particular line item.
    i write this code like this also, but still not getting to the line item
    PROCESS AFTER INPUT.
      LOOP AT I_TXTTAB.
        CHAIN.
          FIELD W_TXTTAB-TDLINE.
          MODULE G_TEXT_MODIFY ON CHAIN-REQUEST.
        ENDCHAIN.
        MODULE SEARCH.
      ENDLOOP.
    With Regards,
    Nitin Malhotra

  • Case sensitive Searh field

    Hi guys!
    Kindly check my codes. It seems like FIND command doesn't work (sy-subrc= 4).
    **Pass Value
      IF sl_id IS INITIAL.
        sl_id = '%'.
      ENDIF.
      IF sl_desc IS INITIAL.
        sl_desc = '%'.
      ELSE.
       TRANSLATE sl_desc+1 TO LOWER CASE.
        CONCATENATE '%' sl_desc '%' INTO sl_desc.
      ENDIF.
    **Initial Value
      storage_loc-sl_id = '-'.
      storage_loc-sl_desc = 'None'.
      APPEND storage_loc.
      CLEAR storage_loc.
    **Get Storage Location
      SELECT lgort
             lgobe
      INTO (storage_loc-sl_id,
            lv_text)
      FROM t001l
      WHERE werks = 'AGP1'
    *AND lgort LIKE sl_id
    *AND lgobe LIKE sl_desc
        CONCATENATE '%' lv_text '%' INTO lv_text.
        CHECK sl_desc IS NOT INITIAL.
          TRANSLATE lv_text TO UPPER CASE.
    -->>      FIND sl_desc IN lv_text IGNORING CASE.
              IF sy-subrc = 0.
                SELECT SINGLE lgobe
                INTO storage_loc-sl_desc
                FROM t001l
                WHERE lgort LIKE sl_desc.
                  APPEND storage_loc.
                  CLEAR storage_loc.
              ENDIF.
      ENDSELECT.

    Maui,
    I believe you can use SEARCH option. See the code below from SAP HELP.
    Hope this will solve your problem,
    Cheers,
    Thomas.
    DATA STRING(30) VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH STRING FOR 'X'.
    WRITE: / 'X', SY-SUBRC UNDER 'SY-SUBRC',
                   SY-FDPOS UNDER 'SY-FDPOS'
    SEARCH STRING FOR 'itt '.
    WRITE: / 'itt   ', SY-SUBRC UNDER 'SY-SUBRC',
                       SY-FDPOS UNDER 'SY-FDPOS'
    SEARCH STRING FOR '.e .'.
    WRITE: / '.e .', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR '*e'.
    WRITE: / '*e ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR 's*'.
    WRITE: / 's* ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.

  • A searh engine called my start has taken over firefox, how can i get firfox back? i tried to download it again an my start came ip.

    A search engine My Start has taken over when I try to go on Firefox. I tried to download Firefox again but it comes up My Start. How can I get Firefox back? When I click on the Firefox icon , My Start comes on.

    install the search reset addon: [https://addons.mozilla.org/firefox/addon/searchreset/]

  • Searh option in music player - E6 Belle

    Is there an easy way to search for a song (except browsing the albums and songs) in the library in E6 with Belle? The player was very simple and efficient in E63, E72, but now it's very complicated.
    --Thanks.

    My reply was just a proposal for improvement addressed to Nokia developers. This kind of search doesn't work now, but I wish it would. Sorry for misunderstanding, my English isn't perfect.

  • Searh Help line item problem

    The number of line item in our own search help is reduced to some number. i am not able to increase that, even there no possibility to increase. How can i do that?

    hi,
    in search help u have taken a table.. and the number of enteries in table are coming  in search help.
    it depends on number of enteries in table...
    hpe it may help you.
    thanks,
    Sachin

  • Searh help for f-28

    Hi,
    I have put a search help on "Doc. Header Text" and "Assignment" fields of tcode f-28. I have attached it in the layout of the screen. But the problem is that the same screen is being used for tcode f-53 and thats why these search helps are visible there as well. I wish to ristrict search help only to F-28. Can anybody please help me with this requirement.
    Thanks in advance.
    Regards,
    Dhiraj

    Hi Raj,
    Thanks for the response, I have tried it already but the control is not going to the search help exit before the screen display.
    Guys please shower your blessings on this post, I am looking for more replies please.
    Regards,
    Dhiraj

Maybe you are looking for