Source Code and Program Generation
Concept
Programs written in ABAP are translated to a byte code by the ABAP compiler. This code is interpreted by a virtual machine, the ABAP runtime environment, when the program is executed. In the ABAP environment, the creation of this byte code is known as generation. Programs in use are generated automatically at runtime, if not already done for the current source code version. ABAP programs are propagated only as source code.
Both the ABAP source code and the resulting byte code are saved in the database layer of an SAP system. This makes them available in a central location on all application servers of the system. Each ABAP program has a unique name within an SAP system. ABAP programs are created using ABAP Editor in ABAP Workbench or in Eclipse.
Include programs inserted in other programs using the statement INCLUDE can be used to modularize ABAP programs. Include programs are used only for the modularization of source code and cannot be translated separately. Programs can be modularized manually by using includes. In most cases, however, the ABAP Workbench tools provide ready-made modularization, for example each method in a global class is implemented in its own include.