Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do you get the number of lines in an internal table?

1065


How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?

1067


What are the functional areas? User groups?

1123


Define structure in abap data dictionary?

1036


What is alv programming in abap? When is this grid used in abap? : abap hr

1160


Explain the advantage of structures?

967


If a table that is to be extended contains a long field, we cannot use append structures why? : abap data dictionary

1164


Is it possible to bring select option in module pool screens?

975


What are the table controls in bdc ? What is the difference between bdc and lsmw ?what is the difference between bdc and rfc ? : abap bdc

1180


What happens if we use leave to list-processing without using suppress-dialog?

1145


What is the bitwise operator in the sap abap?

1071


Explain the call transaction method? : abap bdc

1122


How table control cn be generated using bdc? : abap bdc

1019


In delivery processing which step comes first picking, packing, posting goods issue ?

2090


Which database object is used for storing the system variables? : abap data dictionary

1396