Skip to Content
-1
Nov 25, 2020 at 01:04 PM

Association is not available error in cds

222 Views Last edit Nov 25, 2020 at 01:13 PM 2 rev

Hi,

when i try to create a value help for sales document then i am getting an error like "Association _vb is not available"

@AbapCatalog.sqlViewName: 'ZTEST_ASSOCV'

@VDM.viewType: #BASIC

@Analytics.dataCategory: #FACT

define view ztest_assoc as

select from vbap association [1] to vbak as _vb

on $projection.vbeln = _vb.vbeln

{

@ObjectModel.foreignKey.association: '_vb'

key vbeln,

_vb

}

Please correct me.