<?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 Re: SELECT command using String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427818#M1410370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant - what is it about the code that you have written that doesn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 13:56:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-30T13:56:01Z</dc:date>
    <item>
      <title>SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427815#M1410367</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;How can I do to select data using string with range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;srch_strA = notcr-low.
srch_strb = notcr-high.

* Building selection
IF srch_strA IS NOT INITIAL AND srch_strB IS INITIAL.
  CONCATENATE '%' srch_strA '%' INTO srch_strA.

*document header
  SELECT bukrs belnr gjahr bktxt bldat xblnr 
    FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
    WHERE bukrs EQ p_bukrs AND
          belnr IN belnr AND
          gjahr EQ p_gjahr
          AND xblnr IN xblnr
          AND BKTXT LIKE srch_strA.

ENDIF.

IF srch_strA NE '' AND srch_strB NE ''.
  CONCATENATE '*' srch_strA '*' INTO srch_strA.
  CONCATENATE '*' srch_strB '*' INTO srch_strB.

  ti_nc-sign    =  'I'.
  ti_nc-option  =  'BT'.
  ti_nc-low     =  srch_strA.
  ti_nc-high    =  srch_strB.
  append ti_nc. clear ti_nc.

*document header
  SELECT bukrs belnr gjahr bktxt bldat xblnr 
  FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
    WHERE bukrs EQ p_bukrs AND
          belnr IN belnr AND
          gjahr EQ p_gjahr
          AND xblnr IN xblnr
          AND BKTXT IN ti_nc.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please use code tags around your code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Nov 27, 2009 5:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 22:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427815#M1410367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T22:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427816#M1410368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 22:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427816#M1410368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T22:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427817#M1410369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to make a data selection but field is an string, if user put just one parameter is OK, but I need to let open range parameter selection (string) , charaters searched are in first 9 position of the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 13:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427817#M1410369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T13:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427818#M1410370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant - what is it about the code that you have written that doesn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 13:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427818#M1410370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427819#M1410371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this line in Select Command           &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AND BKTXT IN ti_nc&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answering&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427819#M1410371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427820#M1410372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think he is trying to make a range of pattern &amp;amp; the SELECT does not seem to return the correct values &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to replicate the same &amp;amp; gives wierd results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;In T001, i have 10 comp codes starting with 12&lt;STRONG&gt;. In SE16 if i give the input BUKRS = 12&lt;/STRONG&gt; to 12&lt;STRONG&gt;, it tells no values available. But if i give the input as 12&lt;/STRONG&gt; to 13* i get all the 10 values.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427820#M1410372</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-11-30T14:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427821#M1410373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While building the range internal table, change the option for BT to CP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 ti_nc-sign    =  'I'.
  ti_nc-option  =  'CP'.      " This is what you have to use for the functionality you expect
  ti_nc-low     =  srch_strA.
  ti_nc-high    =  srch_strB.
  append ti_nc. clear ti_nc.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427821#M1410373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427822#M1410374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what is the problem with that line - a syntax error, a dump, incorrect output something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the content of ti_nc at execution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427822#M1410374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427823#M1410375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read through SAP documentation for the OPTION of a SELECT-OPTION &amp;amp; it says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP" and "NP" if column high is initial, and "BT", "NB" if column high is not initial. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my understanding is you cannot use CP with low &amp;amp; high values. May be i am wrong &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427823#M1410375</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-11-30T14:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427824#M1410376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't aware of that. If the documentation tells that then it must be true:) It also really doesn't make sense to use a high option when searching for patterns. If the OP is looking to search for patterns, he shouldn't fill the high value as pointed by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427824#M1410376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427825#M1410377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok   Vikranth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll change it and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for answering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427825#M1410377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427826#M1410378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the WHERE clause help. You can use something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: mywhere TYPE string.
RANGES: r_range FOR table-field2.

* define your range
...
* continue

mywhere = 'field = condition AND field2 IN r_range'.

SELECT field_list
  INTO destination
  FROM table
  WHERE (mywhere).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427826#M1410378</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2009-11-30T14:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427827#M1410379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tokio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the high option should be initial when searching for patterns using CP option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427827#M1410379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427828#M1410380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a research with this issue I found that the concatenate statements you are using is giving problems...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE '&lt;STRONG&gt;' srch_strA '&lt;/STRONG&gt;' INTO srch_strA.&lt;/P&gt;&lt;P&gt;  CONCATENATE '&lt;STRONG&gt;' srch_strB '&lt;/STRONG&gt;' INTO srch_strB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you replace them with the below, i hope you get some output from them,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE srch_strA '*' INTO srch_strA.&lt;/P&gt;&lt;P&gt;  CONCATENATE srch_strB '*' INTO srch_strB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I could find because in select query the first character * is not accepted, I dont know the reason...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427828#M1410380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427829#M1410381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys I'll test and let you know... in few minutes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 14:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427829#M1410381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T14:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427830#M1410382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made these changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- Please note that the high option should be initial when searching for patterns using CP option.  I did it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE '&lt;STRONG&gt;' srch_strA '&lt;/STRONG&gt;' INTO srch_strA.&lt;/P&gt;&lt;P&gt;CONCATENATE '&lt;STRONG&gt;' srch_strB '&lt;/STRONG&gt;' INTO srch_strB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE srch_strA '*' INTO srch_strA.&lt;/P&gt;&lt;P&gt;CONCATENATE srch_strB '*' INTO srch_strB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still getting all records... is there something I miss? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 15:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427830#M1410382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T15:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427831#M1410383</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;Pls. use this code and check if its working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;srch_strA = notcr-low.
srch_strb = notcr-high.
 
* Building selection
IF srch_strA IS NOT INITIAL AND srch_strB IS INITIAL.
  CONCATENATE '%' srch_strA '%' INTO srch_strA.
 
*document header
  SELECT bukrs belnr gjahr bktxt bldat xblnr 
    FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
    WHERE bukrs EQ p_bukrs AND
          belnr IN belnr AND
          gjahr EQ p_gjahr
          AND xblnr IN xblnr
          AND BKTXT LIKE srch_strA.
 
ENDIF.
 
IF srch_strA NE '' AND srch_strB NE ''.
  CONCATENATE srch_strA '*' INTO srch_strA.
  CONCATENATE srch_strB '*' INTO srch_strB.
 
  ti_nc-sign    =  'I'.
  ti_nc-option  =  'BT'.
  ti_nc-low     =  srch_strA.
  ti_nc-high    =  srch_strB.
  append ti_nc. clear ti_nc.
 
*document header
  SELECT bukrs belnr gjahr bktxt bldat xblnr 
  FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
    WHERE bukrs EQ p_bukrs AND
          belnr IN belnr AND
          gjahr EQ p_gjahr
          AND xblnr IN xblnr
          AND BKTXT IN ti_nc.
 
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 15:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427831#M1410383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T15:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT command using String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427832#M1410384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for your very helpfull answers!!!&lt;/P&gt;&lt;P&gt;Siddharth your help solve it!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 17:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-string/m-p/6427832#M1410384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T17:49:01Z</dc:date>
    </item>
  </channel>
</rss>

