<?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 Substring in SELECT Statemen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377746#M184971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I need to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bukrs      &lt;/P&gt;&lt;P&gt;from ce1xx00             &lt;/P&gt;&lt;P&gt;into v_bukrs             &lt;/P&gt;&lt;P&gt;where prctr+2(2) = 'ab'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is telling me prctr+2(2) is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? I'm doing this in an RFC call and is not affordable to bring all the data from the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2006 21:36:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-28T21:36:23Z</dc:date>
    <item>
      <title>Substring in SELECT Statemen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377746#M184971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I need to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bukrs      &lt;/P&gt;&lt;P&gt;from ce1xx00             &lt;/P&gt;&lt;P&gt;into v_bukrs             &lt;/P&gt;&lt;P&gt;where prctr+2(2) = 'ab'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is telling me prctr+2(2) is not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? I'm doing this in an RFC call and is not affordable to bring all the data from the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 21:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377746#M184971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T21:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in SELECT Statemen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377747#M184972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott, you can try to use a wildcard.  Check this sample program.  It will retrieve all program names that the 2nd and 3rd positions = 'RI'.  I believe this is the type of functionality that you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: itab type table of trdir with header line.

select * into table itab from trdir
              &amp;lt;b&amp;gt;where name like '_RI%'.&amp;lt;/b&amp;gt;
  check sy-subrc  = 0.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 21:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377747#M184972</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-28T21:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in SELECT Statemen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377748#M184973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in your case....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select single bukrs 
from ce1xx00 
into v_bukrs 
where prctr  = '__ab%'. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to use upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select single bukrs 
from ce1xx00 
into v_bukrs 
where prctr  = '__AB%'. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 22:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377748#M184973</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-28T22:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in SELECT Statemen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377749#M184974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appollogize for not document all the case from the begining. Table xxx have two fields yyy and zzz. yyy always have 4 letters and zzz have 6. the chars 2 to 6 must be equals to field yyyy. Because of a bug, there are some items that are not consistent. So I need to ask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where zzz+2(4) ne yyy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 22:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377749#M184974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T22:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Substring in SELECT Statemen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377750#M184975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this is a completely different requirement.  Not sure that you can accomplish it with a single select statement.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 22:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substring-in-select-statemen/m-p/1377750#M184975</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-28T22:13:40Z</dc:date>
    </item>
  </channel>
</rss>

