<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355578#M1037026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Unfortunately open sql does not provide this flexibility.&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;Where&lt;/P&gt;&lt;P&gt;xblnr NE awkey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we cannot write like the above in select query,&lt;/P&gt;&lt;P&gt;bcos the right side of the equation, we cannot&lt;/P&gt;&lt;P&gt;use the table field itself. It should be some value or variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XBLNR contains not any '0123456789'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At most we can use &lt;/P&gt;&lt;P&gt;XBLNR LIKE '%0123456789%'&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;XBLNR Not LIKE '%0123456789%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not sure whether it will give the same meaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2008 10:06:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-18T10:06:40Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355577#M1037025</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;here is my issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on bkpf i want to select BUKRS BELNR GJAHR XBLNR AWKEY&lt;/P&gt;&lt;P&gt;here is my where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bkpf-xblnr NE bkpf-awkey&lt;/P&gt;&lt;P&gt;and bkpf-xblnr NA '0123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean tosay xblnr data in bkpf should not be equal to AWKEY  data in BKPF itself and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XBLNR contains not any '0123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now how to write my select statement with the above where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select all my data based on bukrs on bkpf and laget i can put these statements as if conditions but there is huge performance issue because i dont have proper fields in selection scree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have to put them in the where claue of selet itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ram reddy on Aug 18, 2008 12:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 10:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355577#M1037025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355578#M1037026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Unfortunately open sql does not provide this flexibility.&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;Where&lt;/P&gt;&lt;P&gt;xblnr NE awkey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we cannot write like the above in select query,&lt;/P&gt;&lt;P&gt;bcos the right side of the equation, we cannot&lt;/P&gt;&lt;P&gt;use the table field itself. It should be some value or variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XBLNR contains not any '0123456789'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At most we can use &lt;/P&gt;&lt;P&gt;XBLNR LIKE '%0123456789%'&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;XBLNR Not LIKE '%0123456789%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not sure whether it will give the same meaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 10:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355578#M1037026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T10:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355579#M1037027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wt are the selection screen fields do you have...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 10:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355579#M1037027</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-08-18T10:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355580#M1037028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: your gt_bkpf has the following fields &lt;/P&gt;&lt;P&gt;BUKRS &lt;/P&gt;&lt;P&gt;BELNR &lt;/P&gt;&lt;P&gt;GJAHR &lt;/P&gt;&lt;P&gt;XBLNR &lt;/P&gt;&lt;P&gt;AWKEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare another internal table of same type.&lt;/P&gt;&lt;P&gt;eg: gt_bkpf1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BUKRS BELNR GJAHR XBLNR AWKEY&lt;/P&gt;&lt;P&gt;into gt_bkpf where &amp;lt;Specify conditions here.&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_bkpf into wa_bkpf where xblnr &amp;lt;&amp;gt; awkey.&lt;/P&gt;&lt;P&gt;append wa_bkpf to gt_bkpf1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you perform depending select-statments using gt_bkpf1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santosh Kumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 11:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4355580#M1037028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T11:36:15Z</dc:date>
    </item>
  </channel>
</rss>

