<?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 Optional parameters on CDS Views? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164042#M1907737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can tell (as I cannot find reference to it anywhere), it's not possible to define an optional parameter for a CDS view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 10:26:43 GMT</pubDate>
    <dc:creator>former_member186444</dc:creator>
    <dc:date>2015-07-21T10:26:43Z</dc:date>
    <item>
      <title>Optional parameters on CDS Views?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164042#M1907737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can tell (as I cannot find reference to it anywhere), it's not possible to define an optional parameter for a CDS view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 10:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164042#M1907737</guid>
      <dc:creator>former_member186444</dc:creator>
      <dc:date>2015-07-21T10:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Optional parameters on CDS Views?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164043#M1907738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Malcolm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, optional parameters are not possible (at the moment). To each input parameter an actual parameter must be assigned. Please take a look to paragraph "Notes" in online help &lt;A href="http://help.sap.com/abapdocu_740/en/index.htm?file=abencds_f1_parameter_list.htm" title="http://help.sap.com/abapdocu_740/en/index.htm?file=abencds_f1_parameter_list.htm"&gt;ABAP Keyword Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 10:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164043#M1907738</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2015-07-21T10:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Optional parameters on CDS Views?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164044#M1907739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just spotted that in the help at the same time as your reply came in! Thanks Florian. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just wondering what the alternative is now. Would it be to put it in the projection list instead and then add it to the WHERE clause of the caller if it's filled and not add it to the WHERE clause when it isn't filled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 10:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164044#M1907739</guid>
      <dc:creator>former_member186444</dc:creator>
      <dc:date>2015-07-21T10:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Optional parameters on CDS Views?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164045#M1907740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malcolm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd say, that depends... e.g. if you are using aggregations in the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'd say it's a good workaround if applicable, so I understand instead of passing a filter value to the view in form of an input parameter, you're adding the (to be filtered) field to the projection list and leave the filtering to the consumer, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is, how will you consume the view? If it's Open SQL you can of course use a default value (in the Open SQL) or the given filter value in case it's given... same holds for IDA ALV, you can pass the default in the ABAP coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;&amp;nbsp; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 11:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164045#M1907740</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2015-07-21T11:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Optional parameters on CDS Views?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164046#M1907741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to make parameters optional in abap cds views, say via annotations...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any possibility now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 12:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164046#M1907741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-30T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Optional parameters on CDS Views?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164047#M1907742</link>
      <description>&lt;P&gt;any update in 2021?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 09:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optional-parameters-on-cds-views/m-p/11164047#M1907742</guid>
      <dc:creator>vincenzocappelluti</dc:creator>
      <dc:date>2021-02-05T09:18:18Z</dc:date>
    </item>
  </channel>
</rss>

