我是 CDS 的新手,我正在尝试制作我的第一个视图。
问题是,当我尝试以下代码时,我收到错误:
关联 _Purchase_Order:BPOSB 和 EBELP 没有兼容的类型。
是否可以在协会的任何领域进行演员表以使其发挥作用?
提前致谢
@AbapCatalog.sqlViewName: 'YMM_VFRET'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Merchandise distribution view'
define view YMM_FRET
as select from fret as Collective_Purchase
association [1..*] to ekpo as _Stock_Transfer_Order
on $projection.blnra = _Stock_Transfer_Order.ebeln and $projection.bposa = _Stock_Transfer_Order.ebelp
association [1] to ekpo as _Purchase_Order
on $projection.blnrb = _Purchase_Order.ebeln and $projection.bposb = _Purchase_Order.ebelp
{
key Collective_Purchase.blnrb,
key Collective_Purchase.bposb,
key Collective_Purchase.blnra,
key Collective_Purchase.bposa,
_Stock_Transfer_Order,
_Purchase_Order
}