‎2007 Apr 09 5:25 PM
‎2007 Apr 09 5:27 PM
The advantage of modularization is:
1. Readability.
2. Code reusability
3. Providing structure to your code.
Refer
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha
‎2007 Apr 09 5:29 PM
Hi,
Modularization techniques is used to avoid repetitive coding.
Two techniques can be used:
1. Function Modules
When we call the function module in ABAP program, it is internally inserted in the program.
First you create function group (Path: SE37 -> Goto -> function group -> Create a group) then you create function modules.
2. Subroutines
There are two types:
- Call by value.
In here the main program values are not affected (global variables). Only local variable values are affected.
- Call by reference or pass by reference.
By default all internal tables are call by reference. In here the blobal variable values are also affected (in main program).
Regards,
Ferry Lianto
‎2007 Apr 09 5:29 PM
Hi..,
There are two techniques..
<b>
One is Source code modularization and the second is Procedures..</b>
Macros and Includes comes under Source code modularization.. these codes will be replaced in the main program during syntax check it self..
Subroutines and Function modules comes under Procedures.. the code in these modules are replaced in the program onli at the runtime of the program i.e while getting executed !!!
regards,
sai ramesh
‎2007 Apr 09 5:29 PM
Modularization techniques are the methods in which you can arrange your CODE in different blocks instead of writing a very long program.
Using PERFORMs, methods in classes, Includes , MACROS etc, yo ucan modularize your code.
Refer to the example programs:
demo_mod_tech_macros.
demo_mod_tech_include.
demomodtech* and press f4.
Regards,
Ravi
‎2007 Apr 09 5:39 PM
in simple words
If you are having reusable code
then u will write that code in different modularizations method based upon u r requirement
Different modularization techs r
1. Function Modules
2. Subroutines
3. Includes.
4. Macros.
~~Guduri