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
What is the procedure you followed to upload the data?
suppose i want to print sap script output in different printers at a time what are the settings i'll have to make?
What do you mean by transparent tables in sap abap? : abap data dictionary
I have 3 transactions,where the output of one transaction is input of another and output of 2nd transaction is input of 3rd transaction.i have one flat file with all data for the 3 transaction.if the 3rd transaction failed can we rollback the remaining 2 transactions or not.Is this possible in BDC,How/
What are the two different ways of building a match code object? : abap data dictionary
What are the functional areas?
What are system fields for secondary lists?
Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc
What are logical databases?
How many main windows will be there in a page window?
What is page window?
Find the scenario and give the result: a, b, c are employees, where a, b will get basic, hra, da. C gets basic and da. How to group for the allowances? : sap abap hr
What are the disadvantages of different types of bdc's?
where are the passwords for ITS stores?
Can i know some of the Realtime tickets that anyone has been faced ?