<?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 Activation Error (Tutorial) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066515#M1969717</link>
    <description>&lt;P&gt;It is just a warning that authorizations cannot be implemented as the access control is not created. Use the below annotaiton if you don't have access control defined.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@AccessControl.authorizationCheck:#NOT_REQUIRED&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Dec 2019 11:01:37 GMT</pubDate>
    <dc:creator>maheshpalavalli</dc:creator>
    <dc:date>2019-12-30T11:01:37Z</dc:date>
    <item>
      <title>CDS View Activation Error (Tutorial)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066510#M1969712</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I just newly installed the AS ABAP 752 SP04 developer edition and started up trying to create a CDS view by making the tutorial offered here:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/1709.000/en-US/a7ef7d66047e4a779c0d5f996b8fcc34.html" target="test_blank"&gt;https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/1709.000/en-US/a7ef7d66047e4a779c0d5f996b8fcc34.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Unfortunately when trying to activate the CDS view I get the following error message.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;DDLS ZDEMO_CDS_SALESORDERITEM was not activated&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;also there is a second error I did not have in my first try:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;DDL source ZDEMO_CDS_SALESORDERITEM contains errors&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Does anyone know what's the problem? I am confusred because I copied and pasted the source code 1 by 1.&lt;/P&gt;
  &lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;Source Code:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;@AbapCatalog.sqlViewName: 'ZDEMO_SOI_001'&lt;BR /&gt;@AbapCatalog.compiler.compareFilter: true&lt;BR /&gt;@AbapCatalog.preserveKey: true&lt;BR /&gt;@AccessControl.authorizationCheck: #CHECK&lt;BR /&gt;@EndUserText.label: 'List Reporting for Sales Order Item'&lt;BR /&gt;@OData.publish: true&lt;BR /&gt;&lt;BR /&gt;define view ZDEMO_CDS_SalesOrderItem as select from SEPM_I_SalesOrderItem_E as Item {&lt;BR /&gt; key Item.SalesOrder as SalesOrderID,&lt;BR /&gt; key Item.SalesOrderItem as ItemPosition,&lt;BR /&gt; Item._SalesOrder._Customer.CompanyName as CompanyName,&lt;BR /&gt; Item.Product as Product,&lt;BR /&gt; @Semantics.currencyCode: true&lt;BR /&gt; Item.TransactionCurrency as CurrencyCode,&lt;BR /&gt; @Semantics.amount.currencyCode: 'CurrencyCode'&lt;BR /&gt; Item.GrossAmountInTransacCurrency as GrossAmount,&lt;BR /&gt; @Semantics.amount.currencyCode: 'CurrencyCode'&lt;BR /&gt; Item.NetAmountInTransactionCurrency as NetAmount,&lt;BR /&gt; @Semantics.amount.currencyCode: 'CurrencyCode'&lt;BR /&gt; Item.TaxAmountInTransactionCurrency as TaxAmount,&lt;BR /&gt; Item.ProductAvailabilityStatus as ProductAvailabilityStatus&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;Thanks a lot in advance!&lt;/P&gt;
  &lt;P&gt;Best regards.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 21:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066510#M1969712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-12-29T21:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Activation Error (Tutorial)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066511#M1969713</link>
      <description>&lt;P&gt;1. Try changing your code from: @AbapCatalog.sqlViewName: 'ZDEMO_SOI_001'&lt;/P&gt;&lt;P&gt;to: @AbapCatalog.sqlViewName: 'ZDEMO_SOI'&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;because:&lt;/P&gt;&lt;P&gt;Your code says: @AbapCatalog.sqlViewName: 'ZDEMO_SOI_001'&lt;/P&gt;&lt;P&gt;But Sample Code says:  @AbapCatalog.sqlViewName: 'ZDEMO_SOI'&lt;/P&gt;&lt;P&gt;2. You have 2 extra statements (not in sample code). &lt;/P&gt;&lt;P&gt;Have you tried removing your 2 extra lines (which are not in sample code)?&lt;/P&gt;&lt;P&gt;@AbapCatalog.preserveKey: true&lt;BR /&gt;*&lt;/P&gt;&lt;P&gt;*&lt;BR /&gt;@OData.publish: true&lt;BR /&gt;&lt;BR /&gt;3. Have you tried putting this statement on 2 lines as in sample code (instead of on 1 line as in your code):&lt;/P&gt;&lt;P&gt;define view ZDEMO_CDS_SalesOrderItem &lt;/P&gt;&lt;P&gt;as select from SEPM_I_SalesOrderItem_E as Item&lt;/P&gt;&lt;P&gt;4. After your code, Insert closing bracket which is at end of sample code on its own brand new line: &lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;5. Also I'd suggest making your spacing look exactly like spacing in sample code&lt;/P&gt;&lt;P&gt;6. Should you create a view called:  view ZDEMO_CDS_SalesOrderItem&lt;/P&gt;&lt;P&gt;7. activate; make sure your code activates successfully, no errors/informational messages&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 23:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066511#M1969713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-12-29T23:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Activation Error (Tutorial)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066512#M1969714</link>
      <description>&lt;P&gt;Can u try providing the screenshot of the error and screenshot of your code as well.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 04:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066512#M1969714</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-12-30T04:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Activation Error (Tutorial)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066513#M1969715</link>
      <description>&lt;P&gt;Hi Joanna,&lt;/P&gt;&lt;P&gt;thanks a lot for your quick reply. It was helpful&lt;/P&gt;&lt;P&gt;Anyhow  I could not enter 'ZDEMO_SOI' because this did already exist in the system, so I was getting the error message "ZDEMO_SOI is already defined as structure or table"&lt;/P&gt;&lt;P&gt;But just renaming it to ZDEMO_SOI2 did help.&lt;/P&gt;&lt;P&gt;Your other points were helpful. The bug has been fixed. Anyhow one error is still remaining, which I am trying to fix:&lt;BR /&gt;No access control for entity ZDEMO_CDS_SALESORDERITEM. Create DCL or use annot. AccessControl [Access Control Management] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code:&lt;/P&gt;&lt;P&gt;@AbapCatalog.sqlViewName: 'ZDEMO_SOI2'&lt;BR /&gt;@AbapCatalog.compiler.compareFilter: true&lt;BR /&gt;@AccessControl.authorizationCheck: #CHECK&lt;BR /&gt;@EndUserText.label: 'List Reporting for Sales Order Item'&lt;BR /&gt;&lt;BR /&gt;define view ZDEMO_CDS_SalesOrderItem&lt;BR /&gt;as select from SEPM_I_SalesOrderItem_E as Item {&lt;BR /&gt;  key Item.SalesOrder as SalesOrderID,&lt;BR /&gt;  key Item.SalesOrderItem as ItemPosition,&lt;BR /&gt;  Item._SalesOrder._Customer.CompanyName as CompanyName,&lt;BR /&gt;  Item.Product as Product,&lt;BR /&gt;  @Semantics.currencyCode: true&lt;BR /&gt;  Item.TransactionCurrency as CurrencyCode,&lt;BR /&gt;  @Semantics.amount.currencyCode: 'CurrencyCode'&lt;BR /&gt;  Item.GrossAmountInTransacCurrency as GrossAmount,&lt;BR /&gt;  @Semantics.amount.currencyCode: 'CurrencyCode'&lt;BR /&gt;  Item.NetAmountInTransactionCurrency as NetAmount,&lt;BR /&gt;  @Semantics.amount.currencyCode: 'CurrencyCode'&lt;BR /&gt;  Item.TaxAmountInTransactionCurrency as TaxAmount,&lt;BR /&gt;  Item.ProductAvailabilityStatus as ProductAvailabilityStatus&lt;BR /&gt;  }&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 10:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066513#M1969715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-12-30T10:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Activation Error (Tutorial)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066514#M1969716</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/1759710-data-definition-zdemo-cds-salesorderitem-npl.jpg"&gt;data-definition-zdemo-cds-salesorderitem-npl.jpg&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; @ Mahesh Kumar Palavalli: Here is the screenshot!&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 10:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066514#M1969716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-12-30T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Activation Error (Tutorial)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066515#M1969717</link>
      <description>&lt;P&gt;It is just a warning that authorizations cannot be implemented as the access control is not created. Use the below annotaiton if you don't have access control defined.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@AccessControl.authorizationCheck:#NOT_REQUIRED&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Dec 2019 11:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066515#M1969717</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-12-30T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Activation Error (Tutorial)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066516#M1969718</link>
      <description>&lt;P&gt;Great! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 20:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-activation-error-tutorial/m-p/12066516#M1969718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-12-30T20:24:29Z</dc:date>
    </item>
  </channel>
</rss>

