SAP CDS view自學教程之二:當SAP CDS view被啟用時,背後發生了什麼
You paste the following source code for a simple CDS view into ABAP development studio and activate it:
@AbapCatalog.sqlViewName: 'zjerrySQL0208'@AbapCatalog.compiler.compareFilter: true@AccessControl.authorizationCheck: #CHECK@EndUserText.label: 'test 233'@ObjectModel: {
createEnabled,
deleteEnabled,
updateEnabled}define view Zjerrytest20160208as select from spfli association [0..1] to scarr as _scarron _scarr.carrid = spfli.carrid {
key spfli.carrid,
key _scarr.carrname,
key spfli.connid,
spfli.cityfrom,
spfli.cityto}
And you would like to know what objects are automatically generated during CDS view activation.
Automatically generated ABAP objects during CDS view activation You could query table TADIR with following parameters:
And get answer: DDLS: Data Definition Language SourceSTOB: Structured Object
The relationship among these objects is listed below:
And if you use the same approach described in tutorial part1, you can realize that lots of database tables “DD*” are involved during CDS view activation, for exampleDDLDEPENDENCY. A small tip here is, if you click “Display Object List” button, you will navigate to the package where other related ABAP artifacts within the same package are displayed as well.
Now we can go through each database table one by one.
Automatically inserted table entries during CDS view activation
Several table entries are inserted to the database tables in package SDDL during view activation.
DDDDLSRC
Query this table by specifying DDLNAME as CDS view name we specified in ABAP development studio, the name after keyword “define view” : Zjerrytest20160208, and we can find view source code stored in field SOURCE.
DDDDLSRC02BT Text table which stores the view description specified via annotation@EndUserText.label.
DDHEADANNO
It stores all header annotation specified in CDS view source code with corresponding value.
DDLDEPENDENCY
It maintains relationship between the CDS core entity and automatically generated database view.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2719303/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CDS view自學教程之十:SAP CDS view擴充套件性(Extensibility)實現原理View套件
- SAP CDS view自學教程之一:如何測試基於SAP CDS view自動生成的OData服務View
- 什麼是SAP CDS重定向檢視(Redirect View)?View
- SAP CDS view自學教程之八:SAP Fiori Elements裡不同型別的annotationView型別
- 開啟SAP CDS view DCL前後的讀取效能對比View
- SAP ABAP CDS view Association 引入的緣由View
- 如何基於 SAP CDS view 生成 object pageViewObject
- SAP CDS view如何取得當前系統日期和系統時間戳View時間戳
- 如何使用 SAP CDS view 中的 currency conversion 功能View
- 使用CDS view開發SAP Marketing contact的facet追溯工具View
- SAP ABAP CDS view裡的註解在ABAP後臺是如何被解析的?View
- 在 Excel 內使用 ODBC 消費 SAP ABAP CDS viewExcelView
- 使用SAP CDS view快速建立一個Fiori應用,管理Service OrderView
- SAP CDS view單元測試框架Test Double介紹View框架
- SAP ABAP CDS view 檢視的 Replacement 技術介紹View
- SAP ABAP CDS view 裡 INNER JOIN 和 Association 的區別View
- 如何在 SAP BTP 上通過 CDS view 快速建立 Fiori Elements 應用View
- 一步步學習 SAP CDS view Text Association 在 SAP Fiori Elements 中的應用View
- 如何使用SAP HANA Studio的PlanViz分析CDS view效能問題View
- SAP CDS redirect view支援寫操作嗎,一個實驗來驗證View
- SAP CRM settype的建立,背後發生了什麼
- SAP S/4HANA CDS View的訪問控制實現:DCL介紹View
- SAP CDS view 如何將 CHAR 型別的資料欄位和當前系統日期比較View型別
- 在 Excel 裡使用 ODBC 讀取 SAP BTP 平臺上 CDS view 的資料ExcelView
- 使用 Excel 讀取 SAP ABAP CDS View 通過 ODBC 暴露出來的資料ExcelView
- 一行程式碼將SAP CDS view資料以ALV的方式輸出行程View
- Cannot find package module sap/cds/commonPackage
- 如何用ABAP讀取CDS view association的資料View
- 如何用ABAP程式碼讀取CDS view association的資料View
- SAP ABAP使用CDS獲取系統資訊
- SAP CDS entity 中使用 @readonly 進行訪問控制
- SAP Cloud Application Programming CDS 模型間 association 的設定CloudAPP模型
- Spring Boot 3用CDS提升20%啟動時間Spring Boot
- docker container run 背後發生了什麼?DockerAI
- 當執行時,發生了什麼?
- 當一個 Pod 被排程時,Kubernetes 內部發生了什麼?
- Android Studio點選Run背後發生了什麼?Android
- 使用註解 @requires 給 SAP CAP CDS 模型新增許可權控制UI模型