You need row-level restrictions by company code for data exposed via a CDS view entity used in your RAP BO. What is the recommended approach?
Option B is the way to go since DCL roles ensure database-level row restrictions, which is exactly what RAP expects. C looks tempting but thats only checking in business logic, and D is risky since UI-only filters dont enforce true security. Anyone disagree?
I don't think C is right here. B fits because DCL roles provide proper row-level security for CDS in RAP, enforced directly at the database layer. With C, you're using AUTHORITY-CHECK in ABAP code which can be bypassed if someone accesses the data outside your behavior implementation. Pretty sure B is what SAP wants for this use case, but open if someone has proof otherwise.