ABAP Macros [SAP]
Monday, March 17th, 2008ABAP programmers, do you use macros? Create macros, and use them? Macros make the program more readable, organizable, so on.
If you want to reuse the same set of statements more than once in a program, you can include them in a macro. For example, this can be useful for long calculations or complex WRITE statements. You can only use a macro within the program in which it is defined, and it can only be called in lines of the program following its definition.
The following statement block defines a macro macro:
DEFINE makro.
statements
END-OF-DEFINITION.