What is Macro

Answer Posted / mrudila

Macro is a small programs sourcecode which we can create in
the program using DEFINE keyword,whenever we call the macro
then only it allocates memory.
In macro we can specify upto 9 placeholders which stores
the values.Eg: &1 &2 &3 &4 &5 &6 &7 &8 &9
let me explain with a simple example

Report yyy
parameters:a type i.
b type i.
data: res type i.
DEFINE hhh (here hhh is macroname)
res = &1 &2 &3 &4 &5.
write:/res.
end-of-definition.
hhh ( a + b ) (here calling macro)

in res we specified 5 place holders thats y when calling a
macro we used 5 place holders those are
1 (
2 a
3 +
4 b
5 )

this is only for eg.
in this way we can write a macro upto 9 pointers.It
shouldnt exceed 9.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you work with semi colon se[arated files in BDC ?

1679


can anyone do BDC or BAPI for F-02 and F-04 transactions.If it LSMW also.Kindly let me know.

3387


While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc

983


What is logical database? : abap hr

771


Where are you used type casting?

1104


Name a few data dictionary objects?

828


Select up to 1 row and select single difference ?

825


Difference between select option and ranges ?

829


when does a list get sent to the screen on the presentation layer?

1608


How to write a code for multiple transactions? : abap bdc

739


What are field symbols?

837


how to see the table output?

1926


What is ps structure? : abap hr

1008


What are the data types of the external layer?

771


What is a table pool?

834