<?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: Problem in Select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469438#M834002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use  IN Operator instead of '=' for select-options variable in you r select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara where matnr  &lt;STRONG&gt;IN&lt;/STRONG&gt;  s_mat    ( ur select-oprion varialble ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u gave In means&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; check with all other conditions which u passing select query..&lt;/P&gt;&lt;P&gt;same manually in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;bgan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 14:25:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-26T14:25:06Z</dc:date>
    <item>
      <title>Problem in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469435#M833999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing a custom report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined a selection screen in which one field will be  Period (S003-SPBUP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This field will be a select-options field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now while retrieving data from S003 table based on selection screen, i am unable to get the desired data within the specified Period (S003-SPBUP) values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can retrieve the data manually from table by inputting the same value as i enter in the Program's selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might be the reason behind this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469435#M833999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469436#M834000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you define your select-option?&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469436#M834000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469437#M834001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK MERKMALE WITH FRAME TITLE TEXT-003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR S003-MATNR.&lt;/P&gt;&lt;P&gt;select-options: S_VKORG FOR S003-VKORG.&lt;/P&gt;&lt;P&gt;select-options: S_VTWEG FOR S003-VTWEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK MERKMALE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK MCPERIOD WITH FRAME TITLE TEXT-002.&lt;/P&gt;&lt;P&gt;select-options: S_SPBUP for S003-SPBUP.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK MCPERIOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr vkorg vtweg spbup aenetwr stwae umnetwr ummenge&lt;/P&gt;&lt;P&gt;from s003&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;where spbup in s_spbup&lt;/P&gt;&lt;P&gt;and vkorg in s_vkorg&lt;/P&gt;&lt;P&gt;and vtweg in s_vtweg&lt;/P&gt;&lt;P&gt;and matnr in s_matnr&lt;/P&gt;&lt;P&gt;and spbup in s_spbup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469437#M834001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469438#M834002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use  IN Operator instead of '=' for select-options variable in you r select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara where matnr  &lt;STRONG&gt;IN&lt;/STRONG&gt;  s_mat    ( ur select-oprion varialble ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u gave In means&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; check with all other conditions which u passing select query..&lt;/P&gt;&lt;P&gt;same manually in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;bgan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469438#M834002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469439#M834003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the select statement you have written "&lt;STRONG&gt;into corresponding fields of table itab&lt;/STRONG&gt;". Please check the internal table itab to see if it has similar names what you are retrieving from the database S003.  Check the itab if it has atleast any one of the fields with same name  as " &lt;STRONG&gt;matnr vkorg vtweg spbup aenetwr stwae umnetwr ummenge&lt;/STRONG&gt;.  This may be one reason why you are not getting the records programaticallly when records exist in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yellappa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469439#M834003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469440#M834004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the IN operator try using between option for &lt;/P&gt;&lt;P&gt;lower &amp;amp; higher limit of select-option for date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469440#M834004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469441#M834005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you write s_pbup twice in the select clause.&lt;/P&gt;&lt;P&gt;Maybe this is causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"in" should be ok and better than "between"&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 14:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-select-statement/m-p/3469441#M834005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T14:41:47Z</dc:date>
    </item>
  </channel>
</rss>

