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

What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?

561


What are pool tables?

652


5) How to rereive text elements in SF and script?

1646


What is an interactive report?

624


What is the difference between synchronous and asynchronous update? : abap bdc

643






What was the requirement of IDoc in your project? How it was working?

1559


How do you do bdc for a table control? : abap bdc

656


How we can retrieve data using secondary index. Explain with simple example?

614


How do you differentiate tax for different countries? : sap abap hr

694


What is IMG in SAP?

720


What are the differences between transparent tables, pooled tables & cluster tables? : abap data dictionary

725


What is the table buffer?

572


How the transaction that are programmed by the user can be protected?

645


Give an example of interface from your project explaining why you used it?

895


What are the different message types available in the abap/4 ?

556