Skip to Content

ODATA Publish Failed


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.

could you help me to fx this?

  1. No access control for entity ZMARA_DDL. Create DCL or use annot. AccessControl [Access Control Management]
  2. OData exposure failed due to missing key elements in 'ZMARA_DDL' [OData Exposure]
  3. The service ZMARA_DDL_CDS does not exist [OData Exposure]

My code as follows:

@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 

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 04, 2019 at 04:45 PM

    Hi Fikret,

    Make one of the column as the key field and try to activate again.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.