<?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: ODATA Publish Failed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801745#M40952</link>
    <description>&lt;P&gt;Matnr column is already key in main table Zmara. Did you mean that? &lt;/P&gt;</description>
    <pubDate>Mon, 04 Feb 2019 17:29:14 GMT</pubDate>
    <dc:creator>fikretsomay</dc:creator>
    <dc:date>2019-02-04T17:29:14Z</dc:date>
    <item>
      <title>ODATA Publish Failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801743#M40950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I ınstalled 7.50 developer sp02 on my computer. I got warnings when i want to activate Odata publish. I can see that view is created but service is not created, and I dont see my service on /IWFND/MAINT_SERVICE.&lt;/P&gt;
  &lt;P&gt; could you help me to fx this?&lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;No access control for entity ZMARA_DDL. Create DCL or use annot. AccessControl [Access Control Management]&lt;/LI&gt; 
   &lt;LI&gt;OData exposure failed due to missing key elements in 'ZMARA_DDL' [OData Exposure]&lt;/LI&gt; 
   &lt;LI&gt;The service ZMARA_DDL_CDS does not exist [OData Exposure]&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt;My code as follows:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewName: 'ZMARA_V_002'
//@AbapCatalog.compiler.compareFilter: true
//@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'ZMARA_DDL'

@ObjectModel.semanticKey: ['matnr']
@OData.publish: true 
define view ZMARA_DDL as select from zmara 
    {
        matnr,
        maktx 
     }

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 16:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801743#M40950</guid>
      <dc:creator>fikretsomay</dc:creator>
      <dc:date>2019-02-04T16:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODATA Publish Failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801744#M40951</link>
      <description>&lt;P&gt;Hi Fikret,&lt;/P&gt;&lt;P&gt;Make one of the column as the key field and try to activate again.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 16:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801744#M40951</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-02-04T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODATA Publish Failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801745#M40952</link>
      <description>&lt;P&gt;Matnr column is already key in main table Zmara. Did you mean that? &lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801745#M40952</guid>
      <dc:creator>fikretsomay</dc:creator>
      <dc:date>2019-02-04T17:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODATA Publish Failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801746#M40953</link>
      <description>&lt;P&gt;No, you need to make a field in the CDS view as key field so that it generates the OData service and creates the entity for that.. Even if you manually create a odata service, it is required to mention atleast one of the field in the entity as the key field. So here also in the CDS view it is required to mark one as a key.. (It will not take key from zmara btw, you need to explicitly mention it)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;define view ZMARA_DDL as select from zmara 
    {
        key matnr,
        maktx 
     }&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801746#M40953</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-02-04T17:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODATA Publish Failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801747#M40954</link>
      <description>&lt;P&gt;Thank you, that resolved my problem.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801747#M40954</guid>
      <dc:creator>fikretsomay</dc:creator>
      <dc:date>2019-02-04T18:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODATA Publish Failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801748#M40955</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to consume cds views in odata then rules should be meet are:&lt;/P&gt;&lt;P&gt;1. cds view should have at least one primary key in it.&lt;/P&gt;&lt;P&gt;2. no syntax error in ddl.&lt;/P&gt;&lt;P&gt;3 The length of cds view name should not be greater than 16&lt;/P&gt;&lt;P&gt;if above mentioned rules are fulfilled then in /IWFND/MAINT_SERVICE. we can find services.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 10:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-publish-failed/m-p/801748#M40955</guid>
      <dc:creator>former_member697514</dc:creator>
      <dc:date>2020-12-28T10:06:12Z</dc:date>
    </item>
  </channel>
</rss>

