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 are the Various Types of internal tables?

901


What are the differences between primary and secondary indexes?

826


Define abap/4 layer?

986


Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs

2180


function modules are also external subroutines. State true or false. : abap modularization

771






Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

1773


What is the t-code for transaction recorder? : abap bdc

790


Can a filed occur in several field groups?

764


What is screen flow logic? What are the sections in it?

803


What are the uses of secondary indexes?

774


​​What is view proxy in abap?

973


What are the events in screen programming?

831


Type casting and error handling

1120


what is the process of creating quotation using BAPIs.

1775


why to create a custom BAPI if the BAPI already exists? y to find BAPI again? frankly even i dint undstnd tne question properly. if any one come across this q please do anser me.

1935