<?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: CDS VIEW Select statement with where clause in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-select-statement-with-where-clause/m-p/546921#M20592</link>
    <description>&lt;P&gt;Dear &lt;/P&gt;&lt;P&gt;Please do let me know, if you have succeeded in getting the value in the CDS view from the EDID4 table.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Praveen G&lt;/P&gt;</description>
    <pubDate>Sat, 27 Apr 2019 09:18:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-04-27T09:18:02Z</dc:date>
    <item>
      <title>CDS VIEW Select statement with where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-select-statement-with-where-clause/m-p/546920#M20591</link>
      <description>&lt;P&gt;Dear Expert,&lt;/P&gt;
  &lt;P&gt;I want to achieve the below in the CDS view.&lt;/P&gt;
  &lt;P&gt;AS ABAP&lt;/P&gt;
  &lt;P&gt;SELECT * FROM edidc INTO CORRESPONDING FIELDS OF table it_data&lt;BR /&gt; WHERE ( ( mestyp = 'ORDERS' AND direct = '2' ) OR&lt;BR /&gt; ( mestyp = 'ORDCHG' AND direct = '2' ) OR&lt;BR /&gt; ( mestyp = 'INVOIC' AND direct = '1' ) OR&lt;BR /&gt; ( mestyp = 'WMMBXY' AND direct = '2' ) OR&lt;BR /&gt; ( mestyp = 'PORDCH' AND direct = '2' ) OR&lt;BR /&gt; ( mestyp = 'DESADV' AND direct = '1' ) OR&lt;BR /&gt; ( mestyp = 'DESADV' AND direct = '2' ) OR&lt;BR /&gt; ( mestyp = 'INVOIC' AND direct = '2' ) OR&lt;BR /&gt; ( mestyp = 'ORDERS' AND direct = '1' ) OR&lt;BR /&gt; ( mestyp = 'ORDCHG' AND direct = '1' ) OR&lt;BR /&gt; ( mestyp = 'Z_INV_STAT' AND direct = '1' ) ).&lt;/P&gt;
  &lt;P&gt;CDS VIew&lt;/P&gt;
  &lt;P&gt;define view Ztest_assotiation &lt;/P&gt;
  &lt;P&gt;as select from edidc as a &lt;/P&gt;
  &lt;P&gt;association [1] to edid4 as b on $projection.docnum = b.docnum &lt;/P&gt;
  &lt;P&gt;{ a.docnum, a.mestyp, a.sndprn, a.direct, a.credat, b.counter, b.segnum, b.segnam, b.dtint2 , b.sdata }&lt;/P&gt;
  &lt;P&gt;I want to achieve multiple where conditions for same field ex. ( mestyp = 'ORDERS' AND direct = '2' ) OR&lt;/P&gt;
  &lt;P&gt;( mestyp = 'ORDCHG' AND direct = '2' ) OR&lt;BR /&gt;( mestyp = 'INVOIC' AND direct = '1' ) OR&lt;BR /&gt;( mestyp = 'WMMBXY' AND direct = '2' ) OR&lt;BR /&gt;( mestyp = 'PORDCH' AND direct = '2' ) OR&lt;/P&gt;
  &lt;P&gt;Kindly help.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 11:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-select-statement-with-where-clause/m-p/546920#M20591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-08-11T11:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: CDS VIEW Select statement with where clause</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-select-statement-with-where-clause/m-p/546921#M20592</link>
      <description>&lt;P&gt;Dear &lt;/P&gt;&lt;P&gt;Please do let me know, if you have succeeded in getting the value in the CDS view from the EDID4 table.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Praveen G&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 09:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-select-statement-with-where-clause/m-p/546921#M20592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-04-27T09:18:02Z</dc:date>
    </item>
  </channel>
</rss>

