cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Text via association '_COSTCENTER' is not unique, annotation @OBJECTMODEL.FOREIGNKEY.ASSOCIATION

2,545

Hi all,

I created CDS View Z_CDS_OD_K01

and I associated the View with I_CostCenter and I was able to actived.

But the ODATA doesn't work. I am getting following error:

  • Text via association '_COSTCENTER' is not unique, annotation @OBJECTMODEL.FOREIGNKEY.ASSOCIATION

Please could you help

I guess the reason is warnings in CDS View:

Foreign key association _CostCenter may use fields of target primary key only. [SADL Draft Runtime]

I hoppe you can help me.

Thank you all

Accepted Solutions (0)

Answers (1)

Answers (1)

azmathshaikh
Explorer
0 Kudos

The association cardinality should be [0..1 ]