<?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 IN SELECT CODE WITH INNER JOIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087210#M1971508</link>
    <description>&lt;P&gt;You should start to rewrite clearly your code, using the button "Code" in the forum-editor &lt;/P&gt;&lt;P&gt;And you should start to reorganize the SELECT statement more clearly :&lt;/P&gt;&lt;P&gt;SELECT  &amp;lt;fields to be selected&amp;gt;&lt;/P&gt;&lt;P&gt;INTO &amp;lt;Variable(s)&amp;gt;&lt;/P&gt;&lt;P&gt;FROM &amp;lt;table&amp;gt; // Inner join ...&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;conditions&amp;gt; // SELECT injection &lt;/P&gt;&lt;P&gt;because for my point of view, your code is a big melting of everything &lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 05:26:57 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2019-10-17T05:26:57Z</dc:date>
    <item>
      <title>SELECT IN SELECT CODE WITH INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087207#M1971505</link>
      <description>&lt;P&gt;hi expert,&lt;/P&gt;
  &lt;P&gt;i need to get output of (plant, plant name, material, sku, description, descriptiob, loc, stock qty, avg cost, last recv.&lt;/P&gt;
  &lt;P&gt;please correct my code, because i can't get all the column with this code:&lt;/P&gt;
  &lt;P&gt;SELECT A~WERKS&lt;BR /&gt; C~NAME1&lt;BR /&gt; A~MATNR&lt;BR /&gt; E~BISMT&lt;BR /&gt; B~MAKTX&lt;BR /&gt; A~LGORT&lt;BR /&gt; SUM( CLABS ) AS SUM_CLABS&lt;BR /&gt; INTO TABLE T_COMB&lt;BR /&gt; (SELECT CASE WHEN LBKUM = 0 THEN 0 ELSE ROUND(((SALK3 * 100) / LBKUM),0) &lt;BR /&gt; FROM MBEW &lt;BR /&gt; WHERE BWKEY = A~WERKS &lt;BR /&gt; AND MATNR = A~MATNR) AS AVGCOST&lt;BR /&gt; (SELECT MAX( BUDAT_MKPF ) AS BUDAT_MKPF &lt;BR /&gt; FROM MSEG AS D &lt;BR /&gt; WHERE D~WERKS = A~WERKS &lt;BR /&gt; AND D~MATNR = A~MATNR &lt;BR /&gt; AND BWART = '101') LAST_RECV&lt;BR /&gt; FROM MCHB AS A&lt;BR /&gt; INNER JOIN MAKT AS B&lt;BR /&gt; ON A~MATNR = B~MATNR&lt;BR /&gt; INNER JOIN T001W AS C&lt;BR /&gt; ON A~WERKS = C~WERKS&lt;BR /&gt; INNER JOIN MARA AS E&lt;BR /&gt; ON A~MATNR = E~MATNR&lt;BR /&gt; WHERE A~WERKS IN ('2297','21B7') &lt;BR /&gt; AND LGORT = 'WR02' &lt;BR /&gt; AND MTART NOT IN ('ZNS','ZNV','ZSR')&lt;BR /&gt; GROUP BY A~WERKS C~NAME1 A~MATNR E~BISMT B~MAKTX A~LGORT&lt;BR /&gt; ORDER BY A~WERKS A~MATNR&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 10:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087207#M1971505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-16T10:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT IN SELECT CODE WITH INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087208#M1971506</link>
      <description>&lt;P&gt;I hope that the client requirement does not contain only "plant, plant name, material, sku, description, descriptiob, loc, stock qty, avg cost, last recv." to specify what is to be output !!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 11:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087208#M1971506</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-10-16T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT IN SELECT CODE WITH INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087209#M1971507</link>
      <description>&lt;P&gt;sorry i forget.&lt;/P&gt;&lt;P&gt; i need to show column plant, plant name, material, sku, description, sloc, stock qty, avg cost, stock value, last recv, aging, batch, expired date.&lt;/P&gt;&lt;P&gt;please correct my coding.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 03:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087209#M1971507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-17T03:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT IN SELECT CODE WITH INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087210#M1971508</link>
      <description>&lt;P&gt;You should start to rewrite clearly your code, using the button "Code" in the forum-editor &lt;/P&gt;&lt;P&gt;And you should start to reorganize the SELECT statement more clearly :&lt;/P&gt;&lt;P&gt;SELECT  &amp;lt;fields to be selected&amp;gt;&lt;/P&gt;&lt;P&gt;INTO &amp;lt;Variable(s)&amp;gt;&lt;/P&gt;&lt;P&gt;FROM &amp;lt;table&amp;gt; // Inner join ...&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;conditions&amp;gt; // SELECT injection &lt;/P&gt;&lt;P&gt;because for my point of view, your code is a big melting of everything &lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 05:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-in-select-code-with-inner-join/m-p/12087210#M1971508</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-10-17T05:26:57Z</dc:date>
    </item>
  </channel>
</rss>

