n Implement CGLIB in ABAP I explain how to create a transient proxy class via dynamically creating sub class. Suppose for your use case you need a persistent proxy class instead, you can try this approach below.
For how to achieve it in ABAP, see detail in my blog Create dynamic proxy persistently in Java and ABAP.
