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 are the date abd time field values stored in sap?
What is the difference between Exit and Stop?
Explain how many types of tables exist and what are they in data dictionary?
Differentiate between transparent tables, cluster tables and pooled tables
What is off cycle payroll run
How do you differentiate tax for different countries? : sap abap hr
What kind of BDC programs are written ?
1)can any body tell the transport request number concept and 2)there are 3 screens in one screen u have uploaded the resume and second screen also u have done the same thing but when u are uploading the resume in third screen u got some error in somewhere else but whatever u have uploaded the resume in 1 and 2 should not
In which cluster time results are stored? : abap hr
How to debug a sapscript?
Explain how do you get output from idoc?
Did you create primary index?
What is a type group?
If I have put commit in badi implementation class after update, is it allowed? Also if some standard functionality already implemented an update and now i m doing update and if it fails, what will be the impact of commit?
What will be your approach towards optimizing legacy code? Will you suggest change in technology? Does OO ABAP bring any performance benefits? How will you deal with queries in a loop? How will you optimize nested loops?