<?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... where... question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723914#M632043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mahesh and Alvaro...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data w_ad(4) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate w_ad '%' into w_ad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bktxt&lt;/P&gt;&lt;P&gt;into w_bktxt&lt;/P&gt;&lt;P&gt;from bkpf&lt;/P&gt;&lt;P&gt;where bktxt like w_ad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if w_ad is '123 ' the select will be sy-subrc = 4 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2007 21:31:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-22T21:31:00Z</dc:date>
    <item>
      <title>Select... where... question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723911#M632040</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;We need to do a select single only for a part of a field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bktxt&lt;/P&gt;&lt;P&gt;  into w_bktxt&lt;/P&gt;&lt;P&gt;  from bkpf&lt;/P&gt;&lt;P&gt;  where bktxt(4) eq '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 21:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723911#M632040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T21:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select... where... question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723912#M632041</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 cannot use the offset specification for a database field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rather u try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bktxt&lt;/P&gt;&lt;P&gt;into w_bktxt&lt;/P&gt;&lt;P&gt;from bkpf&lt;/P&gt;&lt;P&gt;where bktxt like '1234%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 21:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723912#M632041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T21:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select... where... question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723913#M632042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
select single bktxt
into w_bktxt
from bkpf
where bktxt like '1234%'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 21:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723913#M632042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T21:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select... where... question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723914#M632043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mahesh and Alvaro...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data w_ad(4) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate w_ad '%' into w_ad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bktxt&lt;/P&gt;&lt;P&gt;into w_bktxt&lt;/P&gt;&lt;P&gt;from bkpf&lt;/P&gt;&lt;P&gt;where bktxt like w_ad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if w_ad is '123 ' the select will be sy-subrc = 4 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 21:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723914#M632043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select... where... question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723915#M632044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Can i do this?&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt; data w_ad(4) type c.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; concatenate w_ad '%' into w_ad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, the code it's ok -:) But w_ad must have a value first -;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_ad = '123'.&lt;/P&gt;&lt;P&gt;concatenate w_ad '%' into w_ad.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; and then&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; select single bktxt&lt;/P&gt;&lt;P&gt;&amp;gt; into w_bktxt&lt;/P&gt;&lt;P&gt;&amp;gt; from bkpf&lt;/P&gt;&lt;P&gt;&amp;gt; where bktxt like w_ad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes...It can be done that way...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; if w_ad is '123 ' the select will be sy-subrc = 4 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;%&amp;lt;/b&amp;gt; works like this....123% is equal as saying....123(and every number)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you perform your SELECT and the value stored in the DB is 123, the SY-SUBRC is going to 0...But if the value stored in the DB is for example 132, then the SY-SURBC is going to be 4 -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 21:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723915#M632044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T21:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select... where... question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723916#M632045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes if you have w_ad defined with length 5 and default it to 1234.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data w_ad(5) type c value '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate w_ad '%' into w_ad&lt;/P&gt;&lt;P&gt;condense w_ad no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bktxt&lt;/P&gt;&lt;P&gt;into w_bktxt&lt;/P&gt;&lt;P&gt;from bkpf&lt;/P&gt;&lt;P&gt;where bktxt like w_ad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will bring any document that has a BKTXT value that starts with 1234&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 21:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-question/m-p/2723916#M632045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T21:39:13Z</dc:date>
    </item>
  </channel>
</rss>

