<?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: string field selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460055#M831332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U cannot use offset condition while selecting data from a table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting data .. filter according to your condition ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from table into itab ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where FIELD1+0(5) = '00005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 13:53:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T13:53:49Z</dc:date>
    <item>
      <title>string field selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460053#M831330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a database table 'TABLE' with field 'FIELD1' whose length is 10 with a value for eg. '0000542342'.   I need  to select this record from the table using the value '00005'.  How can I build a select statement to select this record?&lt;/P&gt;&lt;P&gt;I tried using,&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM TABLE WHERE FIELD1+0(5) = '00005'.&lt;/P&gt;&lt;P&gt;But I am getting a syntax error on this statement.  Is there any way to specifically select only a part of the field from the table?&lt;/P&gt;&lt;P&gt;(we are on version 45B)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460053#M831330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: string field selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460054#M831331</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;   Check the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM &amp;lt;TABLE&amp;gt; INTO &amp;lt;WA&amp;gt;  WHERE FIELD1 LIKE '00005*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460054#M831331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: string field selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460055#M831332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U cannot use offset condition while selecting data from a table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting data .. filter according to your condition ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from table into itab ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where FIELD1+0(5) = '00005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460055#M831332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: string field selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460056#M831333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : itab LIKE STANDARD TABLE OF vbap WITH HEADER LINE.

SELECT  * INTO TABLE itab
          FROM vbap
          WHERE vbeln LIKE '00005%'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-field-selection/m-p/3460056#M831333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:56:43Z</dc:date>
    </item>
  </channel>
</rss>

