<?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: SQL: combined SELECT-command possible??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185560#M1000516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The result should be all open orders!&lt;/P&gt;&lt;P&gt;1.) no EKBE&lt;/P&gt;&lt;P&gt;2.) EKBE but quantity of goods receipt (WE) is less than quantity of the PO&lt;/P&gt;&lt;P&gt;3.) intercompany-POs (stock transport order) have other movement types (like LFS and WA) which do not effect the status of the open PO until good-receipt movement is posted in the receiving plant .&lt;/P&gt;&lt;P&gt;First/Second condition is realized. Third condition is the gap until now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 14:49:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T14:49:10Z</dc:date>
    <item>
      <title>SQL: combined SELECT-command possible???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185558#M1000514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the enclosed SQL-command I'm actually selecting from table EKPO only the open POs with no reference in order-history (EKBE). Now I want to enlarge/combine this command in that way that additionally records from order history (EKBE) with a special movement type in EKBE are selected on top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible or do need a second select-command in the Z-application???&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;THANKS for a response.&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;Bernd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln ebelp menge meins txz01 bukrs matkl&lt;/P&gt;&lt;P&gt;         werks matnr mtart labnr elikz pstyp from ekpo as b&lt;/P&gt;&lt;P&gt;    into (itab-bestnr, itab-pos, itab-best_mng,itab-meins, itab-text,&lt;/P&gt;&lt;P&gt;         itab-bukrs, itab-matkl, itab-werks, itab-matnr, itab-mtart,&lt;/P&gt;&lt;P&gt;         itab-labnr, itab-elikz, itab-pstyp)&lt;/P&gt;&lt;P&gt;    where ( mtart = 'ETMW' or mtart = 'ETVB' ) and&lt;/P&gt;&lt;P&gt;          menge &amp;gt; 0 and&lt;/P&gt;&lt;P&gt;          loekz &amp;lt;&amp;gt; 'L' and&lt;/P&gt;&lt;P&gt;          loekz &amp;lt;&amp;gt; 'S' and&lt;/P&gt;&lt;P&gt;          elikz &amp;lt;&amp;gt; 'X' and  " Endliefer-KZ&lt;/P&gt;&lt;P&gt;          ebelp not in ( select ebelp from ekbe where&lt;/P&gt;&lt;P&gt;                                ebeln = b~ebeln ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bernd Thielemann on Jul 21, 2008 4:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 14:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185558#M1000514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL: combined SELECT-command possible???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185559#M1000515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm, you want records with no EKBE &lt;EM&gt;and&lt;/EM&gt; some special values in EKBE at the same time?&lt;/P&gt;&lt;P&gt;I'm hitting a logical brick wall here.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. please enlose the code in "" brackets (one before, one after), looks much better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 14:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185559#M1000515</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-07-21T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL: combined SELECT-command possible???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185560#M1000516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The result should be all open orders!&lt;/P&gt;&lt;P&gt;1.) no EKBE&lt;/P&gt;&lt;P&gt;2.) EKBE but quantity of goods receipt (WE) is less than quantity of the PO&lt;/P&gt;&lt;P&gt;3.) intercompany-POs (stock transport order) have other movement types (like LFS and WA) which do not effect the status of the open PO until good-receipt movement is posted in the receiving plant .&lt;/P&gt;&lt;P&gt;First/Second condition is realized. Third condition is the gap until now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 14:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185560#M1000516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL: combined SELECT-command possible???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185561#M1000517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution found!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 09:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-combined-select-command-possible/m-p/4185561#M1000517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T09:38:12Z</dc:date>
    </item>
  </channel>
</rss>

