cancel
Showing results for 
Search instead for 
Did you mean: 

Get the Latest Item record using ABAP CDS

2,377

Hello Experts,

I need to Build a CDS view which should fetch the latest record [green color highlighted record ] , as shown in the attachment. Is it possible without using Table Functions. Please suggest.

Thanks,

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor

create cds1: select from yourtable{ticket, max(ticketupdatdtime) } group by ticket

then cds 2 select from your table join the cds 1{column you want}

0 Kudos

Hello Jun Wu,

Thanks for the response. Able to solve. That was not possible with single CDS views.

Thanks

Vijay

Answers (1)

Answers (1)

Ramjee_korada
Active Contributor
0 Kudos

hi Vijay,

It's possible on ABAP layer.

Please see below blogpost.

https://blogs.sap.com/2021/11/30/new-window-functions-in-abap-sql/

BW,

Ramjee