What is the difference between macro and subroutine?

Answer Posted / suman

1.macro doesn't have any return statement...but a subroutine
can have ..

2.execution time needed for a macro is much lesser than
subroutine

3.memory requirement for a macro is generally heigher..

4.subroutine can be classified as stated in Previous
answers..but no such classification is available with macro
although macro can have different types of nested form


5.generally no of instructions in macro are smaller than
subroutine


6.macro is always local to the program that defines it..
subroutine may or may not be local..

Is This Answer Correct ?    241 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between rfc and bapi function modules? : abap bdc

810


how 2 create the normal form by using functional module

2326


What are the ways you can do the tuning?

726


Value table VS check Table.

1145


Can i Have Some Realtime Examples on Badi ?

8513






data:zxyz type xyz. where xyz is a standard sap structure where it contains data type fields and line type (refer to other structure) fields. my question is how to assign values to field zxyz-str-matnr where str is a structure inside xyz structure.

2069


What are the attributes of a field that can be activated or deactivated during runtime?

738


How do you document ABAP programs? Do you use program documentation menu option?

840


How would you define the exponents for a type ‘f’ field?

816


What are the types of views? : sap abap data dictionary

830


how do you transport lsmw data from one system to another?

859


Explain the properties of selection screen?

836


What is the use of abap data dictionary? : abap data dictionary

787


What is a data dictionary? : sap abap data dictionary

727


What is the difference between free and refresh?

776