What is the difference between macro and subroutine?

Answer Posted / maya patil

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 ?    82 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is SAP Data conversion ?

634


When value table becomes check table?

582


Differentiate between the uline and write: sy-uline statements if any?

733


How do you restrict the data to be entered in the payroll area? : sap abap hr

533


What is hotspot?

927






Explain what are the events used in interactive reports?

492


In what ways we can get the context sensitive f1 help on a field?

598


Difference between Insert, Update and Modify?

685


Name a few data dictionary objects?

650


When a function module is activated syntax checking is performed automatically. State yes or no. : abap modularization

613


Does every abap/4 have a modular structure?

559


What are the function modules used in f4 help?

646


What is the difference between a structure and a table?

553


Explain the difference between tables and structures?

485


Why do we use abstract class

1031