<?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 on MBEW problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525397#M848074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Aren't u getting output or aren't u getting output in the desired order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 06:44:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T06:44:05Z</dc:date>
    <item>
      <title>Select on MBEW problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525393#M848070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;I am retriving the data from MBEW Table based on Material (MATNR) ,Fiscal year of current period (LFGJA), Current period (posting period) (LFMON).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to retrive all the data from table where material is equal to given material and Fiscal year of current period(LFGJA) is less then or equal to given value, and Current period (posting period) (LFMON) less then or equal to given value. but it is not fetching the data.&lt;/P&gt;&lt;P&gt;the query is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT matnr&lt;/P&gt;&lt;P&gt;         bwkey&lt;/P&gt;&lt;P&gt;         bwtar&lt;/P&gt;&lt;P&gt;         lbkum&lt;/P&gt;&lt;P&gt;         salk3&lt;/P&gt;&lt;P&gt;         verpr&lt;/P&gt;&lt;P&gt;         lfmon&lt;/P&gt;&lt;P&gt;    INTO TABLE gt_mbew&lt;/P&gt;&lt;P&gt;    FROM mbew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   WHERE matnr = 'XXXXX'&lt;/P&gt;&lt;P&gt;     AND lfgja LE '2008'&lt;/P&gt;&lt;P&gt;     AND lfmon LE '01'.&lt;/P&gt;&lt;P&gt;with the above query i want to get the data wich is less then or equal to given value. I mean It shout retrive first 01/2008, then 12/2007,11/2007,10/2007.....&lt;/P&gt;&lt;P&gt;how to  do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525393#M848070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select on MBEW problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525394#M848071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;bwkey&lt;/P&gt;&lt;P&gt;bwtar&lt;/P&gt;&lt;P&gt;lbkum&lt;/P&gt;&lt;P&gt;salk3&lt;/P&gt;&lt;P&gt;verpr&lt;/P&gt;&lt;P&gt;lfmon&lt;/P&gt;&lt;P&gt;INTO TABLE gt_mbew&lt;/P&gt;&lt;P&gt;FROM mbew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE matnr = 'XXXXX'&lt;/P&gt;&lt;P&gt;AND lfgja LE 2008&lt;/P&gt;&lt;P&gt;AND lfmon LE 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values for the fields 'lfgja' and 'lfmon' should not be written in single quotes because the data type is NUMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chinmaye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525394#M848071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select on MBEW problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525395#M848072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, The values for 'lfgja' and 'lfmon' are comming from selection screen, just for our reference I haven it like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525395#M848072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select on MBEW problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525396#M848073</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;The data will be fetched in to the internal table as its in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the data to be in the order in which you have specified, sort the internal table once you get the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT gt_mbew by LFGJA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525396#M848073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select on MBEW problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525397#M848074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Aren't u getting output or aren't u getting output in the desired order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-on-mbew-problem/m-p/3525397#M848074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:44:05Z</dc:date>
    </item>
  </channel>
</rss>

