0% found this document useful (0 votes)
182 views

How To Model A Gateway Service Based On CDS View For ABAP Using SADL

Uploaded by

Sai Boddu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
182 views

How To Model A Gateway Service Based On CDS View For ABAP Using SADL

Uploaded by

Sai Boddu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

9/20/21, 2:56 PM How To Model a Gateway Service based on CDS View for ABAP using SADL

(http://ww Community
w.sap.co (https://community.sap.com)
m/)

Ask a Question (https://answers.sap.com/questions/ask.html) Write a Blog Post (https://blogs.sap.com/wp-admin/post-new.php

ABAP Development
(https://community.sap.com/tag.html?id=833755570260738661924709785639136)

How To Model a Gateway Service


based on CDS View for ABAP using
SADL
Overview - This tutorial explains how to model read-only Gateway Service based on Core Data Services
(CDS) View for ABAP, using SADL. This guide shows a model-based approach of creating the service which
significantly reduces the development efforts. This feature is available from SAP NetWeaver AS ABAP 7.40
SP5 onwards.

View this SAP How-to Guide (http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f078e642-8d95-3110-


36b2-f4ed1767395c&overridelayout=true)


(https://people.sap.com/gopalakrishnan.ramachandran)


Gopalakrishnan Ramachandran (https://people.sap.com/gopalakrishnan.ramachandran)
March 24, 2014 at 15:19 PM

2
Likes

1 replies

Former Member replied April 28, 2016 at 08:20 AM

hi Expert,

I create a cds entity as below:

@AbapCatalog.sqlViewName: 'ZVCDSDEMO_00'

@AccessControl.authorizationCheck: #NOT_REQUIRED

https://archive.sap.com/documents/docs/DOC-53595 1/3
9/20/21, 2:56 PM How To Model a Gateway Service based on CDS View for ABAP using SADL

@VDM.viewType: #CONSUMPTION

@EndUserText.label: 'abap cds view_cube view'

@Analytics.dataCategory: #CUBE

@OData.publish: true

define view Zcdsdemo_00 as select from snwd_so_inv_head

                    inner join snwd_so on snwd_so_inv_head.so_guid = snwd_so.node_key

                    association [1..1] to snwd_bpa as bpa on


$projection.buyer_guid=bpa.node_key

                    association [1..*] to  snwd_so_inv_item as so_inv on


$projection.node_key=so_inv.parent_key

    key snwd_so_inv_head.node_key,

    snwd_so_inv_head.buyer_guid,

    snwd_so.so_id as sales_order_id,

    snwd_so_inv_head.payment_status,

    @Semantics.currencyCode

    snwd_so_inv_head.currency_code as currency_code,

    @DefaultAggregation: #SUM

    snwd_so_inv_head.gross_amount,

    so_inv

    }

generated runtime objects and registered the service successfully, the url $format=xml
and $metadata works, but for entitySet, it's showing "500 connection timed out". Can you
help me out?

thanks,

Anni

Find us on

https://archive.sap.com/documents/docs/DOC-53595 2/3
9/20/21, 2:56 PM How To Model a Gateway Service based on CDS View for ABAP using SADL

(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity)

(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap)

(https://instagram.com/sap/) (http://www.slideshare.net/SAP) (mailto:?subject='SAP Community')


Privacy (http://sap.com/about/legal/privacy.html) Terms of Use (http://sap.com/corporate/en/legal/terms-of-
use.html)

Legal Disclosure Copyright (http://sap.com/about/legal/copyright.html)


(http://sap.com/about/legal/impressum.html)

Trademark (http://sap.com/about/legal/trademark.html) Cookie Preferences

Newsletter (https://www.sap.com/cmp/nl/sap-community- Support (mailto:[email protected])


voice/index.html)

https://archive.sap.com/documents/docs/DOC-53595 3/3

You might also like