<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help with my select statement... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086913#M99659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to modify a part in my program(Dialog programming) in which when a user enters any text in the input box it will search existing records according to what the user typed. for example, I type the letter 'a' and it will search for all records containing the letter 'a'. but my problem is for example, I typed the word 'ACTION' so the search results must only contain the words action but it also outputs other records in which the word 'ACTION' is non existent.Below is the SQL statement that I made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_SEARCH(30) TYPE C,    "name of the input box&lt;/P&gt;&lt;P&gt;      X_SEARCH(30) TYPE C.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE '%' V_SEARCH '%'&lt;/P&gt;&lt;P&gt;INTO X_SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_SEARCH IS INITIAL.&lt;/P&gt;&lt;P&gt;   MESSAGE I001.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   SELECT *&lt;/P&gt;&lt;P&gt;   FROM ZMOVIES&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE IT_ZMOVIES&lt;/P&gt;&lt;P&gt;      WHERE TITLE LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      GENRE LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      YEAR_RELEASED LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      CASTS LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      PRODUCER LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      DIRECTOR LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      REVIEW LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      SYNOPSIS LIKE X_SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND IT_ZMOVIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If guys have a more efficient way to this please let me know and also, how can I do wild card search?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2005 05:36:08 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2005-12-12T05:36:08Z</dc:date>
    <item>
      <title>Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086913#M99659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to modify a part in my program(Dialog programming) in which when a user enters any text in the input box it will search existing records according to what the user typed. for example, I type the letter 'a' and it will search for all records containing the letter 'a'. but my problem is for example, I typed the word 'ACTION' so the search results must only contain the words action but it also outputs other records in which the word 'ACTION' is non existent.Below is the SQL statement that I made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_SEARCH(30) TYPE C,    "name of the input box&lt;/P&gt;&lt;P&gt;      X_SEARCH(30) TYPE C.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE '%' V_SEARCH '%'&lt;/P&gt;&lt;P&gt;INTO X_SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_SEARCH IS INITIAL.&lt;/P&gt;&lt;P&gt;   MESSAGE I001.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   SELECT *&lt;/P&gt;&lt;P&gt;   FROM ZMOVIES&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE IT_ZMOVIES&lt;/P&gt;&lt;P&gt;      WHERE TITLE LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      GENRE LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      YEAR_RELEASED LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      CASTS LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      PRODUCER LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      DIRECTOR LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      REVIEW LIKE X_SEARCH&lt;/P&gt;&lt;P&gt;   OR&lt;/P&gt;&lt;P&gt;      SYNOPSIS LIKE X_SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND IT_ZMOVIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If guys have a more efficient way to this please let me know and also, how can I do wild card search?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 05:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086913#M99659</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2005-12-12T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086914#M99660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think your select will be very efficient but it should 'work'.... are you maybe not clearing the internal table between selects so the table is being appended to each time? Put a refresh in just after the else and before the select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 05:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086914#M99660</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2005-12-12T05:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086915#M99661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are not using the sy-subrc statement after the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append statement will append the details in the internal table even if sy-subrc had returned you 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will also increase your program performance in the ABAP side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Maheswaran.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 05:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086915#M99661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T05:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086916#M99662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Try using CONDENSE statement for X_Search before the Select statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sridhar Reddy k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 05:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086916#M99662</guid>
      <dc:creator>sridharreddy_kondam</dc:creator>
      <dc:date>2005-12-12T05:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086917#M99663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also the append is unnecessary.. the select into table fills the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 06:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086917#M99663</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2005-12-12T06:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086918#M99664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of using variable x_search ..try using direct value ie %search% in the select query..it may help u with selecting all those records having search as the key and also append stat is not necessary!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if it helps!@@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 06:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086918#M99664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T06:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086919#M99665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using string relational operators like &lt;/P&gt;&lt;P&gt;CO (Contains Only)&lt;/P&gt;&lt;P&gt;CS (Contains String)&lt;/P&gt;&lt;P&gt;CP (Contains Pattern)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points if this helps!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 06:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086919#M99665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T06:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086920#M99666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use relational operators in my statement? I think your suggestion would be very helpful if I get it right. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 07:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086920#M99666</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2005-12-12T07:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086921#M99667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try and use like this.&lt;/P&gt;&lt;P&gt;   declare a range say r_range.&lt;/P&gt;&lt;P&gt;   r_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;   r_range-option = 'CP'.&lt;/P&gt;&lt;P&gt;   r_range-low = '&lt;STRONG&gt;ACTION&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;   append r_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   and use this in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 09:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086921#M99667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T09:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086922#M99668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think u can use the CP as follows:&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ZMOVIES&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_ZMOVIES.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;sort it_zmovies.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear it_zmovies.&lt;/P&gt;&lt;P&gt;loop at it_zmovies.&lt;/P&gt;&lt;P&gt;if it_zmovies-title cs v_search.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward points by clickin on star if this helps!!&lt;/P&gt;&lt;P&gt;Good Luck!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajeev SM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 12:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086922#M99668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T12:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086923#M99669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi viray try this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood ur scenario.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I ve used two kind of search one for index search and another for key word search&lt;/P&gt;&lt;P&gt;Index search is used to retrive all the records starting from the alphabet provided by the user.&lt;/P&gt;&lt;P&gt;Keyword search will rerive all records based on the keyword specified by the user.&lt;/P&gt;&lt;P&gt;I used two radiobuttons to select for keyword search and index search.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSAMPNEW1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title t1.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Parameters indx radiobutton group g1." index search&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;parameters alphabet(1) type c.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Parameters key radiobutton group g1." keyword search&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;parameters keyword(15) type c.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data alphabet1(20).&lt;/P&gt;&lt;P&gt;data keyword1(30).&lt;/P&gt;&lt;P&gt;data it_zmovies like zmovies occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if indx = 'X'.&lt;/P&gt;&lt;P&gt;write: 'index search'.&lt;/P&gt;&lt;P&gt;write:/ .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONCATENATE alphabet '%'&lt;/P&gt;&lt;P&gt;INTO alphabet1." use only one  '%' for index search&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;write:/ 'list from table for', alphabet.&lt;/P&gt;&lt;P&gt;write:/ .&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ZMOVIES&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_ZMOVIES&lt;/P&gt;&lt;P&gt;WHERE TITLE like alphabet1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;GENRE LIKE alphabet1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;CASTS LIKE alphabet1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;PRODUCER LIKE alphabet1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;DIRECTOR LIKE alphabet1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;if not it_zmovies[] is initial.&lt;/P&gt;&lt;P&gt;loop at it_zmovies.&lt;/P&gt;&lt;P&gt;write:/ it_zmovies.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if key = 'X'.&lt;/P&gt;&lt;P&gt;write: 'keyword serach'.&lt;/P&gt;&lt;P&gt;write:/ .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONCATENATE '%'keyword '%'&lt;/P&gt;&lt;P&gt;INTO keyword1."use two '%' for keyword search&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;write:/ 'for the keyword',keyword.&lt;/P&gt;&lt;P&gt;write:/ .&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ZMOVIES&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_ZMOVIES&lt;/P&gt;&lt;P&gt;WHERE TITLE like keyword1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;GENRE LIKE keyword1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;CASTS LIKE keyword1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;PRODUCER LIKE keyword1&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;DIRECTOR LIKE keyword1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;if not it_zmovies[] is initial.&lt;/P&gt;&lt;P&gt;loop at it_zmovies.&lt;/P&gt;&lt;P&gt;write:/ it_zmovies.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the following results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e indexsearch=a                                              &lt;/P&gt;&lt;P&gt;ARMY      ACTION    TOM       BOB       WILS    &lt;/P&gt;&lt;P&gt;KINGKONG  ADVENTURE JILL      ERYU      ERT     &lt;/P&gt;&lt;P&gt;BANED     HUMOUR    CHARLIE   ERT       ASD  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e keyword search=act&lt;/P&gt;&lt;P&gt;ARMY      ACTION    TOM       BOB       WILS       &lt;/P&gt;&lt;P&gt;ARMAGADON ACTION    ARNOLD    WERT      YERTV   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 13:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086923#M99669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T13:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with my select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086924#M99670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've gone through ur code. some points are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u have &amp;lt;b&amp;gt;corresponding entries into table opt&amp;lt;/b&amp;gt;ion in ur select, u need not again use append clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though ur code seems to be bit heavy but it works and gives the results as required. i have checked it with all the cases u were talking and got results as expected. the code i tried with ur code only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: v_search(30) TYPE c. "name of the input box&lt;/P&gt;&lt;P&gt;DATA:  x_search(30) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt; it_zmovies LIKE zmovies OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE '%' v_search '%'&lt;/P&gt;&lt;P&gt;INTO x_search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF v_search IS INITIAL.&lt;/P&gt;&lt;P&gt;  MESSAGE i001(45).&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;    FROM zmovies&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE it_zmovies&lt;/P&gt;&lt;P&gt;   WHERE title LIKE x_search          OR&lt;/P&gt;&lt;P&gt;         genre LIKE x_search          OR&lt;/P&gt;&lt;P&gt;         year_released LIKE x_search  OR&lt;/P&gt;&lt;P&gt;         casts LIKE x_search          OR&lt;/P&gt;&lt;P&gt;         producer LIKE x_search       OR&lt;/P&gt;&lt;P&gt;         director LIKE x_search       OR&lt;/P&gt;&lt;P&gt;         review LIKE x_search         OR&lt;/P&gt;&lt;P&gt;         synopsis LIKE x_search.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_zmovies.&lt;/P&gt;&lt;P&gt;  WRITE:/ it_zmovies-title.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye &lt;/P&gt;&lt;P&gt;Lakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 14:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-my-select-statement/m-p/1086924#M99670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T14:06:07Z</dc:date>
    </item>
  </channel>
</rss>

