Skip to Content

CDS View OData publish, service not visible in /IWFND/MAINT_SERVICE

Created a CDS view with OData exposure in Eclipse. View activated and working correctly, I can see the SQL View data using se16N. View definition below:

@AbapCatalog.sqlViewName: 'ZDDLS_ODATA'
@AbapCatalog.compiler.CompareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'TEST CDS Association II'
@Search.searchable: true
@OData.publish: true
define view ZCDSV_ODATA as select from vbak as soHdr
association [1..*] to ZCDSV_PROD as _itemprod
    on $projection.vbeln = _itemprod.vbeln {
    key soHdr.vbeln,
        soHdr.auart,
        _itemprod.posnr,
        _itemprod.matnr,
        _itemprod.arktx,
        _itemprod.mtart,
        _itemprod.mbrsh,
        _itemprod // Make association public
}
where auart = 'ZINT'

Next step is supposed to be registering the service via /n/IWFND/MAINT_SERVICE. Here is the problem. Entry (unlike the ones created in SEGW) is not available when pushing the "Add Service" button.

This is not a S4/HANA system (installed products below), could this be a release issue?

systemsnapshot.jpg (179.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 25, 2019 at 03:55 PM

    You are right, it is a release issue.

    The annotation @OData.publish: true is only supported as of SAP NetWeaver 750.

    With SAP NetWeaver 740 you can however use the mapped data source approach.

    https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/1709.003/en-US/820b24ce35c745bb9e0fb3a6e8d6dbd4.html

    Here you use SEGW to create the data model using DDIC import of the appropriate DDIC views and you have if needed to create manually the associations.

    Then you are able to map the GET_ENTITY and GET_ENTITYSET method on EntitySet Level to a CDS view.

    Best Regards,

    Andre

    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.