CDS VBAK limit records based on VBAP-POSNR

Hi experts,

I have VBAK table and VBAP table, after linking both of the tables I want to display only the records of VBAP-POSNR with multiple POSNR like this POSNR(10, 20, 30, 40 ….) how to do this in CDS or is it possible to do it in CDS only?

in SE38 I do it by counting the POSNR of Sales Order then DELETE the ITAB records if VBAP count is 1 only, I don’t have idea how to do this in CDS only

Scroll to Top