<?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 CDS View Extractor - Paramter with multiple values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-extractor-paramter-with-multiple-values/m-p/12334167#M1991759</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
  &lt;P&gt;I'm just migrating some old ABAP extractors to CDS extractors and got the following issue:&lt;/P&gt;
  &lt;P&gt;The old extractor has some parameters, for example the parameter "class". It was possible to fill this paramter with no value, one value or multiple values. In the implementation it could be used in conjunction with the IN-operator:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SELECT * FROM table WHERE class IN lr_class.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In the CDS view, I can also define parameters. But I don't know how I could pass multiple values to the parameter, because the CDS syntax is lacking the IN-operator.&lt;/P&gt;
  &lt;P&gt;So, this is syntactically not working:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewName: 'ZTEST_EX'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Sub-view for ZTEST_EXTRACTOR'
define view ZTEST_EXTRACTGOR with parameters p_class : KLASSE_D as select from klah {
    atnam,
    class
}
where class in (:p_class);&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;so, the question is how can I handle multiple parameter values a CDS view?&lt;/P&gt;
  &lt;P&gt;Many thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 15:19:53 GMT</pubDate>
    <dc:creator>former_member584800</dc:creator>
    <dc:date>2021-03-22T15:19:53Z</dc:date>
    <item>
      <title>CDS View Extractor - Paramter with multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-extractor-paramter-with-multiple-values/m-p/12334167#M1991759</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
  &lt;P&gt;I'm just migrating some old ABAP extractors to CDS extractors and got the following issue:&lt;/P&gt;
  &lt;P&gt;The old extractor has some parameters, for example the parameter "class". It was possible to fill this paramter with no value, one value or multiple values. In the implementation it could be used in conjunction with the IN-operator:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SELECT * FROM table WHERE class IN lr_class.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In the CDS view, I can also define parameters. But I don't know how I could pass multiple values to the parameter, because the CDS syntax is lacking the IN-operator.&lt;/P&gt;
  &lt;P&gt;So, this is syntactically not working:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewName: 'ZTEST_EX'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Sub-view for ZTEST_EXTRACTOR'
define view ZTEST_EXTRACTGOR with parameters p_class : KLASSE_D as select from klah {
    atnam,
    class
}
where class in (:p_class);&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;so, the question is how can I handle multiple parameter values a CDS view?&lt;/P&gt;
  &lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-extractor-paramter-with-multiple-values/m-p/12334167#M1991759</guid>
      <dc:creator>former_member584800</dc:creator>
      <dc:date>2021-03-22T15:19:53Z</dc:date>
    </item>
  </channel>
</rss>

