<?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 Select Where condition proble in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134839#M1190168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam doing a report , where  i  need to fetch data from &lt;/P&gt;&lt;P&gt;PA30 and display in ALV format,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with basic conditions like&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Emp no within select option&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and Start Date and End Date from the parameters .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My problem is if i comment the begda and endda in select option&lt;/P&gt;&lt;P&gt;its fetching data&lt;/P&gt;&lt;P&gt;but if i dont its not populating any values &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ie. its not satisfying my begda and endda criteria ...y is it so&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;my SELECT STATEMENT&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  pernr begda endda rtamt from pa0581&lt;/P&gt;&lt;P&gt;        into corresponding fields of table it_pa0581&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;where pernr in so_pernr and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;begda = pr_begda  and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;endda = pr_endda .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankx in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rachel Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2009 07:19:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-23T07:19:15Z</dc:date>
    <item>
      <title>Select Where condition proble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134839#M1190168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam doing a report , where  i  need to fetch data from &lt;/P&gt;&lt;P&gt;PA30 and display in ALV format,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with basic conditions like&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Emp no within select option&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and Start Date and End Date from the parameters .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My problem is if i comment the begda and endda in select option&lt;/P&gt;&lt;P&gt;its fetching data&lt;/P&gt;&lt;P&gt;but if i dont its not populating any values &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ie. its not satisfying my begda and endda criteria ...y is it so&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;my SELECT STATEMENT&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  pernr begda endda rtamt from pa0581&lt;/P&gt;&lt;P&gt;        into corresponding fields of table it_pa0581&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;where pernr in so_pernr and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;begda = pr_begda  and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               &lt;STRONG&gt;endda = pr_endda .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankx in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rachel Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 07:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134839#M1190168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T07:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where condition proble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134840#M1190169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to modify the conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...begda &amp;gt;= pr_begda and
endda &amp;lt;= pr_endda .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 07:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134840#M1190169</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2009-01-23T07:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where condition proble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134841#M1190170</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;Select pernr begda endda rtamt from pa0581&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_pa0581&lt;/P&gt;&lt;P&gt;where pernr in so_pernr and&lt;/P&gt;&lt;P&gt;begda in pr_begda and&lt;/P&gt;&lt;P&gt;endda in pr_endda .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you declare parameters in selection screen and if its value is space &lt;/P&gt;&lt;P&gt;then your sy-subrc will fail for select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 07:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134841#M1190170</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-01-23T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where condition proble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134842#M1190171</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 cannot find anything wrong with ur select statement.Try ou these&lt;/P&gt;&lt;P&gt;1.Check for the selection criteria ur entering values are there ion the infotype&lt;/P&gt;&lt;P&gt;2.Check whether ur table begda,endda fields and the field in the parameter are of same type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 07:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134842#M1190171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T07:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where condition proble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134843#M1190172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u so much for your timely help by responding ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 07:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-where-condition-proble/m-p/5134843#M1190172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T07:32:23Z</dc:date>
    </item>
  </channel>
</rss>

