SAP CDS view里将Date和time连接成timestamp的函数
生活随笔
收集整理的这篇文章主要介绍了
SAP CDS view里将Date和time连接成timestamp的函数
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
函数名: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 }总结
以上是生活随笔为你收集整理的SAP CDS view里将Date和time连接成timestamp的函数的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: realme 11 Pro + 手机现身
- 下一篇: 关于SAP S/4HANA里ABAP源代