SAP CDS view里将Date和time连接成timestamp的函数
生活随笔
收集整理的這篇文章主要介紹了
SAP CDS view里将Date和time连接成timestamp的函数
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
函數(shù)名:DATS_TIMS_TO_TSTMP
Calculating Timestamp in CDS View from Date and Time: – The values of the columns ZDATE and ZTIME of the database table DEMO are combined into a time stamp by the conversion function DATS_TIMS_TO_TSTMP Example:- @AbapCatalog.sqlViewName: 'DEMO_CDS_DATTYM' @AbapCatalog.compiler.compareFilter: true @AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'DEMO' @VDM.viewType: #BASIC @Analytics.dataCategory: #FACT @Analytics.dataExtraction.enabled: true Define view demo_cds_date_timeas select from demo { ZDATE, ZTIME, DATS_TIMS_TO_TSTMP (ZDATE, ZTIME, abap_system_timezone($session.client,'NULL' ), $session.client,'NULL') as ZTIMESTAMP }總結(jié)
以上是生活随笔為你收集整理的SAP CDS view里将Date和time连接成timestamp的函数的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: realme 11 Pro + 手机现身
- 下一篇: 《命运 2》游戏作弊器卖家被勒令向 Bu