on 07-25-2008 7:13 AM
hi folks,
what is the diff between Include and MACRO?
is both r same??
regards,
sathish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
INCLUDE :
Include programs are global R/3 Repository objects. They are solely for modularizing source code, and have no parameter interface. Where ever you write the include statement at that point the code that you have defined in the INCLUDE it is substituted in the place of INCLUDE<name> and include do no have any parameter interface. we can debug INclude.
MACROS :
If you want to reuse the same set of statements more than once in a program, you can include them in a macro. For example, this can be useful for long calculations or complex WRITE statements. You can only use a macro within the program in which it is defined, and it can only be called in lines of the program following its definition.
The following statement block defines a macro <macro>:
DEFINE <macro>.
<statements>
END-OF-DEFINITION.
And one important thing about MACROS is that we cannot Debug the macros and every MACRO can have at max 9 place holders that means for MACROS we can have PARAMETER INTERFACE i;e we can pass the values to the MACROS
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check this............
Include: can use globally like,can call the include program from other multiple programs.we can't execute it in the same program.
INCLUDE Z PROGRAM NAME -->it will call it.
Macro : keyword is DEFINE.
Here we have to call the macro after the actual defination.This is used with in the program only.
write: '........'.
define mac1.
write:............'.
end-of-definition.
Both r to modularize the code into eassier way.
we will write abap statements in a module,we keep that module program.
Both are may not be same as per my knowledge.
Regards
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Ther are not same at all.
Check this link you will get the answer-
Scroll down.
Regards,
Sujit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.