使用CDS view找出SAP CRM状态为open的那些订单

不羁岁月 提交于 2020-01-11 05:56:18

done on 2017-06-10 10:07AM ER9/001


@AbapCatalog.sqlViewName: 'ZORDERSTATUS1'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Order status'
define view zorder_status_jerry as select from zorder {
   key zorder.order_id,
   zorder.post_date,
   case when zorder.status_open = 'X' 
          then 1
          else 0
   end as numberOfOpenOrders
}

@AbapCatalog.sqlViewName: 'ZOPENORDER'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@Analytics.dataCategory: #CUBE
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Open Order'
define view zopen_order as select from zorder_status_jerry {
   // key zorder_status_jerry.order_id,
   zorder_status_jerry.post_date,
   count ( * ) as numberOfOrders,
   sum ( zorder_status_jerry.numberOfOpenOrders ) as numberOfOpenOrders 
} group by post_date
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!