Search on a LONG field

I have a table MANMESS having a LONG field (MESSAGE)
I want to search for a word e.g. "supplier" in this LONG field
When I enter the statement
select * from MANMESS where MESSAGE like '%supplier%';
it gives an error message.
I guess it is because MESSAGE is a LONG field and needs to be given special treatment
Is there an alternative to so the same task?
Thanks in Advance
Paresh

SQL> create table search_long(id number,text long);
Table created.
SQL> insert into search_long values(1,'oracle is good');
1 row created.
SQL> insert into search_long values(1,'the latest version of oracle is 10g');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from search_long where text like '%oracle%';
select * from search_long where text like '%oracle%'
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
SQL> ed
Wrote file afiedt.buf
1 create or replace function search_text(x rowid) return varchar2 is
2 temp_text varchar2(4000);
3 begin
4 select text into temp_text from search_long where rowid=x;
5 return temp_text;
6* end;
SQL> /
Function created.
SQL> select text from search_long where search_text(rowid) like '%oracle';
TEXT
oracle is good
the latest version of oracle is 10g
You have to use some alternative way while searching for LONG column
-aijaz

Similar Messages

  • DVR Search Option No Longer Works - After The Crap Upgrade

    The new software upgrade is crap. DVR search option no longer works. I can't use the search option to find my favorite programs and set the DVR to record them. It only lets me put the first letter in the search field and then nothing. I can't enter any more letters aftet that.
    Verizon sent me another DVR but it has same issues. They sent a technician to my house and he basically told me, the upgrade is crap and lots of people are having technical issues.
    He gave me another box and said it is working. Now I have three DVRs sitting in my house and I have to return two. After he left I tried to search and I have the same exact issue so basically he just lied and didn't fix anything.
    I called tech support over and over, and they just told me that they can't do anything. They basicaly admitted that the upgrade is crap and the are clueless on how to fix it. So I'm stock with 3 DVRs that don't work. Billing department told me they can't give me any discounts either.
    Anyone else is having these issues?

    Same issue here.  Sent me another box, same model as the old one.  Same exact issues.  Called Tech support back, they admitted it was a known issue, and nothing he could do about it.  Was told I had to talk to someone in SALES to get them to send me a newer box.
    New box is here, and now i have no option to record.  Oh, and last time I called tech support... I got 'disconnected' (after being on hold for 30+ minutes).  They are really dropping the ball, and I will not be renewing.

  • LONG field in OSES

    OSES has been integrated with Siebel 8.0.0.2. After indexing on "Description" (which is based on a LONG field) field, the results are not coming up, when the search is done using trailing characters in the "Description" field.
    In in the OSES_Field-Mappings the description bc field is mapped on the OSES field called description. I believe that the OSES description filed is not based on a LONG filed that is leading to the issue.
    Please let me know if there is some OSES long field that can be used in this in-name setting.
    Thank you.

    As you have noticed, you cannot reference the value of a LONG column using :old/:new in a trigger. The work around is to instead process your audit information (including the LONG value) in an after statement trigger. Here is an example to get you started:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:605685::NO::F4950_P8_DISPLAYID

  • How to delete entries from search help for a field

    hi guys
    how r u all doing.
    i have some questions for u.
    1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
    2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
    3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
    any help in this regard,wud be appreciated.
    thanks

    Follow this
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • Display Long field Description in 2 lines in Header when using REUSE_ALV_HI

    Hi,
      I am using REUSE_ALV_HIERSEQ_LIST_DISPLAY .
    I need to have 2 lines in the header to display  long field descriptions like
    Ex   Shipment Notification Idoc or Billing Document Cancel  should appear as
    Shipment Notification       Billing Document
    Idoc                                        Cancel
    Is there a way of doing this when calling the above ALV function?
    Thanks
    Prashant

    Hi Prashanta ,
    We can give headers in ALV using short/medium/long text.
    And this comes in one line. You can use short/medium text, if possible.
    Hence , having 2 lines in the header to display long field descriptions is not possible.
    Hope this helps you.

  • After updating to OSX 10.7.3, my search (spotlight) no longer works. Is there a fix for this?

    After updating to OSX 10.7.3, my search (spotlight) no longer works. Is there a fix for this?

    Have you tried going to System Preferences > Spotlight > Privacy and dragging your hard drive into the box then drag it back. That will trigger a re-index.

  • Search function no longer works after upgrading to 10.5.6

    After upgrading to 10.5.6 I noticed that the search command no longer finds anything on my connected AFP Server (OS X Server 10.3. 9). When I start a search in the finder, even though I can see the item on the screen it gives a result of zero. Is any one else out there experiencing this issue. Is there a workaround?

    Ahhh! The proverbial missing information. Thanks for clarifying. Apple always has plans to fix problems, but their timetable might not meet your expectations. I strongly suggest that you report this to Apple. Send Feedback and send bug reports and enhancement requests via its Bug Reporter system. To do the latter, join the Apple Developer Connection (ADC)—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report/enhancement request. The nice thing with this procedure over submitting feedback is that you get a response and a follow-up number; thus, starting a dialog with engineering.

  • Nokia Maps - Postcode search is no longer working

    Please help!
    The is a post on the navigation and GPS section but I wanted to see if anyone on the main forum has experienced the problem, because we cannot find a solution.
    Up until the last few days whilst online when I searched for a post code on Nokia Maps the result was the full post code location. When I did the same search offline the result was truncated. ie bp11 4re became bp11 4.
    This is pretty useless in trying to locate anything using a post code.
    Today I noticed that whether I was online or not, the post code search always produced the shortened result.
    I have now searched on line and found nothing save for the post mentioned above. I have performed a hard reset and have the latest firmware for my phone (v12) I also have the latest version of maps v1.2.
    Please can someone shed some light on why this search facility has changed. Could it be something to do with the Nokia Server?

    A late reply but in case somebody is looking:
    /t5/Nseries-and-Symbian-Smartphones/Nokia-Maps-Pos​tcode-search-is-no-longer-working/td-p/244168
    The last one suggests that a full postcode search needs an internet connection.
    This lead to a solution!
    In Maps, under Settings / General / Connection you have a choice of Online or Offline. If you have Offline then the search is limited as described, with the last two postcode characters ignored. If you have Online selected, then it works properly.
    So even though Nokia Maps are offline maps, the full postcode search is done on their server.

  • Search help for input fields in a screen

    Hi,
    Pls help me
    how to set search help property for the I/O fields in screen in se80?
    1. do we want to add any property for search help in the property window?
    2.do we want to create a MODULE PROCESS ON VALUE REQUEST ?
    PLS tell me how to set search for the I/O field in se80?pls tell me the process?
    i want to set the search help for more I/O fields in se80 but all the fields belongs to the same table?
    can i create a single search for all these fields and use that for all the I/O fields ?
    elementary search help or collective search help?
    thanks & regards in advance,
    vsnl.

    Hi,
    Input Help on the Screen
    Within the Screen Painter, you can define two types of input help:
    1. The FIELD statement with one of the additions VALUES or SELECT.
    2. Linking a search help directly to a screen field.
    If you link a search help directly to a screen field, it overrides the additions of the FIELD
    statement. However, the input check [Page 581] functions of the FIELD statement remain
    unaffected.
    Input Help in Flow Logic
    The following input help methods are obsolete and should not be used. They are still supported
    for compatibility reasons.
    In the screen flow logic, you can specify a value list for a screen field <f> as follows:
    FIELD <f> VALUES (<val1>, <val2>,...).
    The value list contains a series of single values <vali>. The NOT and BETWEEN additions for the
    input check [Page 581] are not appropriate for input help.
    You can also create a value list by accessing a database table as follows:
    FIELD <f> SELECT *
    FROM <dbtab>
    WHERE <k1> = <f1> AND <k2> = <f2> AND...
    In the WHERE condition, the fields of the primary key <ki> of the database table <dbtab> are
    checked against the screen fields <fi>. The WHENEVER addition, used with input checks [Page
    581], is not necessary for input help.
    If you have used a ABAP Dictionary reference for field <f>, the selection and the hit list formatting
    may be affected by any check table attached to the field.
    Attaching a Search Help
    Search helps from the ABAP Dictionary can be attached to a screen field [Ext.]. To do this, enter
    the name of the search help in the corresponding field in the attributes of the screen field in the
    Screen Painter. This assigns the first parameter of the search help to the screen field. It is only
    possible to place a value from the hit list onto the screen.
    Input help on a screen.
    REPORT DEMO_DYNPRO_F4_HELP_DYNPRO MESSAGE-ID AT.
    DATA: CARRIER(3) TYPE C,
    CONNECTION(4) TYPE C.
    CALL SCREEN 100.
    MODULE CANCEL INPUT.
    LEAVE PROGRAM.
    ENDMODULE.
    The next screen (statically defined) for screen 100 is itself. It has the following layout:
    602 April 2001
    Cancel
    Airline
    Flight number
    Screen field with search help
    Input help in the flow logic
    The input fields have been adopted from the program fields CARRIER and
    CONNECTION. The function code of the pushbutton is CANCEL, with function type
    E. The search help DEMO_F4_DE with the search help parameter CARRID is
    assigned to the screen field CARRIER. The search help uses the database table
    SCARR.
    The screen flow logic is as follows:
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    FIELD CARRIER VALUES ('AA', 'LH').
    FIELD CONNECTION SELECT *
    FROM SPFLI
    WHERE CARRID = CARRIER
    AND CONNID = CONNECTION.
    When the user chooses the input help for the individual fields, the following input
    help is displayed:
      For the Airline field, the search help displays the names of the airlines and places the airline
    code in the input field for the chosen line. If the airline code is not one of those listed in the
    VALUES list of the screen flow logic, the input check triggers an error message in the PAI
    event. So the search help overrides the VALUES addition for the input help, but not for the
    input checks. This is therefore not an appropriate place to use the VALUE addition.
      For the Flight number field, the flow logic displays the selected entries from the database
    table SPFLI and places the selected line in the input field.
    Regards,
    Bhaskar

  • Search help for a field in table control based on another field value

    Hi,
    I want to attach the Search help for a field in table control based on another field value.
    Please help me asap.
    Will be highly rewarded

    HI,..
      Check these links
    search help in table control
    Re: How to create Search Help for a field in Table control !!
    How to create Search Help for a field in Table control !!
    F4 Help In Table Control
    Control table F4 help
    Problem in F4 help in screen field
    check this code
    DATA: BEGIN OF it_value4 OCCURS 0,
             TEXTCODE  LIKE  ZXX-TEXTCODE,
             TEXTDESC  LIKE  ZXX-TEXTDESC,
           END OF it_value4.
      progname = sy-repid.
      dynnum   = sy-dynnr.
             SELECT TEXTCODE TEXTDESC
               FROM  xxxx
               INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
              WHERE  LOSS_CODE =<b> IT_VALUE1 .</b>
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'TEXTCODE'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'ITVALUE-TEXTCODE'  "-->UR  4 th filed value in screen
          value_org   = 'S'
        TABLES
          value_tab   = it_value4.
    endmodule.
    Message was edited by:
            veereshbabu ponnada

  • Search help for custom field in SRM

    Hi All,
    Im new to abap. I want to add(enhancement) custom input field with search help function for organization unit. I hv added input field and its displaying in portal also.
    Now i want to add f4 help. Can u please help me in this regard. Can u tell me the steps to do for adding f4 help.
    Thanks,
    Rani.

    add search help to input fields data type. or you could assign search help via structure there that field is defined. you could enhance standard code adding custom search help which is called via FM. Choose the way.
    best regards,
    dez_

  • Search Help for Custom field in Sourcing Cockpit

    Hi SRM Experts,
    I added custom field "rush order" in the Structures as per requirement. I added code in MODIFY_SCREEN function module. Search help is working for "rush order" in Process Purchase Orders (to search PO) and Check Status (Searching Shopping Cart). But it is not working in sourcing cockpit. Please guide or suggest me is there any additional settings or programming is required to have search help for custom fields in Sourcing Cockpit.
    Thanks a lot in advance.
    Thanks,
    Koyya

    Hi SRM Experts,
    Please let me know any suggestion on this issue.
    Thanks a lot in advance.
    Thanks,
    Koyya

  • Custom Search Help for the field Equipment number

    Hi,
    I have enchanced sales order transaction and included a field Equipment number(EQUI-EQUNR).
    Here after pressing F4(Search help) standard search help is display.
    I have a requirement wherein, the standard search help should not appear and a customised search where a specific Equipment category type values should appear in the search help.
    Ex. Field equipment  category (EQTYP).EQUNR(Equipment Number).
    Please let me know how to work for the customised search help.

    Hi,
    You need to create a customized search help.
    [Elementary Search Help - Structure|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee38446011d189700000e8322d00/content.htm]
    [Creating Elementary Search Helps|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee5f446011d189700000e8322d00/content.htm]
    Then you need to attach the search help to the screen field..
    [Assigning Search Helps to Screen Fields|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee93446011d189700000e8322d00/content.htm]
    [Hierarchy of Search Help Call|http://help.sap.com/saphelp_nw04/helpdata/EN/0b/32e9b798da11d295b800a0c929b3c3/content.htm]
    regards
    Nitesh

  • How do I search contacts by a field other than name (e.g. category)?

    I recently switched from Blackberry to iPhone 4, and I use my iPhone 4 primarily for business. I have a PC and use Outlook as my contacts application.
    I regularly populate my Outlook contact records with various notes, and I regularly categorize my contacts. With Blackberry I could (and regularly did) search my contacts by fields other than by contact name (e.g. words which I had entered into fields such as Notes, City, State, Company, or Category, and this was very useful. For example, if I created a category called "Accountants" and categorized 3 contacts in that category, I could search my contacts for "Accountants" on my Blackberry and it would show a list of the 3 contacts I have who are Accountants. Or if I wanted a list of all contacts who reside in Chicago so that I can put together a slate of meetings during a visit to Chicago, I could search my contacts for "Chicago" and the search would result in a list of all my contacts with "Chicago" in their record (either in location, category, or notes fields).
    With iPhone 4, so far I've only figured out how to search the name fields of my contact records, but hopefully it is possible to search other fields or the entire contact record. How do I do that?
    Thanks.

    http://www.apple.com/iphone/features/search.html

  • Search help for screen fields in module pool

    Hi All,
    I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.
    These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.
    So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .
    I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.
    I require it this way as user wants to select based on * selection.Ex: as then every this related to that should be popped up.
    Pls help ASAP
    Thanks,

    This is how i got.
    data:l_shlp type SHLP_DESCR,
    l_rc type sy-subrc,
    w_DDSHRETVAL type DDSHRETVAL ,
    ls_shintf LIKE LINE OF l_shlp-interface,
    t_DDSHRETVAL type TABLE OF DDSHRETVAL.
    DATA: dyname LIKE d020s-prog,
    dynumb LIKE d020s-dnum.
    DATA: BEGIN OF dynpfields OCCURS 3.
    INCLUDE STRUCTURE dynpread.
    DATA: END OF dynpfields.
    CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
    EXPORTING
    SHLPNAME = 'YTESTDMSSB'
    SHLPTYPE = 'SH'
    IMPORTING
    SHLP = l_shlp .
    ls_shintf-valfield = 'X'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SNNTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBRTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBSTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'ENPTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'PLANT_CODE'.
    CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
    EXPORTING
    SHLP = l_shlp
    DISPONLY = ' '
    MAXRECORDS = 500
    MULTISEL = 'X'
    CUCOL = SY-CUCOL
    CUROW = SY-CUROW
    IMPORTING
    RC = l_rc
    TABLES
    RETURN_VALUES = t_DDSHRETVAL
    IF l_rc = 0.
    LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.
    CASE w_DDSHRETVAL-fieldname.
    WHEN 'SNNTX'. "W_SNNTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SNNTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBRTX'. "W_SBRTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBRTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBSTX'. "W_SBSTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBSTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'ENPTX'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_ENPTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'PLANT_CODE'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_WERKS'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    ENDCASE.
    ENDLOOP.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = dyname
    dynumb = dynumb
    TABLES
    dynpfields = dynpfields.
    ENDIF.

Maybe you are looking for

  • OIM: Is there a way to control resource groups based on OIM Admin group

    Hi, I have a resource+target system where we provision users and groups. My requirement is to make the group assignment/de-assignment to be based on OIM's user group of the admin. For example, admins from User Group UG1 can provision certain groups t

  • Using a Third Party JDBC Driver that has dependencies [Version 2.1.1.64]

    I am trying to connect to a TRIP database (a product from Tietoenator). They offer a JDBC driver which I have already used in java applications. So I can confirm that it works. What makes that driver perhaps a bit special is that it needs 3 other jar

  • Depreciation for Days

    Hi All, In asset accounting if we wants to calculate depreciation for Years & Months we can calculate by getting option in depreciation area tab of asset master record. for e.g If situation is 7 yers & 6 months then yera column we give 7 & period col

  • Quantity upto Four decimal points

    Hi, In Easy cost planning , I want to put quantity upto 4 decimal places but system allowing only upto 3 decimal. Pl suggest. It is very urgent. rgds

  • Patch Installation

    Hi Guys, this is my first time for updating a database and unbelievable it doesn`t want to work. Today i installed GridControl 10.2.0.1 on a Sun-Fire-V215 with Solaris 5.10. Now i want to update the system to Version 10.2.0.4, but it doesn`t work. I