<?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: Selecting Valid Materials . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765606#M1117153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debrup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there are only 2 tables you can use either for all entries or inner join.....&lt;/P&gt;&lt;P&gt;but if you are using for all entries the statement should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not &lt;STRONG&gt;i_marc[]&lt;/STRONG&gt; is initial.                &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt; not........( if not i_marc is initial.) here we are checking only the header line or table work area&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;FROM aufm INTO TABLE i_aufm&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_marc where matnr = i_marc-matnr&lt;/P&gt;&lt;P&gt;and werks = i_marc-werks AND BWART = '101' and budat IN s_budat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct it...Rest looks fine&lt;/P&gt;&lt;P&gt;If you are having problem with data fetched just debugg and see always&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 07:23:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-13T07:23:03Z</dc:date>
    <item>
      <title>Selecting Valid Materials .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765603#M1117150</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;I have the following things in Selection screen:&lt;/P&gt;&lt;P&gt;Plant(werks )&lt;/P&gt;&lt;P&gt;Posting date(BUDAT from AUFM table)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Material(MATNR),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to select Material if it has an entry in AUFM Based on &lt;/P&gt;&lt;P&gt;AUFM-BWART = '101 u2018. and posting date (AUFM-BUDAT) and plant (AUFM-WERKS)&lt;/P&gt;&lt;P&gt;is within the user defined range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have wrote this selection query:&lt;/P&gt;&lt;P&gt;SELECT matnr werks&lt;/P&gt;&lt;P&gt;FROM marc INTO TABLE i_marc where matnr IN s_matnr&lt;/P&gt;&lt;P&gt;AND werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not i_marc is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;FROM aufm INTO TABLE i_aufm&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_marc where matnr =  i_marc-matnr&lt;/P&gt;&lt;P&gt;                                               and werks = i_marc-werks AND BWART = '101' and budat IN s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me whwther it is correct or wrong and help me in the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Debrup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765603#M1117150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Valid Materials .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765604#M1117151</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;Instead of using two select statements, you can use INNER JOIN ON tables 'MARC' and 'AUFM'. &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;Ravi Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765604#M1117151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T06:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Valid Materials .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765605#M1117152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;But I want to use For all entries instead of inner join.&lt;/P&gt;&lt;P&gt;So is the query correct or modification is needed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 07:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765605#M1117152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T07:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Valid Materials .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765606#M1117153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debrup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there are only 2 tables you can use either for all entries or inner join.....&lt;/P&gt;&lt;P&gt;but if you are using for all entries the statement should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not &lt;STRONG&gt;i_marc[]&lt;/STRONG&gt; is initial.                &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt; not........( if not i_marc is initial.) here we are checking only the header line or table work area&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;FROM aufm INTO TABLE i_aufm&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_marc where matnr = i_marc-matnr&lt;/P&gt;&lt;P&gt;and werks = i_marc-werks AND BWART = '101' and budat IN s_budat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct it...Rest looks fine&lt;/P&gt;&lt;P&gt;If you are having problem with data fetched just debugg and see always&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 07:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765606#M1117153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T07:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Valid Materials .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765607#M1117154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byju,&lt;/P&gt;&lt;P&gt;Thanks a lot byju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 07:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765607#M1117154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Valid Materials .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765608#M1117155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz close the thread once ur problem is solved.&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 07:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-valid-materials/m-p/4765608#M1117155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T07:34:16Z</dc:date>
    </item>
  </channel>
</rss>

