<?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 with fetching data from Marc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605992#M1662766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wantdly i wrote it. because i want material which should present in all 3 plants but not in either of them.&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; Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 12:53:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-04-03T12:53:57Z</dc:date>
    <item>
      <title>Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605990#M1662764</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 struct with a problem that i need to get the all&amp;nbsp; materials which present&amp;nbsp; in all 3 plants ( say&amp;nbsp; 3000,3010,3100)&lt;/P&gt;&lt;P&gt;but we can't write like&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;select matnr werks &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;marc &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table&amp;nbsp; &lt;/SPAN&gt;t_mara&amp;nbsp; &lt;SPAN class="L0S52"&gt;UP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;100 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ROWS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'3000'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'3010'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'3100' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;because at a time werks will be 1 value only.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;can we achieve this with&amp;nbsp; 1 or atleast 2 select queries?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt; or there is any other way.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Plaese give me the reference on this so that i achieve this.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Chaitanya&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 12:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605990#M1662764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-03T12:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605991#M1662765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;Instead of .. and ... and .. you should use .. or .... or ...&amp;nbsp; &lt;/P&gt;&lt;P&gt;Or you could use&amp;nbsp; "werks in ('3000','3010','3100')".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 12:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605991#M1662765</guid>
      <dc:creator>erik_mertens3</dc:creator>
      <dc:date>2012-04-03T12:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605992#M1662766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wantdly i wrote it. because i want material which should present in all 3 plants but not in either of them.&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; Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 12:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605992#M1662766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-03T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605993#M1662767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, then you have to use two select statement (or two internal tables).&lt;/P&gt;&lt;P&gt;In the outer select you process the material, in the inner select you check if the material is present in all 3 plants. If so, append it to an internal table. Easiest way imho.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605993#M1662767</guid>
      <dc:creator>erik_mertens3</dc:creator>
      <dc:date>2012-04-03T13:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605994#M1662768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to do this with a sub-query. Press F1 on SELECT.&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605994#M1662768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-03T13:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605995#M1662769</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;You can JOIN 3 tables in one query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SELECT m1~matnr &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; UP &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;100 &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;ROWS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; INTO TABLE t_mara[]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FROM marc AS m1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; JOIN marc AS m2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON m1~matnr EQ m2~matnr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; JOIN marc AS m3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON m1~matnr EQ m3~matnr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; WHERE &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; m1~&lt;/SPAN&gt;werks EQ&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'3000'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND m2~werks EQ&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'3010'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND m3~werks EQ&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'3100' &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&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;--&lt;/P&gt;&lt;P&gt;Przemysław&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605995#M1662769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-03T13:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605996#M1662770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is no other way other than to handle it programatically. Something like the below code!&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;select matnr werks &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;marc &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table&amp;nbsp; &lt;/SPAN&gt;t_mara&amp;nbsp; &lt;SPAN class="L0S52"&gt;UP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;100 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ROWS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'3000'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'3010'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'3100' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;t_mara_3000 = t_mara. delete t_mara_3000 where werks &amp;lt;&amp;gt; '3000'. &lt;/P&gt;&lt;P&gt;t_mara_3010 = t_mara. delete t_mara_3010 where werks &amp;lt;&amp;gt; '3010'.&lt;/P&gt;&lt;P&gt;t_mara_3110 = t_mara. delete t_mara_3110 where werks &amp;lt;&amp;gt; '3100'.&lt;/P&gt;&lt;P&gt;clear : t_mara.&lt;/P&gt;&lt;P&gt;describe table : t_mara_3000 lines l_v_3000_lines,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_mara_3010 lines l_v_3010_lines,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_mara_3100 lines l_v_3010_lines,&lt;/P&gt;&lt;P&gt;if&amp;nbsp; l_v_3000_lines &amp;lt;&amp;gt; 0 and&amp;nbsp; l_v_3010_lines &amp;lt;&amp;gt; 0 and l_v_3010_lines &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;loop at t_mara_3000 assigning &amp;lt;l_fs_mara_3000&amp;gt;.&lt;/P&gt;&lt;P&gt;read t_mara_3010 assigning &amp;lt;L_fs_mara_3010&amp;gt; where matnr = &amp;lt;l_fs_mara_3000&amp;gt;-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;read t_mara_3100 assigning &amp;lt;L_fs_mara_3100&amp;gt; where matnr = &amp;lt;l_fs_mara_3000&amp;gt;-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append : &amp;lt;l_fs_mara_3000&amp;gt; to t_mara,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;l_fs_mara_3010&amp;gt; to t_mara,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;l_fs_mara_3100&amp;gt; to t_mara.&lt;/P&gt;&lt;P&gt;unassign : &amp;lt;l_fs_mara_3000&amp;gt;, &amp;lt;l_fs_mara_3010&amp;gt;, &amp;lt;l_fs_mara_3100&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605996#M1662770</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-04-03T13:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605997#M1662771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;didn't read Rob's excellent and correct reply?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605997#M1662771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-03T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605998#M1662772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps there is no F1 key on his keyboard ? &lt;SPAN __jive_emoticon_name="mischief" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/5.0.1/images/emoticons/mischief.gif"&gt;&lt;/SPAN&gt; Then he could read &lt;A href="http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_SUBQUERY.htm"&gt;WHERE - subquery&lt;/A&gt; at help.sap.com or sample at &lt;A href="http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_EXAMPLES.htm"&gt;Open SQL - Usage Example&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT matnr FROM mara AS m INTO TABLE t_mara UP TO 100 ROWS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; WHERE EXISTS ( SELECT * FROM marc WHERE matnr = m~matnr AND werks EQ '3000')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND EXISTS ( SELECT * FROM marc WHERE matnr = m~matnr AND werks EQ '3010')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND EXISTS ( SELECT * FROM marc WHERE matnr = m~matnr AND werks EQ '3100').&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 13:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605998#M1662772</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-04-03T13:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605999#M1662773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the reply. &lt;/P&gt;&lt;P&gt;But as for your question - Obviously not. SCN doesn't give updated status while you are typing the post and I don't have time to type the post copy and do a referesh again before adding reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 07:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8605999#M1662773</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-04-04T07:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606000#M1662774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;Do we need a subquery for this &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/5.0.1/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt; Can't the data be selected by appending the plant's to a range table and using IN operator.&lt;/P&gt;&lt;P&gt;SELECT DISTINCT matnr FROM marc INTO CORRESPONDING FIELDS OF&amp;nbsp; TABLE it_marc WHERE werks IN s_werks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606000#M1662774</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-04-04T08:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606001#M1662775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem of the IN range operator is the implicit OR between every record of the range. The only question to be now answered is performance : comparing&lt;/P&gt;&lt;P&gt;- subqueries with 3 exists where subqueries&lt;/P&gt;&lt;P&gt;- joining twice the file to itself &lt;/P&gt;&lt;P&gt;- extraction to (sorted) internal table and identifying triples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another SELECT dynamic for any number of plants&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA: marc TYPE marc,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nb_werks TYPE i,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_mara TYPE TABLE OF matnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT-OPTIONS so_werks FOR marc-werks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT COUNT(*) FROM t001w INTO nb_werks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; WHERE werks IN so_werks. " number of plants&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT matnr FROM marc INTO TABLE t_mara&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; WHERE werks IN so_werks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; GROUP BY matnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; HAVING COUNT( * ) = nb_werks. " list of materials defined&amp;nbsp; in every plant&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606001#M1662775</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-04-04T08:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606002#M1662776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sub query seems to be faster than all other. I just checked it. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606002#M1662776</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-04-04T08:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fetching data from Marc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606003#M1662777</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;Thank you&amp;nbsp; all for&amp;nbsp; your valuble&amp;nbsp; suggestions. I has resolved my problem with the help of all you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 09:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-fetching-data-from-marc/m-p/8606003#M1662777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-04T09:05:14Z</dc:date>
    </item>
  </channel>
</rss>

