I did this quite a while ago and it works nicely: Enhancement Points on the SAP standard classes for records and documents to provide for application specific security...
Motivation:
- Documents and Records within RCM require business logic dependend security checks per application. You may want to think of this: Required is a vendor record and vendor documents, but is should be available only to the users that have authorization to these business objects.
- Documents and Records are basically the same - they inherit from documents. They need to implement the interfaces for authorizations, for model and instance activities.
- One generic class can provide for both - and for these specific requirements on model and instance elements - you just need to find out how to handle "me" through an interface and you are almost set...
A case is a case, but the embedded record behaves similarly to a standard record - this method can be used here too.
I will post the coding later. Or: If you want it now, drop me a line...