E A Cds V: Mbedded Nalytics Iews

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

EMBEDDED ANALYTICS

CDS VIEWS
ANALYTICS E2E STACK
VIRTUAL DATA MODEL (VDM)
FOR APPLICATION DATA IN SAP S/4HANA
Customers and Partners can
develop on released VDM views
VDM is the data model and
source for all types of
applications
 Transactional
 Analytical
 External interfaces

VDM is a set of views on SAP


S/4HANA application data
 Business-oriented
 Understandable&
semantically rich
 Reusable& stable
 Executed on SAP HANA
 Implemented as ABAP CDS
CORE DATA SERVICES CAPABILITIES USED IN VDM
SQL-Compliant definition of views Define view I_Sales Document as select from vbak
Left outer to one join vbkd on vbak.vbeln=vbkd.vbeln
 Join, union, where, group by…
And vbkd.posnr='000000'…
Associations
 Modeled relations between views association[0..1] to I_SalesOrganization
Additional metadata as annotations as_ SalesOrganization on $projection.SalesOrganization=
Integrated into ABAP _SalesOrganization.SalesOrganization
 Embedded in ABAP SQL _SalesOrganization.CompanyCode,
 Integrated with a BAP DDIC
@Semantics.amount.currencyCode:'TransactionCurrency'
 Leverages existing ABAP vbak.netwr as TotalNetAmount,
authorizations
@Semantics.currencyCode:true
 Utilizes ABAP transport system
vbak.waerk as TransactionCurrency,
Additional capabilities
 Parameters SELECT\_SALESORGANIZATION-COMPANYCODE
 View extends ASSOCC …
FROMI_SALESDOCUMENT …
 Easy exposure as Odata services
EXAMPLE: SALES ORDER AND RELATEDVIEWS
NAMES AND METADATA ARE PROPAGATED FROM CDS VIA ODATA TO
FIORI UIS
ANALYTICS VIEW MODEL
AUTHORIZATIONS FOR CDS VIEWS

o All CDS views which expose sensitive or data privacy and


protection relevant data must be secured.
o Access restrictions on record level are expressed by roles in the
Data Control Language (DCL).
o Authorization enforcements of DCLs are automatically applied for
direct ABAP SQL selects on their protected CDS views
o Authorization enforcements of DCLs are injected as additional filter
criteria.
o If multiple DCLs are defined for a single CDS view the access
restrictions are combined by a logical OR(i.e., the access is less
restricted than defined by the individual DCLs).
EXAMPLE OF A DCL ROLE
THANK YOU

You might also like