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 types of subroutines?

609


What is singleton pattern in OOPS?

962


Can you create a table with fields not referring to data elements? : abap data dictionary

766


What is size category?

551


How do you find number of records present in internal table?

560






Why do we need enhancements?

622


What are the uses of interactive reporting?

619


what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?

1727


Performance tuning techniques

879


Do we create table fields with out data elements and domains?

624


What are the organizational related infotypes? : abap hr

575


Explain the table, which contain the details of all the name of the programs and forms?

510


Explain read dataset in sap abap?

707


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

3028


What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?

913