<?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 Querry, in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310762#M506106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;should something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_erdat[] is initial.&lt;/P&gt;&lt;P&gt;  Select * from zpmtras into itab &lt;/P&gt;&lt;P&gt;Where erdat = sy-datum.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Select * from zpmtras into itab &lt;/P&gt;&lt;P&gt;Where erdat in s_erdat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 15:16:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T15:16:55Z</dc:date>
    <item>
      <title>Select Querry,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310760#M506104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have date field in my selection screen.&lt;/P&gt;&lt;P&gt;When the user inputs date it should pick records for that date else it should pick for the current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My querry is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from zpmtras into itab &lt;/P&gt;&lt;P&gt;Where ( erdat = sy-datum ) or ( erdat in s_erdat  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is right and what are the changes that I should make&lt;/P&gt;&lt;P&gt;Ster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 15:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310760#M506104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select Querry,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310761#M506105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ster,&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;if s_erdat[] is initial.&lt;/P&gt;&lt;P&gt;Select * from zpmtras into itab Where erdat = sy-datum.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;Select * from zpmtras into itab Where  erdat in s_erdat.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 15:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310761#M506105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T15:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select Querry,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310762#M506106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;should something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_erdat[] is initial.&lt;/P&gt;&lt;P&gt;  Select * from zpmtras into itab &lt;/P&gt;&lt;P&gt;Where erdat = sy-datum.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Select * from zpmtras into itab &lt;/P&gt;&lt;P&gt;Where erdat in s_erdat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 15:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310762#M506106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T15:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select Querry,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310763#M506107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF v_date[] is initial.&lt;/P&gt;&lt;P&gt;v_date = sy-datum.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select 8 from &amp;lt;table&amp;gt; where date = v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 15:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310763#M506107</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-05-14T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select Querry,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310764#M506108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 15:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310764#M506108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T15:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select Querry,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310765#M506109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ster,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to separate the date criteria based upon whether the user enters data in the selection screen or not. Currently if the user does not enter data the query will retrieve all the data from the Z table in the database. Your code should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF NOT s_erdat[] IS INITIAL.
  SELECT &amp;lt;field list&amp;gt;
  FROM zpmtras
  INTO TABLE itab
  WHERE erdat IN s_erdat.
ELSE.
  SELECT &amp;lt;field list&amp;gt;
    FROM zpmtras
    INTO TABLE itab
    WHERE erdat EQ sy-datum.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 15:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry/m-p/2310765#M506109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T15:20:46Z</dc:date>
    </item>
  </channel>
</rss>

