<?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 pass range parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-pass-range-parameters/m-p/12405684#M1996047</link>
    <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;qw1391202028&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;First thing that comes to my mind is a question - why would you want to do it?&lt;/P&gt;&lt;P&gt;You can use your range parameters simply in an Open SQL query selecting records from the CDS and it will have the same effect. So why complicate the CDS and put the parameters there?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT some_field
  FROM my_cds
  WHERE some_other_field IN @my_range_parameter
  INTO TABLE @DATA(lt_results).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, if you really want to do it, here is a blog on how it can be achieved with a table function: &lt;A href="https://blogs.sap.com/2018/03/21/select-options-in-cds-using-table-function/" target="test_blank"&gt;https://blogs.sap.com/2018/03/21/select-options-in-cds-using-table-function/&lt;/A&gt;&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
    <pubDate>Sat, 24 Apr 2021 17:16:35 GMT</pubDate>
    <dc:creator>MateuszAdamus</dc:creator>
    <dc:date>2021-04-24T17:16:35Z</dc:date>
    <item>
      <title>CDS pass range parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-pass-range-parameters/m-p/12405683#M1996046</link>
      <description>&lt;P&gt;hi experts,&lt;/P&gt;
  &lt;P&gt;how to use CDS view pass range parameters,and let it was not obligatory input?&lt;/P&gt;
  &lt;P&gt;somebody can help me ?&lt;/P&gt;
  &lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 05:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-pass-range-parameters/m-p/12405683#M1996046</guid>
      <dc:creator>JamesG</dc:creator>
      <dc:date>2021-04-24T05:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: CDS pass range parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-pass-range-parameters/m-p/12405684#M1996047</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;qw1391202028&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;First thing that comes to my mind is a question - why would you want to do it?&lt;/P&gt;&lt;P&gt;You can use your range parameters simply in an Open SQL query selecting records from the CDS and it will have the same effect. So why complicate the CDS and put the parameters there?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT some_field
  FROM my_cds
  WHERE some_other_field IN @my_range_parameter
  INTO TABLE @DATA(lt_results).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, if you really want to do it, here is a blog on how it can be achieved with a table function: &lt;A href="https://blogs.sap.com/2018/03/21/select-options-in-cds-using-table-function/" target="test_blank"&gt;https://blogs.sap.com/2018/03/21/select-options-in-cds-using-table-function/&lt;/A&gt;&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Sat, 24 Apr 2021 17:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-pass-range-parameters/m-p/12405684#M1996047</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-04-24T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: CDS pass range parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-pass-range-parameters/m-p/12405685#M1996048</link>
      <description>&lt;P&gt;hi Mateusz,&lt;/P&gt;&lt;P&gt;Thanks for your replay.&lt;/P&gt;&lt;P&gt;i just think about it.haha&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;wei.guo&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 03:07:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-pass-range-parameters/m-p/12405685#M1996048</guid>
      <dc:creator>JamesG</dc:creator>
      <dc:date>2021-04-28T03:07:28Z</dc:date>
    </item>
  </channel>
</rss>

