Skip to Content

Can anyone explain how associations work in ABAP CDS?

Jan 03 at 09:46 PM


avatar image


I am new to CDS modeling and trying to understand how an association exactly work

Please find the below mentioned code and explain me how exactly an association work
depending on where path expressions are used



select from bkpf  association [0..1] to t001t  as _b 
on $projection.mandt = _b.mandt
and $projection.bukrs = _b.bukrs
    key bkpf.bukrs ,
    bkpf.belnr ,
    bkpf.gjahr ,
where _b.txtna = 'F_0001_FOOTER'
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Horst Keller
Jan 03 at 09:54 PM
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Horst,

Its really a very good form to understand basic working of an association.

Thank you so much :)

I have one more Question. Is there a way to consume HANA Calculation view in ABAP CDS (Just like how we consume in AMDP)?

Best Regards

Srujan Gannamaneni

Srujan Gannamaneni

No, this is not possible. You must wrap the access to the calc view in an AMDP procedure.