I'd like to add a few lines of code at the end of a method of a standard business object type. It could be easy with enhancement framework, but it doesn't apply to business object types (special ABAP editor in SWO1 as you know).
1) If possible, I'd like to not create a subtype (and make it a delegate). Do you think it is possible?
2) Otherwise, if I have to create a subtype, is it possible to not copy the whole standard method so that we don't have to do manual adjustments in case of support packages. One solution maybe could be to do SWC_CALL_METHOD super 'METHODNAME' container., and follow it with my own code. Did someone try it, is it allowed and is there something to be aware of? (I'm too lazy to test and check side effects 😉)
Thx a lot.