Skip to Content
Former Member
Aug 11, 2011 at 07:35 AM

Hi Experts, what's guidlines for using local class or global class? Thanks.


Hi Experts,

I am quite new to ABAP OOP, hope experts could help me answer my question.

I noticed that in example codes such as report, local classes are defined and implemented in the main program. Therefore I have the below questions:

1. Is there any guideline of when should we create local class in report/function module/badi etc and when should we create global class in se24?

2. When creating local class, should we define and implement the local classes in the main program? Is there any better structure, for example, to define local class is in TOP etc?

Thanks very much!