I'm currently working on a rather complex ABAP application that is going to be split into several modules each performing a specific part of the job:
- one for gathering some data from multiple sources;
- one for displaying that data in UI (SALV grid, if that matters);
- one for doing some business things based on that data.
According to my plan each module will be a global class. However, there is some logic that may need to be shared between these classes: helper subroutines, DB access logic and so on. All of this is a set of local classes at the moment.
I know could these classes global as well, but this would mean exposing them (as well as a number of internal data structures) to the public which I would not like to. Another approach would be sharing the includes with them between my global classes, but that is said to be a bad design.
So, my question is: how do real ABAPers solve problems like this?
DB access logicsound like the need of another helper class. Maybe you could create a master class and inherit the subroutines from this master class (but it may be also a very bad idea - depends on your real code). - knut