Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify reference table and reference field in ABAP CDS?

Former Member
0 Kudos

i am trying to consume table function using cds view

when i am trying to add currency amount field the program ask me to specify reference table and reference field for this field, how can i do it in cds?

define view ZPC_DRAFT as select from ZPC_TABLE_FUNC

with parameters p_bltyp: int3

{

ZDATE,

ZCURRAMOUN //here i need to specify reference table and field (for example reference to KBLK-WAERS )

}

2 REPLIES 2

0 Kudos

Please see helpful answers here.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Use the @Semantics.currencyCode annotation.