Kolkata
Most of the time we define macro in our program by DEFINE … END-OF-DEFINITION statement.
Ex:
DEFINE
Statement……
Statement …..
………………..
END-OF-DEFINITION.
And this macro can be called in the following way
This above definition is local to the program where it is defined i.e. we cannot call this macro from another program. But we can create global macro that can be called by any program.
Global macro can be created by maintaining entries in table TRMAC.
Most popular example of standard global (system) macro is BREAK which is defined in table TRMAC as shown in the screen shot below.
From any program we can call this macro as:
BREAK
Create custom macro
Call this global macro from a report
Output:
No comments:
Post a Comment