<?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 failed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-failed/m-p/6792920#M1466256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not ask or answer basic questions - thread locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Apr 2010 15:32:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-01T15:32:26Z</dc:date>
    <item>
      <title>select statement failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-failed/m-p/6792918#M1466254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i used a select statement but in my selection screen user is not entering any lifnr value, then i am getting sy-subrc = 4.&lt;/P&gt;&lt;P&gt;I want if user also not enter any  lifnr  value in selection screen , the value should fetch.&lt;/P&gt;&lt;P&gt;is this mandatory to enter the lifnr value in selection screen?&lt;/P&gt;&lt;P&gt; SELECT matnr&lt;/P&gt;&lt;P&gt;        werks&lt;/P&gt;&lt;P&gt;        slabs&lt;/P&gt;&lt;P&gt;        FROM  mkol&lt;/P&gt;&lt;P&gt;        INTO  TABLE gt_mkol&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN gt_marc&lt;/P&gt;&lt;P&gt;        WHERE matnr = gt_marc-matnr&lt;/P&gt;&lt;P&gt;          AND werks = gt_marc-werks.&lt;/P&gt;&lt;P&gt;           AND lifnr = so_lifnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 15:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-failed/m-p/6792918#M1466254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: select statement failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-failed/m-p/6792919#M1466255</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;It not necessary to get the values from the user in the selection screen field..however if you want to run your query then you will have to use an OR condition in the where clause..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select x y x from &amp;lt;table name &amp;gt; into &amp;lt;table name&amp;gt;&lt;/P&gt;&lt;P&gt;for all enteries in &amp;lt;table name&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;field 1&amp;gt; =/IN (in case of select options) &amp;lt;the field on the screen&amp;gt; OR &amp;lt;field 1&amp;gt; = some field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the better solution will be to give a default value for your screen field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 15:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-failed/m-p/6792919#M1466255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: select statement failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-failed/m-p/6792920#M1466256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not ask or answer basic questions - thread locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 15:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-failed/m-p/6792920#M1466256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T15:32:26Z</dc:date>
    </item>
  </channel>
</rss>

