<?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: Simple Select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689596#M303195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need to go to the database to check this, right?  You can probably just use a range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges: r_bukrs for t001-bukrs.

r_bukrs-sign = 'I'.
r_bukrs-option = 'CP'.
r_bukrs-low  = 'IN*'.
append r_bukrs.

If p_bukrs in r_bukrs.

Endif.&lt;/CODE&gt;&lt;/PRE&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>Thu, 09 Nov 2006 17:08:42 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-11-09T17:08:42Z</dc:date>
    <item>
      <title>Simple Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689594#M303193</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;I have a Z table entry with the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compnay code&lt;/P&gt;&lt;P&gt;IN*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a select statement to check whether the given company code in screen is valid or not with this table. Like if user entered IN01 then its valid. If GB01 then invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from ztable where bukrs cp  p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CP is allowed in select command..How can I use select statement here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear, do let me know if in detail!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 17:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689594#M303193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689595#M303194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use LIKE 'IN%' in the WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 17:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689595#M303194</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-11-09T17:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689596#M303195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need to go to the database to check this, right?  You can probably just use a range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges: r_bukrs for t001-bukrs.

r_bukrs-sign = 'I'.
r_bukrs-option = 'CP'.
r_bukrs-low  = 'IN*'.
append r_bukrs.

If p_bukrs in r_bukrs.

Endif.&lt;/CODE&gt;&lt;/PRE&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>Thu, 09 Nov 2006 17:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689596#M303195</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T17:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689597#M303196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than using a parameter on the select screen, use a select-option. This will allow you to write:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE * FROM ztable
  WHERE bukrs IN s_bukrs.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 17:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689597#M303196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T17:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689598#M303197</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: T001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: P_BUKRS FOR T001-BUKRS NO INTERVALS NO-EXTENSION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT P_BUKRS[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM T001 WHERE BUKRS IN P_BUKRS.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE E208(00) WITH 'NOT A VALID COMPANY CODE'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 17:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-select/m-p/1689598#M303197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T17:11:23Z</dc:date>
    </item>
  </channel>
</rss>

