What is the difference between macro and subroutine?
Answer Posted / paramjeet
Macros can only be used in the program the are defined in
and only after the definition are expanded at compilation /
generation. Subroutines (FORM) can be called from both the
program the are defined in and other programs . A MACRO is
more or less an abbreviation for some lines of code that are
used more than once or twice. A FORM is a local subroutine
(which can be called external). A FUNCTION is (more or less)
a subroutine that is called external. Since debugging a
MACRO is not really possible, prevent the use of them (I?ve
never used them, but seen them in action). If the subroutine
is used only local (called internal) use a FORM. If the
subroutine is called external (used by more than one
program) use a FUNCTION.
| Is This Answer Correct ? | 61 Yes | 36 No |
Post New Answer View All Answers
how to update the filed value in SAP in ZAWSYS and create time and date? please tell me the answer
How do you execute the payroll
Work most on which module: name a few tables?
What is the meaning of abap/4 editor integrated with abap/4 data dictionary?
What are the functions of lock objects?
dynamic programming in sap abap
What is the difference between a structure and a table? : abap data dictionary
What is a report?
How do you display a data in a detail list?
What are dml commands in abap?
To how many tables can an append structure be assigned. : abap data dictionary
What are conversion & interface programs in sap?
What happens if a function module runs in an update task?
What is repository info. Systems?
What are the 3 types of tables in sap? : abap data dictionary