But here’s a sample code on how to create MACRO in ABAP.
ZREPORT_CREATE_MACRO.
*First we define a Macro
DEFINE Z_MULTIPLY.
MULTIPLY &1 BY &2.
END-OF-DEFINITION.
* Declare the variables
DATA:
v_numb1 TYPE i Value 10,
v_numb2 TYPE i value 20.
* Call the macro
Z_MULTIPLY v_numb1 v_numb2.
* Display the result
WRITE:/ 'Macro Result is:', v_numb1.
Post a Comment