<?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: Default values for cds parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394533#M1995060</link>
    <description>&lt;P&gt;Hi Thorsten , &lt;/P&gt;&lt;P&gt;i just followed &lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abencds_f1_parameter_annotations.htm"&gt;https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abencds_f1_parameter_annotations.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;looks like the error still persist &lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 11:36:38 GMT</pubDate>
    <dc:creator>herzelhaimharel_gilor</dc:creator>
    <dc:date>2021-04-05T11:36:38Z</dc:date>
    <item>
      <title>Default values for cds parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394531#M1995058</link>
      <description>&lt;P&gt;Hi all , &lt;/P&gt;
  &lt;P&gt;just got an error while try to determine default value for cds parameter &lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" style="font-size: 15px; color: rgb(60, 60, 60);" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1905993-cds1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;i was try also , and it's not working &lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1905994-cds2.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;could someone let me know how to solve this ?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 10:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394531#M1995058</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2021-04-05T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Default values for cds parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394532#M1995059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can determine the language with the session variable $session.system_language.&lt;BR /&gt;&lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/de-de/abencds_f1_session_variable.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_750_index_htm/7.50/de-de/abencds_f1_session_variable.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Default value for a parameter can be set with the consumption annotation&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;@Consumption.defaultValue&lt;/P&gt;&lt;P&gt;The report DEMO_CDS_SYSTEM_FIELDS is mentioned in the sap help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abencds_f1_parameter_annotations.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abencds_f1_parameter_annotations.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Thorsten&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 11:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394532#M1995059</guid>
      <dc:creator>ThorstenHoefer</dc:creator>
      <dc:date>2021-04-05T11:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Default values for cds parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394533#M1995060</link>
      <description>&lt;P&gt;Hi Thorsten , &lt;/P&gt;&lt;P&gt;i just followed &lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abencds_f1_parameter_annotations.htm"&gt;https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abencds_f1_parameter_annotations.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;looks like the error still persist &lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 11:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394533#M1995060</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2021-04-05T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Default values for cds parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394534#M1995061</link>
      <description>&lt;P&gt;This is the code from the demo CDS View demo_cds_system_fields. &lt;/P&gt;&lt;P&gt;Are you using version 7.5x?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewName: 'DEMO_CDS_SYST'
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view demo_cds_system_fields
 with parameters
 @Environment.systemField : #CLIENT
 p_mandt : syst_mandt,
 @Environment.systemField : #SYSTEM_DATE
 p_datum : syst_datum,
 @Environment.systemField : #SYSTEM_TIME
 p_uzeit : syst_uzeit,
 p_langu : syst_langu @&amp;lt;Environment.systemField : #SYSTEM_LANGUAGE,
 p_uname : syst_uname @&amp;lt;Environment.systemField : #USER
 as select from
 demo_expressions
 {
 :p_mandt as client,
 :p_datum as datum,
 :p_uzeit as uzeit,
 :p_langu as langu,
 :p_uname as uname
 }
 where
 id = '1';     &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;     ABAP Code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT demo_cds_system_fields.
CLASS demo DEFINITION.
  PUBLIC SECTION.
    CLASS-METHODS main.
ENDCLASS.
CLASS demo IMPLEMENTATION.
  METHOD main.
    DELETE FROM demo_expressions.
    INSERT demo_expressions FROM @( VALUE #( id = '1' ) ).
    SELECT *
           FROM demo_cds_system_fields( p_datum  = @sy-datum,
                                        p_uzeit  = @sy-uzeit,
                                        p_langu  = @sy-langu,
                                        p_uname  = @sy-uname )
           INTO TABLE @DATA(result).
    SELECT *
           FROM demo_cds_system_fields(  )
           APPENDING TABLE @result.
    cl_demo_output=&amp;gt;display( result ).
  ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
  demo=&amp;gt;main( ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Apr 2021 15:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-values-for-cds-parameter/m-p/12394534#M1995061</guid>
      <dc:creator>ThorstenHoefer</dc:creator>
      <dc:date>2021-04-05T15:29:18Z</dc:date>
    </item>
  </channel>
</rss>

